Documentation
¶
Index ¶
- func NewProvider(token string) globalEntities.ForgeProvider
- type Provider
- func (p *Provider) AuthToken() string
- func (p *Provider) CloneURL(repo globalEntities.Repository) string
- func (p *Provider) ConfigureTransport()
- func (p *Provider) CreateBranchWithChanges(ctx context.Context, repo globalEntities.Repository, ...) error
- func (p *Provider) CreatePullRequest(ctx context.Context, repo globalEntities.Repository, ...) (*globalEntities.PullRequest, error)
- func (p *Provider) DiscoverRepositories(ctx context.Context, group string) ([]globalEntities.Repository, error)
- func (p *Provider) GetAuthMethods(username string) []transport.AuthMethod
- func (p *Provider) GetFileContent(ctx context.Context, repo globalEntities.Repository, path string) (string, error)
- func (p *Provider) GetServiceType() globalEntities.ServiceType
- func (p *Provider) GetTags(ctx context.Context, repo globalEntities.Repository) ([]string, error)
- func (p *Provider) HasFile(ctx context.Context, repo globalEntities.Repository, path string) bool
- func (p *Provider) ListFiles(ctx context.Context, repo globalEntities.Repository, pattern string) ([]globalEntities.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 globalEntities.Repository, sourceBranch string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProvider ¶
func NewProvider(token string) globalEntities.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) CloneURL ¶
func (p *Provider) CloneURL(repo globalEntities.Repository) string
func (*Provider) ConfigureTransport ¶
func (p *Provider) ConfigureTransport()
func (*Provider) CreateBranchWithChanges ¶
func (p *Provider) CreateBranchWithChanges( ctx context.Context, repo globalEntities.Repository, input globalEntities.BranchInput, ) error
func (*Provider) CreatePullRequest ¶
func (p *Provider) CreatePullRequest( ctx context.Context, repo globalEntities.Repository, input globalEntities.PullRequestInput, ) (*globalEntities.PullRequest, error)
func (*Provider) DiscoverRepositories ¶
func (p *Provider) DiscoverRepositories( ctx context.Context, group string, ) ([]globalEntities.Repository, error)
func (*Provider) GetAuthMethods ¶
func (p *Provider) GetAuthMethods(username string) []transport.AuthMethod
func (*Provider) GetFileContent ¶
func (p *Provider) GetFileContent( ctx context.Context, repo globalEntities.Repository, path string, ) (string, error)
func (*Provider) GetServiceType ¶
func (p *Provider) GetServiceType() globalEntities.ServiceType
func (*Provider) GetTags ¶
func (p *Provider) GetTags( ctx context.Context, repo globalEntities.Repository, ) ([]string, error)
func (*Provider) HasFile ¶
func (p *Provider) HasFile( ctx context.Context, repo globalEntities.Repository, path string, ) bool
func (*Provider) ListFiles ¶
func (p *Provider) ListFiles( ctx context.Context, repo globalEntities.Repository, pattern string, ) ([]globalEntities.File, error)
func (*Provider) MatchesURL ¶
func (*Provider) PrepareCloneURL ¶
func (*Provider) PullRequestExists ¶
func (p *Provider) PullRequestExists( ctx context.Context, repo globalEntities.Repository, sourceBranch string, ) (bool, error)
Click to show internal directories.
Click to hide internal directories.