Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReleaseBuild ¶
ReleaseBuild holds information on a single product build
type ReleaseProduct ¶
type ReleaseProduct struct { Name string Versions map[string]*ReleaseVersion }
ReleaseProduct holds all releases for a product
func GetReleases ¶
func GetReleases(product string) (*ReleaseProduct, error)
GetReleases retrieves the product information from releases.hashicorp.com
func (*ReleaseProduct) Find ¶
func (p *ReleaseProduct) Find(version string) (*ReleaseVersion, error)
Find returns the version matching the given string
func (*ReleaseProduct) Latest ¶
func (p *ReleaseProduct) Latest(stable bool) (*ReleaseVersion, error)
Latest returns the latest (stable or not depending on parameter) available version
func (*ReleaseProduct) ListVersions ¶
func (p *ReleaseProduct) ListVersions(stable bool) ([]*version.Version, error)
ListVersions returns all the available versions
type ReleaseVersion ¶
type ReleaseVersion struct { Name string Version string Shasums string Signature string `json:"shasums_signature"` Builds []*ReleaseBuild }
ReleaseVersion holds all builds for a product version
func (*ReleaseVersion) Download ¶
func (v *ReleaseVersion) Download(destination, buildOs, buildArch string) error
Download gets, verifies and uncompress a given release version
Click to show internal directories.
Click to hide internal directories.