Documentation
¶
Index ¶
- func DownloadDirectory(ctx context.Context, scmType SCMType, ...) error
- func GetRepositories(ctx context.Context, scmType SCMType, baseURL, owner string) ([]string, error)
- type Catalog
- type GitHubProvider
- func (g *GitHubProvider) DownloadDirectory(ctx context.Context, owner, repo, path, destDir string) error
- func (g *GitHubProvider) FetchCatalog(ctx context.Context, owner, repo string) (*Catalog, error)
- func (g *GitHubProvider) FetchRepositories(ctx context.Context, owner string) ([]string, error)
- func (g *GitHubProvider) GetLatestRelease(ctx context.Context, owner, repo string) (*Release, error)
- type GiteaProvider
- func (g *GiteaProvider) DownloadDirectory(ctx context.Context, owner, repo, path, destDir string) error
- func (g *GiteaProvider) FetchCatalog(ctx context.Context, owner, repo string) (*Catalog, error)
- func (g *GiteaProvider) FetchRepositories(ctx context.Context, owner string) ([]string, error)
- func (g *GiteaProvider) GetLatestRelease(ctx context.Context, owner, repo string) (*Release, error)
- type Plugin
- type Release
- type SCMProvider
- type SCMType
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadDirectory ¶ added in v1.0.54
Types ¶
type Catalog ¶ added in v1.0.54
type Catalog struct { Catalog struct { Name string `toml:"name"` Description string `toml:"description"` Version string `toml:"version"` LastUpdated struct { Date string `toml:"date"` CommitHash string `toml:"commit_hash"` } `toml:"last_updated"` } `toml:"catalog"` Plugins map[string]Plugin `toml:"plugins"` Templates map[string]Template `toml:"templates"` }
type GitHubProvider ¶ added in v1.0.54
type GitHubProvider struct {
// contains filtered or unexported fields
}
func NewGitHubProvider ¶ added in v1.0.54
func NewGitHubProvider() (*GitHubProvider, error)
func (*GitHubProvider) DownloadDirectory ¶ added in v1.0.54
func (g *GitHubProvider) DownloadDirectory(ctx context.Context, owner, repo, path, destDir string) error
func (*GitHubProvider) FetchCatalog ¶ added in v1.0.54
func (*GitHubProvider) FetchRepositories ¶ added in v1.0.54
func (*GitHubProvider) GetLatestRelease ¶ added in v1.0.54
type GiteaProvider ¶ added in v1.0.54
type GiteaProvider struct {
// contains filtered or unexported fields
}
func NewGiteaProvider ¶ added in v1.0.54
func NewGiteaProvider(baseURL string) (*GiteaProvider, error)
func (*GiteaProvider) DownloadDirectory ¶ added in v1.0.54
func (g *GiteaProvider) DownloadDirectory(ctx context.Context, owner, repo, path, destDir string) error
func (*GiteaProvider) FetchCatalog ¶ added in v1.0.54
func (*GiteaProvider) FetchRepositories ¶ added in v1.0.54
func (*GiteaProvider) GetLatestRelease ¶ added in v1.0.54
type Release ¶ added in v1.0.54
type SCMProvider ¶ added in v1.0.54
type SCMProvider interface { GetLatestRelease(ctx context.Context, owner, repo string) (*Release, error) FetchRepositories(ctx context.Context, owner string) ([]string, error) FetchCatalog(ctx context.Context, owner, repo string) (*Catalog, error) DownloadDirectory(ctx context.Context, owner, repo, path, destDir string) error }
func GetSCMProvider ¶ added in v1.0.54
func GetSCMProvider(scmType SCMType, baseURL string) (SCMProvider, error)
Click to show internal directories.
Click to hide internal directories.