Documentation
¶
Index ¶
- func MakeInputs(results []Result, defaults map[string]any) ([]fluxcdv1.ResourceSetInput, error)
- type AzureDevOpsProvider
- func (p *AzureDevOpsProvider) ListBranches(ctx context.Context, opts Options) ([]Result, error)
- func (p *AzureDevOpsProvider) ListEnvironments(ctx context.Context, opts Options) ([]Result, error)
- func (p *AzureDevOpsProvider) ListRequests(ctx context.Context, opts Options) ([]Result, error)
- func (p *AzureDevOpsProvider) ListTags(ctx context.Context, opts Options) ([]Result, error)
- type GitHubProvider
- func (p *GitHubProvider) ListBranches(ctx context.Context, opts Options) ([]Result, error)
- func (p *GitHubProvider) ListEnvironments(ctx context.Context, opts Options) ([]Result, error)
- func (p *GitHubProvider) ListRequests(ctx context.Context, opts Options) ([]Result, error)
- func (p *GitHubProvider) ListTags(ctx context.Context, opts Options) ([]Result, error)
- type GitLabProvider
- func (p *GitLabProvider) ListBranches(ctx context.Context, opts Options) ([]Result, error)
- func (p *GitLabProvider) ListEnvironments(ctx context.Context, opts Options) ([]Result, error)
- func (p *GitLabProvider) ListRequests(ctx context.Context, opts Options) ([]Result, error)
- func (p *GitLabProvider) ListTags(ctx context.Context, opts Options) ([]Result, error)
- type GiteaProvider
- func (p *GiteaProvider) ListBranches(ctx context.Context, opts Options) ([]Result, error)
- func (p *GiteaProvider) ListEnvironments(ctx context.Context, opts Options) ([]Result, error)
- func (p *GiteaProvider) ListRequests(ctx context.Context, opts Options) ([]Result, error)
- func (p *GiteaProvider) ListTags(ctx context.Context, opts Options) ([]Result, error)
- type Interface
- type Options
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeInputs ¶
MakeInputs converts a list of results into a list of ResourceSet inputs with defaults.
Types ¶
type AzureDevOpsProvider ¶ added in v0.24.0
func NewAzureDevOpsProvider ¶ added in v0.24.0
func NewAzureDevOpsProvider(ctx context.Context, opts Options) (*AzureDevOpsProvider, error)
func (*AzureDevOpsProvider) ListBranches ¶ added in v0.24.0
func (*AzureDevOpsProvider) ListEnvironments ¶ added in v0.37.0
func (*AzureDevOpsProvider) ListRequests ¶ added in v0.24.0
type GitHubProvider ¶
func NewGitHubProvider ¶
func NewGitHubProvider(ctx context.Context, opts Options) (*GitHubProvider, error)
func (*GitHubProvider) ListBranches ¶
func (*GitHubProvider) ListEnvironments ¶ added in v0.37.0
func (*GitHubProvider) ListRequests ¶
type GitLabProvider ¶
func NewGitLabProvider ¶
func NewGitLabProvider(ctx context.Context, opts Options) (*GitLabProvider, error)
func (*GitLabProvider) ListBranches ¶
func (*GitLabProvider) ListEnvironments ¶ added in v0.37.0
func (*GitLabProvider) ListRequests ¶
type GiteaProvider ¶ added in v0.41.0
func NewGiteaProvider ¶ added in v0.41.0
func NewGiteaProvider(ctx context.Context, opts Options) (*GiteaProvider, error)
func (*GiteaProvider) ListBranches ¶ added in v0.41.0
func (*GiteaProvider) ListEnvironments ¶ added in v0.41.0
func (*GiteaProvider) ListRequests ¶ added in v0.41.0
type Interface ¶
type Interface interface {
// ListTags returns a list of tags that match the filters.
ListTags(ctx context.Context, opts Options) ([]Result, error)
// ListBranches returns a list of branches that match the filters.
ListBranches(ctx context.Context, opts Options) ([]Result, error)
// ListRequests returns a list of pull/merge requests that match the filters.
ListRequests(ctx context.Context, opts Options) ([]Result, error)
// ListEnvironments returns a list of environments that match the filters.
ListEnvironments(ctx context.Context, opts Options) ([]Result, error)
}
Interface that all Git SaaS providers must implement.
type Result ¶
type Result struct {
ID string `json:"id"`
SHA string `json:"sha"`
Branch string `json:"branch,omitempty"`
Tag string `json:"tag,omitempty"`
Author string `json:"author,omitempty"`
Title string `json:"title,omitempty"`
Slug string `json:"slug,omitempty"`
Labels []string `json:"labels,omitempty"`
}
Result holds the information extracted from the Git SaaS provider response.
func (*Result) OverrideFromExportedInputs ¶ added in v0.19.0
OverrideFromExportedInputs override result fields from exportedInput.
Click to show internal directories.
Click to hide internal directories.