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 GetProviders ¶
func GetProviders() map[models.ExecutableProvider]DownloadProvider
func InitProviders ¶ added in v0.0.9
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
Click to show internal directories.
Click to hide internal directories.