Documentation
¶
Index ¶
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) ListRequests ¶ added in v0.24.0
type GitHubProvider ¶
func NewGitHubProvider ¶
func NewGitHubProvider(ctx context.Context, opts Options) (*GitHubProvider, error)
func (*GitHubProvider) ListBranches ¶
func (*GitHubProvider) ListRequests ¶
type GitLabProvider ¶
func NewGitLabProvider ¶
func NewGitLabProvider(ctx context.Context, opts Options) (*GitLabProvider, error)
func (*GitLabProvider) ListBranches ¶
func (*GitLabProvider) ListRequests ¶
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) }
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"` 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.