githubrelease

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResolveMethod = "github-release"
	InstallMethod = ResolveMethod
)

Variables

This section is empty.

Functions

func DefaultVersionResolverConfig

func DefaultVersionResolverConfig(installParams any) (string, any, error)

func IsInstallMethod

func IsInstallMethod(method string) bool

func IsResolveMethod

func IsResolveMethod(method string) bool

Types

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

func NewInstaller

func NewInstaller(cfg InstallerParameters) Installer

func (Installer) InstallTo

func (i Installer) InstallTo(version, destDir string) (string, error)

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 (VersionResolver) ResolveVersion

func (v VersionResolver) ResolveVersion(want, constraint string) (string, error)

func (VersionResolver) UpdateVersion

func (v VersionResolver) UpdateVersion(want, constraint string) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL