Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnterpriseOptions ¶
type ExactVersion ¶
type ExactVersion struct { Product product.Product Version *version.Version InstallDir string Timeout time.Duration // Enterprise indicates installation of enterprise version (leave nil for Community editions) Enterprise *EnterpriseOptions SkipChecksumVerification bool // ArmoredPublicKey is a public PGP key in ASCII/armor format to use // instead of built-in pubkey to verify signature of downloaded checksums ArmoredPublicKey string // contains filtered or unexported fields }
ExactVersion installs the given Version of product to OS temp directory, or to InstallDir (if not empty)
func (*ExactVersion) IsSourceImpl ¶
func (*ExactVersion) IsSourceImpl() isrc.InstallSrcSigil
func (*ExactVersion) SetLogger ¶
func (ev *ExactVersion) SetLogger(logger *log.Logger)
func (*ExactVersion) Validate ¶
func (ev *ExactVersion) Validate() error
type InstallationOptions ¶
type LatestVersion ¶
type LatestVersion struct { Product product.Product Constraints version.Constraints InstallDir string Timeout time.Duration IncludePrereleases bool // Enterprise indicates installation of enterprise version (leave nil for Community editions) Enterprise *EnterpriseOptions SkipChecksumVerification bool // ArmoredPublicKey is a public PGP key in ASCII/armor format to use // instead of built-in pubkey to verify signature of downloaded checksums ArmoredPublicKey string // contains filtered or unexported fields }
func (*LatestVersion) Install ¶
func (lv *LatestVersion) Install(ctx context.Context) (string, error)
func (*LatestVersion) IsSourceImpl ¶
func (*LatestVersion) IsSourceImpl() isrc.InstallSrcSigil
func (*LatestVersion) SetLogger ¶
func (lv *LatestVersion) SetLogger(logger *log.Logger)
func (*LatestVersion) Validate ¶
func (lv *LatestVersion) Validate() error
type Versions ¶
type Versions struct { Product product.Product Constraints version.Constraints Enterprise *EnterpriseOptions // require enterprise version if set (leave nil for OSS) ListTimeout time.Duration // Install represents configuration for installation of any listed version Install InstallationOptions }
Versions allows listing all versions of a product which match Constraints
Click to show internal directories.
Click to hide internal directories.