Documentation
¶
Index ¶
- func NewProvider(token string) repositories.ForgeProvider
- type Provider
- func (p *Provider) AuthToken() string
- func (p *Provider) CloneURL(repo entities.Repository) string
- func (p *Provider) ConfigureTransport()
- func (p *Provider) CreateBranchWithChanges(ctx context.Context, repo entities.Repository, input entities.BranchInput) error
- func (p *Provider) CreatePullRequest(ctx context.Context, repo entities.Repository, input entities.PullRequestInput) (*entities.PullRequest, error)
- func (p *Provider) DiscoverRepositories(ctx context.Context, group string) ([]entities.Repository, error)
- func (p *Provider) GetAuthMethods(username string) []transport.AuthMethod
- func (p *Provider) GetFileContent(ctx context.Context, repo entities.Repository, path string) (string, error)
- func (p *Provider) GetServiceType() entities.ServiceType
- func (p *Provider) GetTags(ctx context.Context, repo entities.Repository) ([]string, error)
- func (p *Provider) HasFile(ctx context.Context, repo entities.Repository, path string) bool
- func (p *Provider) ListFiles(ctx context.Context, repo entities.Repository, pattern string) ([]entities.File, error)
- func (p *Provider) MatchesURL(rawURL string) bool
- func (p *Provider) Name() string
- func (p *Provider) PrepareCloneURL(url string) string
- func (p *Provider) PullRequestExists(ctx context.Context, repo entities.Repository, sourceBranch string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(token string) repositories.ForgeProvider
NewProvider creates a new GitLab provider with the given token.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements ForgeProvider, FileAccessProvider, and LocalGitAuthProvider for GitLab.
func (*Provider) ConfigureTransport ¶
func (p *Provider) ConfigureTransport()
func (*Provider) CreateBranchWithChanges ¶
func (p *Provider) CreateBranchWithChanges( ctx context.Context, repo entities.Repository, input entities.BranchInput, ) error
func (*Provider) CreatePullRequest ¶
func (p *Provider) CreatePullRequest( ctx context.Context, repo entities.Repository, input entities.PullRequestInput, ) (*entities.PullRequest, error)
func (*Provider) DiscoverRepositories ¶
func (*Provider) GetAuthMethods ¶
func (p *Provider) GetAuthMethods(username string) []transport.AuthMethod
func (*Provider) GetFileContent ¶
func (*Provider) GetServiceType ¶
func (p *Provider) GetServiceType() entities.ServiceType
func (*Provider) MatchesURL ¶
func (*Provider) PrepareCloneURL ¶
func (*Provider) PullRequestExists ¶
Click to show internal directories.
Click to hide internal directories.