source

package
v0.0.0-...-33b1915 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

func (*GHCRAuth) Bearer

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

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

func (s *GitHub) GetVersion() string

func (*GitHub) PreRun

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

type GitHubAsset struct {
	*asset.Asset

	GitHub       *GitHub
	ReleaseAsset *github.ReleaseAsset
}

func (*GitHubAsset) Download

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

func (*GitHubAsset) ID

func (a *GitHubAsset) ID() string

func (*GitHubAsset) Path

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

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

func (*GitLab) GetApp

func (s *GitLab) GetApp() string

func (*GitLab) GetDownloadsDir

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

func (s *GitLab) GetVersion() string

func (*GitLab) PreRun

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

func (*GitLab) Run

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

type GitLabAsset

type GitLabAsset struct {
	*asset.Asset

	GitLab *GitLab
	Link   *gitlab.Links
}

func (*GitLabAsset) Download

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

func (*GitLabAsset) ID

func (a *GitLabAsset) ID() string

func (*GitLabAsset) Path

func (a *GitLabAsset) Path() string

type HTTPAsset

type HTTPAsset struct {
	*asset.Asset

	Source provider.ISource
	URL    string
}

func (*HTTPAsset) Download

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

func (*HTTPAsset) ID

func (a *HTTPAsset) ID() string

func (*HTTPAsset) Path

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

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

func (s *Hashicorp) GetVersion() string

func (*Hashicorp) PreRun

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

func (*Hashicorp) Run

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

type HashicorpAsset

type HashicorpAsset struct {
	*asset.Asset

	Hashicorp *Hashicorp
	Build     *hashicorp.Build
	Release   *hashicorp.Release
}

func (*HashicorpAsset) Download

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

func (*HashicorpAsset) ID

func (a *HashicorpAsset) ID() string

func (*HashicorpAsset) Path

func (a *HashicorpAsset) Path() string

type Helm

type Helm struct {
	GitHub

	AppName string
}

func (*Helm) GetApp

func (s *Helm) GetApp() string

func (*Helm) GetDownloadsDir

func (s *Helm) GetDownloadsDir() string

func (*Helm) GetID

func (s *Helm) GetID() string

func (*Helm) GetOwner

func (s *Helm) GetOwner() string

func (*Helm) GetReleaseAssets

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

func (*Helm) GetRepo

func (s *Helm) GetRepo() string

func (*Helm) GetSource

func (s *Helm) GetSource() string

func (*Helm) GetVersion

func (s *Helm) GetVersion() string

func (*Helm) PreRun

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

func (*Helm) Run

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

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

func (s *Homebrew) GetVersion() string

func (*Homebrew) PreRun

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

type HomebrewAsset struct {
	*asset.Asset

	Homebrew    *Homebrew
	FileVariant *homebrew.FileVariant
}

func (*HomebrewAsset) Download

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

func (*HomebrewAsset) ID

func (a *HomebrewAsset) ID() string

func (*HomebrewAsset) Path

func (a *HomebrewAsset) Path() string

type Kubernetes

type Kubernetes struct {
	GitHub

	AppName string
}

func (*Kubernetes) GetApp

func (s *Kubernetes) GetApp() string

func (*Kubernetes) GetDownloadsDir

func (s *Kubernetes) GetDownloadsDir() string

func (*Kubernetes) GetID

func (s *Kubernetes) GetID() string

func (*Kubernetes) GetOwner

func (s *Kubernetes) GetOwner() string

func (*Kubernetes) GetReleaseAssets

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

func (*Kubernetes) GetRepo

func (s *Kubernetes) GetRepo() string

func (*Kubernetes) GetSource

func (s *Kubernetes) GetSource() string

func (*Kubernetes) GetVersion

func (s *Kubernetes) GetVersion() string

func (*Kubernetes) PreRun

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

func (*Kubernetes) Run

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