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
Constants ¶
View Source
const GitHubSource = "github"
View Source
const HashicorpSource = "hashicorp"
View Source
const HomebrewSource = "homebrew"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHub ¶
type GitHub struct { provider.Provider 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
func (*GitHubAsset) Path ¶ added in v1.0.1
func (a *GitHubAsset) Path() string
type GitLab ¶
type GitLab struct { provider.Provider 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
func (*GitLabAsset) Path ¶ added in v1.0.1
func (a *GitLabAsset) Path() string
type Hashicorp ¶
type Hashicorp struct { provider.Provider 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
func (*HashicorpAsset) Path ¶ added in v1.0.1
func (a *HashicorpAsset) Path() string
type Homebrew ¶
type Homebrew struct { provider.Provider 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
func (*HomebrewAsset) Path ¶ added in v1.0.1
func (a *HomebrewAsset) Path() string
Click to show internal directories.
Click to hide internal directories.