Documentation ¶
Index ¶
Constants ¶
View Source
const ( ResolveMethod = "github-release" InstallMethod = ResolveMethod )
Variables ¶
This section is empty.
Functions ¶
func IsInstallMethod ¶
func IsResolveMethod ¶
Types ¶
type Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
func NewInstaller ¶
func NewInstaller(cfg InstallerParameters) Installer
type InstallerParameters ¶
type InstallerParameters struct {
Repo string `json:"repo" yaml:"repo" mapstructure:"repo"`
}
type VersionResolutionParameters ¶
type VersionResolutionParameters struct {
Repo string `json:"repo" yaml:"repo" mapstructure:"repo"`
}
type VersionResolver ¶
type VersionResolver struct {
// contains filtered or unexported fields
}
func NewVersionResolver ¶
func NewVersionResolver(cfg VersionResolutionParameters) *VersionResolver
func (VersionResolver) ResolveVersion ¶
func (v VersionResolver) ResolveVersion(want, constraint string) (string, error)
func (VersionResolver) UpdateVersion ¶
func (v VersionResolver) UpdateVersion(want, constraint string) (string, error)
Click to show internal directories.
Click to hide internal directories.