Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultGetSHA256Sums ¶
DefaultGetSHA256Sums attempts to download the SHA256Sums lists from the releases endpoint.
Types ¶
type Release ¶
type Release struct { Product string Version string Edition string Platform string Arch string GetSHA256Sums func(*Release) (string, error) }
Release represents a release from releases.hashicorp.com.
func NewRelease ¶
func NewRelease(opts ...ReleaseOpt) (*Release, error)
NewRelease takes optional functional options and returns a new Release.
func (*Release) BundleURL ¶
BundleURL returns the fully qualified URL to the release bundle archive.
func (*Release) SHA256SUMSURL ¶
SHA256SUMSURL returns the fully qualified URL to the releases SHA256SUMS.
type ReleaseOpt ¶
ReleaseOpt is a function option for NewRelease.
func WithReleaseArch ¶
func WithReleaseArch(arch string) ReleaseOpt
WithReleaseArch sets the product.
func WithReleaseEdition ¶
func WithReleaseEdition(ed string) ReleaseOpt
WithReleaseEdition sets the product.
func WithReleasePlatform ¶
func WithReleasePlatform(plat string) ReleaseOpt
WithReleasePlatform sets the product.
func WithReleaseProduct ¶
func WithReleaseProduct(prod string) ReleaseOpt
WithReleaseProduct sets the product.
func WithReleaseVersion ¶
func WithReleaseVersion(ver string) ReleaseOpt
WithReleaseVersion sets the version.
Click to show internal directories.
Click to hide internal directories.