Documentation ¶
Index ¶
- Constants
- func BinDir(product string) (string, error)
- func CheckBytes(fileName string, b []byte) error
- func CheckFile(fpath string) error
- func CurrentActive(product string) (version string, link string, target string)
- func ExtractZip(product, parentDir string, bts []byte) (string, error)
- func GetSHASums(product, version string) (map[string][]byte, error)
- func HTTPGet(url string) (*http.Response, error)
- func HTTPGetBody(url string) ([]byte, error)
- func InArray(arr []string, str string) bool
- func LinkPath(product string) string
- func ListInstalled(product string) ([]string, error)
- func ProductVersionFromName(fileName string) (string, string)
- func RemoveLink(product string) error
- func SHASumLink(product, version string) string
- type ExtraOptions
Constants ¶
View Source
const (
SHASumSuffix = "SHA256SUMS"
)
View Source
const UserAgent = "HashiCorp hashi-bin CLI utility"
Variables ¶
This section is empty.
Functions ¶
func CheckBytes ¶
func CurrentActive ¶
func HTTPGetBody ¶
func ListInstalled ¶
func ProductVersionFromName ¶
func RemoveLink ¶
func SHASumLink ¶
Types ¶
type ExtraOptions ¶
func GetOptions ¶
func GetOptions() ExtraOptions
Click to show internal directories.
Click to hide internal directories.