Documentation
¶
Index ¶
- type Config
- type Platform
- func (n Platform) AuthMethod(repo api.Repository) githttp.AuthMethod
- func (n Platform) CommitAndPush(repo api.Repository, base string, branch string, message string, dir string) error
- func (n Platform) CreateMergeRequest(repository api.Repository, sourceBranch string, title string, ...) error
- func (n Platform) CreateOrUpdateMergeRequest(repository api.Repository, sourceBranch string, title string, ...) error
- func (n Platform) CreateTag(repository api.Repository, tag string, commitHash string, message string) error
- func (n Platform) EnvironmentVariables(repo api.Repository, environmentName string) ([]api.CIVariable, error)
- func (n Platform) Environments(repo api.Repository) ([]api.CIEnvironment, error)
- func (n Platform) FileContent(repository api.Repository, branch string, path string) (string, error)
- func (n Platform) FindRepository(path string) (api.Repository, error)
- func (n Platform) Languages(repo api.Repository) (map[string]int, error)
- func (n Platform) Merge(repo api.Repository, mergeRequest api.MergeRequest, ...) error
- func (n Platform) MergeRequestDiff(repo api.Repository, mergeRequest api.MergeRequest) (api.MergeRequestDiff, error)
- func (n Platform) MergeRequests(repo api.Repository, options api.MergeRequestSearchOptions) ([]api.MergeRequest, error)
- func (n Platform) Name() string
- func (n Platform) Releases(repository api.Repository, limit int) ([]api.Release, error)
- func (n Platform) Repositories(opts api.RepositoryListOpts) ([]api.Repository, error)
- func (n Platform) Slug() string
- func (n Platform) SubmitReview(repo api.Repository, mergeRequest api.MergeRequest, approved bool, ...) error
- func (n Platform) Tags(repository api.Repository, limit int) ([]api.Tag, error)
- func (n Platform) Variables(repo api.Repository) ([]api.CIVariable, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
func NewPlatform ¶
NewPlatform creates a GitLab platform
func (Platform) AuthMethod ¶
func (n Platform) AuthMethod(repo api.Repository) githttp.AuthMethod
func (Platform) CommitAndPush ¶
func (Platform) CreateMergeRequest ¶
func (Platform) CreateOrUpdateMergeRequest ¶
func (Platform) EnvironmentVariables ¶
func (n Platform) EnvironmentVariables(repo api.Repository, environmentName string) ([]api.CIVariable, error)
func (Platform) Environments ¶
func (n Platform) Environments(repo api.Repository) ([]api.CIEnvironment, error)
func (Platform) FileContent ¶
func (Platform) FindRepository ¶
func (n Platform) FindRepository(path string) (api.Repository, error)
func (Platform) Merge ¶
func (n Platform) Merge(repo api.Repository, mergeRequest api.MergeRequest, mergeStrategy api.MergeStrategyOptions) error
func (Platform) MergeRequestDiff ¶
func (n Platform) MergeRequestDiff(repo api.Repository, mergeRequest api.MergeRequest) (api.MergeRequestDiff, error)
func (Platform) MergeRequests ¶
func (n Platform) MergeRequests(repo api.Repository, options api.MergeRequestSearchOptions) ([]api.MergeRequest, error)
func (Platform) Repositories ¶
func (n Platform) Repositories(opts api.RepositoryListOpts) ([]api.Repository, error)
func (Platform) SubmitReview ¶
func (n Platform) SubmitReview(repo api.Repository, mergeRequest api.MergeRequest, approved bool, message *string) error
func (Platform) Variables ¶
func (n Platform) Variables(repo api.Repository) ([]api.CIVariable, error)
Click to show internal directories.
Click to hide internal directories.