Documentation
¶
Index ¶
- Constants
- type Forgejo
- func (s *Forgejo) FindRelease(ctx context.Context) error
- func (s *Forgejo) GetApp() string
- func (s *Forgejo) GetDownloadsDir() string
- func (s *Forgejo) GetID() string
- func (s *Forgejo) GetOwner() string
- func (s *Forgejo) GetRepo() string
- func (s *Forgejo) GetSource() string
- func (s *Forgejo) GetVersion() string
- func (s *Forgejo) PreRun(ctx context.Context) error
- func (s *Forgejo) Run(ctx context.Context) error
- type ForgejoAsset
- 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) GetVersion() string
- func (s *GitHub) PreRun(ctx context.Context) error
- func (s *GitHub) Run(ctx context.Context) error
- type GitHubAsset
- type GitLab
- func (s *GitLab) FindRelease(ctx context.Context) error
- func (s *GitLab) GetApp() string
- func (s *GitLab) GetDownloadsDir() string
- func (s *GitLab) GetID() string
- func (s *GitLab) GetOwner() string
- func (s *GitLab) GetRepo() string
- func (s *GitLab) GetSource() string
- func (s *GitLab) GetVersion() string
- func (s *GitLab) PreRun(ctx context.Context) error
- func (s *GitLab) Run(ctx context.Context) error
- type GitLabAsset
- type HTTPAsset
- type Hashicorp
- func (s *Hashicorp) GetApp() string
- func (s *Hashicorp) GetDownloadsDir() string
- func (s *Hashicorp) GetID() string
- func (s *Hashicorp) GetOwner() string
- func (s *Hashicorp) GetRepo() string
- func (s *Hashicorp) GetSource() string
- func (s *Hashicorp) GetVersion() string
- func (s *Hashicorp) PreRun(ctx context.Context) error
- func (s *Hashicorp) Run(ctx context.Context) error
- type HashicorpAsset
- type Helm
- func (s *Helm) GetApp() string
- func (s *Helm) GetDownloadsDir() string
- func (s *Helm) GetID() string
- func (s *Helm) GetOwner() string
- func (s *Helm) GetReleaseAssets(_ context.Context) error
- func (s *Helm) GetRepo() string
- func (s *Helm) GetSource() string
- func (s *Helm) GetVersion() string
- func (s *Helm) PreRun(ctx context.Context) error
- func (s *Helm) Run(ctx context.Context) error
- type Homebrew
- func (s *Homebrew) GetApp() string
- func (s *Homebrew) GetDownloadsDir() string
- func (s *Homebrew) GetID() string
- func (s *Homebrew) GetOwner() string
- func (s *Homebrew) GetRepo() string
- func (s *Homebrew) GetSource() string
- func (s *Homebrew) GetVersion() string
- func (s *Homebrew) PreRun(ctx context.Context) error
- func (s *Homebrew) Run(ctx context.Context) error
- type HomebrewAsset
- type Kubernetes
- func (s *Kubernetes) GetApp() string
- func (s *Kubernetes) GetDownloadsDir() string
- func (s *Kubernetes) GetID() string
- func (s *Kubernetes) GetOwner() string
- func (s *Kubernetes) GetReleaseAssets(_ context.Context) error
- func (s *Kubernetes) GetRepo() string
- func (s *Kubernetes) GetSource() string
- func (s *Kubernetes) GetVersion() string
- func (s *Kubernetes) PreRun(ctx context.Context) error
- func (s *Kubernetes) Run(ctx context.Context) error
Constants ¶
View Source
const ( ForgejoSource = "forgejo" CodebergSource = "codeberg" CodebergBaseURL = "https://codeberg.org/api/v1" )
View Source
const GitHubSource = "github"
View Source
const GitLabSource = "gitlab"
View Source
const HashicorpSource = "hashicorp"
View Source
const HelmSource = "helm"
View Source
const HomebrewSource = "homebrew"
View Source
const KubernetesSource = "kubernetes"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forgejo ¶ added in v1.9.0
type Forgejo struct {
provider.Provider
Client *forgejo.Client
BaseURL string
SourceName string
Owner string
Repo string
Version string
Release *forgejo.Release
}
func (*Forgejo) FindRelease ¶ added in v1.9.0
func (*Forgejo) GetDownloadsDir ¶ added in v1.9.0
func (*Forgejo) GetVersion ¶ added in v1.9.0
type ForgejoAsset ¶ added in v1.9.0
type ForgejoAsset struct {
*asset.Asset
Forgejo *Forgejo
ReleaseAsset *forgejo.ReleaseAsset
}
func (*ForgejoAsset) Download ¶ added in v1.9.0
func (a *ForgejoAsset) Download(ctx context.Context) error
func (*ForgejoAsset) ID ¶ added in v1.9.0
func (a *ForgejoAsset) ID() string
func (*ForgejoAsset) Path ¶ added in v1.9.0
func (a *ForgejoAsset) Path() string
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
func (*GitHub) GetVersion ¶ 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
Client *gitlab.Client
BaseURL string
Owner string
Repo string
Version string
Release *gitlab.Release
}
func (*GitLab) FindRelease ¶ added in v1.6.0
func (*GitLab) GetDownloadsDir ¶ added in v1.0.1
func (*GitLab) GetVersion ¶ 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
func (*Hashicorp) GetVersion ¶ 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 Helm ¶ added in v1.2.0
func (*Helm) GetDownloadsDir ¶ added in v1.2.0
func (*Helm) GetReleaseAssets ¶ added in v1.2.0
func (*Helm) GetVersion ¶ added in v1.2.0
type Homebrew ¶
type Homebrew struct {
provider.Provider
Formula string
Version string
// contains filtered or unexported fields
}
func (*Homebrew) GetDownloadsDir ¶ added in v1.0.1
func (*Homebrew) GetVersion ¶ 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
type Kubernetes ¶ added in v1.0.1
func (*Kubernetes) GetApp ¶ added in v1.0.1
func (s *Kubernetes) GetApp() string
func (*Kubernetes) GetDownloadsDir ¶ added in v1.0.1
func (s *Kubernetes) GetDownloadsDir() string
func (*Kubernetes) GetID ¶ added in v1.0.1
func (s *Kubernetes) GetID() string
func (*Kubernetes) GetOwner ¶ added in v1.0.1
func (s *Kubernetes) GetOwner() string
func (*Kubernetes) GetReleaseAssets ¶ added in v1.0.1
func (s *Kubernetes) GetReleaseAssets(_ context.Context) error
func (*Kubernetes) GetRepo ¶ added in v1.0.1
func (s *Kubernetes) GetRepo() string
func (*Kubernetes) GetSource ¶ added in v1.0.1
func (s *Kubernetes) GetSource() string
func (*Kubernetes) GetVersion ¶ added in v1.0.1
func (s *Kubernetes) GetVersion() string
Click to show internal directories.
Click to hide internal directories.