Documentation
¶
Index ¶
Constants ¶
View Source
const (
GithubLatestURL = "https://github.com/%s/releases/latest"
)
Variables ¶
This section is empty.
Functions ¶
func GetBinaryPath ¶
func GetBinaryPath() string
func GetGitRootDirectory ¶
func GithubLatest ¶
Types ¶
type Binary ¶
type Binary struct { Context context.Context `json:"-"` // for installation URL string `json:"-"` URLF Callback `json:"-"` GitHubRepo string `json:"repo"` GitHubFile string `json:"-"` GitHubFileF Callback `json:"-"` Version string `json:"-"` VersionF Callback `json:"-"` VersionLocalF Callback `json:"-"` Name string `json:"name" yaml:"name"` File string `json:"-"` IsTarGz bool `json:"-"` TarFile string `json:"-"` TarFileF Callback `json:"-"` Tracker *progress.Tracker `json:"-"` // for execution Envs map[string]string `json:"-"` }
func (*Binary) BinaryExists ¶
func (*Binary) BinaryPath ¶
func (*Binary) EnsureBinary ¶
func (*Binary) LocalBinary ¶
func (b *Binary) LocalBinary() *LocalBinary
type IsBinary ¶
type IsBinary interface { EnsureBinary(bool) error LocalBinary() *LocalBinary }
Click to show internal directories.
Click to hide internal directories.