Documentation
¶
Index ¶
- Constants
- type GHCRAuth
- type GitHub
- func (s *GitHub) FindRelease(ctx context.Context) error
- func (s *GitHub) GetApp() string
- func (s *GitHub) GetDownloadsDir() string
- func (s *GitHub) GetID() string
- func (s *GitHub) GetOwner() string
- func (s *GitHub) GetReleaseAssets(ctx context.Context) error
- func (s *GitHub) GetRepo() string
- func (s *GitHub) GetSource() string
- func (s *GitHub) Run(ctx context.Context) error
- type GitHubAsset
- type GitLab
- type GitLabAsset
- type Hashicorp
- type HashicorpAsset
- type Homebrew
- type HomebrewAsset
- type ISource
- type Options
- type Source
- func (s *Source) Cleanup() error
- func (s *Source) Discover(assets []asset.IAsset, names []string) error
- func (s *Source) Download(ctx context.Context) error
- func (s *Source) Extract() error
- func (s *Source) GetArch() string
- func (s *Source) GetOS() string
- func (s *Source) Install() error
- func (s *Source) Verify() error
Constants ¶
View Source
const GitHubSource = "github"
View Source
const HashicorpSource = "hashicorp"
View Source
const HomebrewSource = "homebrew"
View Source
const (
VersionLatest = "latest"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHub ¶
type GitHub struct { Source Version string // Version to find for installation Owner string // Owner of the repository Repo string // Repository name Release *github.RepositoryRelease // contains filtered or unexported fields }
func (*GitHub) FindRelease ¶
FindRelease - query API to find the version being sought or return an error
func (*GitHub) GetDownloadsDir ¶ added in v1.0.1
type GitHubAsset ¶ added in v1.0.1
type GitHubAsset struct { *asset.Asset GitHub *GitHub ReleaseAsset *github.ReleaseAsset }
func (*GitHubAsset) Download ¶ added in v1.0.1
func (a *GitHubAsset) Download(ctx context.Context) error
func (*GitHubAsset) ID ¶ added in v1.0.1
func (a *GitHubAsset) ID() string
type GitLab ¶
type GitLab struct { Source Owner string Repo string Version string Release *gitlab.Release // contains filtered or unexported fields }
func (*GitLab) GetDownloadsDir ¶ added in v1.0.1
type GitLabAsset ¶ added in v1.0.1
func (*GitLabAsset) Download ¶ added in v1.0.1
func (a *GitLabAsset) Download(ctx context.Context) error
func (*GitLabAsset) ID ¶ added in v1.0.1
func (a *GitLabAsset) ID() string
type Hashicorp ¶
type Hashicorp struct { Source Owner string Repo string Version string // contains filtered or unexported fields }
func (*Hashicorp) GetDownloadsDir ¶ added in v1.0.1
type HashicorpAsset ¶ added in v1.0.1
type HashicorpAsset struct { *asset.Asset Hashicorp *Hashicorp Build *hashicorp.Build Release *hashicorp.Release }
func (*HashicorpAsset) Download ¶ added in v1.0.1
func (a *HashicorpAsset) Download(ctx context.Context) error
func (*HashicorpAsset) ID ¶ added in v1.0.1
func (a *HashicorpAsset) ID() string
type Homebrew ¶
type Homebrew struct { Source Formula string Version string // contains filtered or unexported fields }
func (*Homebrew) GetDownloadsDir ¶ added in v1.0.1
type HomebrewAsset ¶ added in v1.0.1
type HomebrewAsset struct { *asset.Asset Homebrew *Homebrew FileVariant *homebrew.FileVariant }
func (*HomebrewAsset) Download ¶ added in v1.0.1
func (a *HomebrewAsset) Download(ctx context.Context) error
func (*HomebrewAsset) ID ¶ added in v1.0.1
func (a *HomebrewAsset) ID() string
type ISource ¶
type Source ¶
type Source struct { Options *Options OSConfig *osconfig.OS Assets []asset.IAsset Binary asset.IAsset Signature asset.IAsset Checksum asset.IAsset Key asset.IAsset }
Click to show internal directories.
Click to hide internal directories.