providers

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHubExecutableProvider = models.ExecutableProvider("gitHub")
	GitlabExecutableProvider = models.ExecutableProvider("gitlab")
	DirectExecutableProvider = models.ExecutableProvider("direct")
	LocalExecutableProvider  = models.ExecutableProvider("local")
)

Variables

This section is empty.

Functions

func InitProviders added in v0.0.9

func InitProviders(client http.Client)

Types

type DownloadProvider

type DownloadProvider interface {
	ResolveArchive(ctx context.Context, distribution models.Distribution) (models.Archive, error)
}

func NewDirectProvider

func NewDirectProvider() DownloadProvider

func NewGithubProvider

func NewGithubProvider() DownloadProvider

func NewGitlabProvider

func NewGitlabProvider(client http.Client) DownloadProvider

func NewLocalProvider

func NewLocalProvider() DownloadProvider

Jump to

Keyboard shortcuts

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