source

package
v1.3.0-next.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

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 GHCRAuth added in v1.0.1

type GHCRAuth struct {
	Token string `json:"token"`
}

func (*GHCRAuth) Bearer added in v1.0.1

func (g *GHCRAuth) Bearer() 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

func (s *GitHub) FindRelease(ctx context.Context) error

FindRelease - query API to find the version being sought or return an error

func (*GitHub) GetApp

func (s *GitHub) GetApp() string

func (*GitHub) GetDownloadsDir added in v1.0.1

func (s *GitHub) GetDownloadsDir() string

func (*GitHub) GetID

func (s *GitHub) GetID() string

func (*GitHub) GetOwner

func (s *GitHub) GetOwner() string

func (*GitHub) GetReleaseAssets

func (s *GitHub) GetReleaseAssets(ctx context.Context) error

func (*GitHub) GetRepo

func (s *GitHub) GetRepo() string

func (*GitHub) GetSource

func (s *GitHub) GetSource() string

func (*GitHub) GetVersion added in v1.0.1

func (s *GitHub) GetVersion() string

func (*GitHub) PreRun added in v1.0.1

func (s *GitHub) PreRun(ctx context.Context) error

func (*GitHub) Run

func (s *GitHub) Run(ctx context.Context) error

Run - run the source

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

	BaseURL string

	Owner   string
	Repo    string
	Version string

	Release *gitlab.Release
	// contains filtered or unexported fields
}

func (*GitLab) GetApp

func (s *GitLab) GetApp() string

func (*GitLab) GetDownloadsDir added in v1.0.1

func (s *GitLab) GetDownloadsDir() string

func (*GitLab) GetID

func (s *GitLab) GetID() string

func (*GitLab) GetOwner

func (s *GitLab) GetOwner() string

func (*GitLab) GetRepo

func (s *GitLab) GetRepo() string

func (*GitLab) GetSource

func (s *GitLab) GetSource() string

func (*GitLab) GetVersion added in v1.0.1

func (s *GitLab) GetVersion() string

func (*GitLab) PreRun added in v1.0.1

func (s *GitLab) PreRun(ctx context.Context) error

func (*GitLab) Run

func (s *GitLab) Run(ctx context.Context) error

type GitLabAsset added in v1.0.1

type GitLabAsset struct {
	*asset.Asset

	GitLab *GitLab
	Link   *gitlab.Links
}

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 HTTPAsset added in v1.2.0

type HTTPAsset struct {
	*asset.Asset

	Source provider.ISource
	URL    string
}

func (*HTTPAsset) Download added in v1.2.0

func (a *HTTPAsset) Download(ctx context.Context) error

func (*HTTPAsset) ID added in v1.2.0

func (a *HTTPAsset) ID() string

func (*HTTPAsset) Path added in v1.2.0

func (a *HTTPAsset) Path() string

type Hashicorp

type Hashicorp struct {
	provider.Provider

	Owner   string
	Repo    string
	Version string
	// contains filtered or unexported fields
}

func (*Hashicorp) GetApp

func (s *Hashicorp) GetApp() string

func (*Hashicorp) GetDownloadsDir added in v1.0.1

func (s *Hashicorp) GetDownloadsDir() string

func (*Hashicorp) GetID

func (s *Hashicorp) GetID() string

func (*Hashicorp) GetOwner

func (s *Hashicorp) GetOwner() string

func (*Hashicorp) GetRepo

func (s *Hashicorp) GetRepo() string

func (*Hashicorp) GetSource

func (s *Hashicorp) GetSource() string

func (*Hashicorp) GetVersion added in v1.0.1

func (s *Hashicorp) GetVersion() string

func (*Hashicorp) PreRun added in v1.0.1

func (s *Hashicorp) PreRun(ctx context.Context) error

func (*Hashicorp) Run

func (s *Hashicorp) Run(ctx context.Context) error

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

type Helm struct {
	GitHub

	AppName string
}

func (*Helm) GetApp added in v1.2.0

func (s *Helm) GetApp() string

func (*Helm) GetDownloadsDir added in v1.2.0

func (s *Helm) GetDownloadsDir() string

func (*Helm) GetID added in v1.2.0

func (s *Helm) GetID() string

func (*Helm) GetOwner added in v1.2.0

func (s *Helm) GetOwner() string

func (*Helm) GetReleaseAssets added in v1.2.0

func (s *Helm) GetReleaseAssets(_ context.Context) error

func (*Helm) GetRepo added in v1.2.0

func (s *Helm) GetRepo() string

func (*Helm) GetSource added in v1.2.0

func (s *Helm) GetSource() string

func (*Helm) GetVersion added in v1.2.0

func (s *Helm) GetVersion() string

func (*Helm) PreRun added in v1.2.0

func (s *Helm) PreRun(ctx context.Context) error

func (*Helm) Run added in v1.2.0

func (s *Helm) Run(ctx context.Context) error

type Homebrew

type Homebrew struct {
	provider.Provider

	Formula string
	Version string
	// contains filtered or unexported fields
}

func (*Homebrew) GetApp

func (s *Homebrew) GetApp() string

func (*Homebrew) GetDownloadsDir added in v1.0.1

func (s *Homebrew) GetDownloadsDir() string

func (*Homebrew) GetID

func (s *Homebrew) GetID() string

func (*Homebrew) GetOwner

func (s *Homebrew) GetOwner() string

func (*Homebrew) GetRepo

func (s *Homebrew) GetRepo() string

func (*Homebrew) GetSource

func (s *Homebrew) GetSource() string

func (*Homebrew) GetVersion added in v1.0.1

func (s *Homebrew) GetVersion() string

func (*Homebrew) PreRun added in v1.0.1

func (s *Homebrew) PreRun(ctx context.Context) error

PreRun - run the source specific logic

func (*Homebrew) Run

func (s *Homebrew) Run(ctx context.Context) error

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

type Kubernetes struct {
	GitHub

	AppName string
}

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

func (*Kubernetes) PreRun added in v1.0.1

func (s *Kubernetes) PreRun(ctx context.Context) error

func (*Kubernetes) Run added in v1.0.1

func (s *Kubernetes) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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