Documentation
¶
Index ¶
- func NewGitProviderService(config GitProviderServiceConfig) services.IGitProviderService
- type GitProviderService
- func (s *GitProviderService) DeleteConfig(ctx context.Context, gitProviderId string) error
- func (s *GitProviderService) FindConfig(ctx context.Context, id string) (*models.GitProviderConfig, error)
- func (s *GitProviderService) GetGitProvider(ctx context.Context, id string) (gitprovider.GitProvider, error)
- func (s *GitProviderService) GetGitProviderForHttpRequest(ctx context.Context, req *http.Request) (gitprovider.GitProvider, error)
- func (s *GitProviderService) GetGitProviderForUrl(ctx context.Context, repoUrl string) (gitprovider.GitProvider, string, error)
- func (s *GitProviderService) GetGitUser(ctx context.Context, gitProviderId string) (*gitprovider.GitUser, error)
- func (s *GitProviderService) GetLastCommitSha(ctx context.Context, repo *gitprovider.GitRepository) (string, error)
- func (s *GitProviderService) GetNamespaces(ctx context.Context, gitProviderId string, options gitprovider.ListOptions) ([]*gitprovider.GitNamespace, error)
- func (s *GitProviderService) GetPrebuildWebhook(ctx context.Context, gitProviderId string, repo *gitprovider.GitRepository, ...) (*string, error)
- func (s *GitProviderService) GetRepoBranches(ctx context.Context, gitProviderId, namespaceId, repositoryId string, ...) ([]*gitprovider.GitBranch, error)
- func (s *GitProviderService) GetRepoPRs(ctx context.Context, gitProviderId, namespaceId, repositoryId string, ...) ([]*gitprovider.GitPullRequest, error)
- func (s *GitProviderService) GetRepositories(ctx context.Context, gitProviderId, namespaceId string, ...) ([]*gitprovider.GitRepository, error)
- func (s *GitProviderService) ListConfigs(ctx context.Context) ([]*models.GitProviderConfig, error)
- func (s *GitProviderService) ListConfigsForUrl(ctx context.Context, repoUrl string) ([]*models.GitProviderConfig, error)
- func (s *GitProviderService) RegisterPrebuildWebhook(ctx context.Context, gitProviderId string, repo *gitprovider.GitRepository, ...) (string, error)
- func (s *GitProviderService) SaveConfig(ctx context.Context, providerConfig *models.GitProviderConfig) error
- func (s *GitProviderService) UnregisterPrebuildWebhook(ctx context.Context, gitProviderId string, repo *gitprovider.GitRepository, ...) error
- type GitProviderServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGitProviderService ¶
func NewGitProviderService(config GitProviderServiceConfig) services.IGitProviderService
Types ¶
type GitProviderService ¶
type GitProviderService struct {
// contains filtered or unexported fields
}
func (*GitProviderService) DeleteConfig ¶ added in v0.52.0
func (s *GitProviderService) DeleteConfig(ctx context.Context, gitProviderId string) error
func (*GitProviderService) FindConfig ¶ added in v0.52.0
func (s *GitProviderService) FindConfig(ctx context.Context, id string) (*models.GitProviderConfig, error)
func (*GitProviderService) GetGitProvider ¶
func (s *GitProviderService) GetGitProvider(ctx context.Context, id string) (gitprovider.GitProvider, error)
func (*GitProviderService) GetGitProviderForHttpRequest ¶ added in v0.26.0
func (s *GitProviderService) GetGitProviderForHttpRequest(ctx context.Context, req *http.Request) (gitprovider.GitProvider, error)
func (*GitProviderService) GetGitProviderForUrl ¶
func (s *GitProviderService) GetGitProviderForUrl(ctx context.Context, repoUrl string) (gitprovider.GitProvider, string, error)
func (*GitProviderService) GetGitUser ¶
func (s *GitProviderService) GetGitUser(ctx context.Context, gitProviderId string) (*gitprovider.GitUser, error)
func (*GitProviderService) GetLastCommitSha ¶ added in v0.16.0
func (s *GitProviderService) GetLastCommitSha(ctx context.Context, repo *gitprovider.GitRepository) (string, error)
func (*GitProviderService) GetNamespaces ¶
func (s *GitProviderService) GetNamespaces(ctx context.Context, gitProviderId string, options gitprovider.ListOptions) ([]*gitprovider.GitNamespace, error)
func (*GitProviderService) GetPrebuildWebhook ¶ added in v0.26.0
func (s *GitProviderService) GetPrebuildWebhook(ctx context.Context, gitProviderId string, repo *gitprovider.GitRepository, endpointUrl string) (*string, error)
func (*GitProviderService) GetRepoBranches ¶
func (s *GitProviderService) GetRepoBranches(ctx context.Context, gitProviderId, namespaceId, repositoryId string, options gitprovider.ListOptions) ([]*gitprovider.GitBranch, error)
func (*GitProviderService) GetRepoPRs ¶
func (s *GitProviderService) GetRepoPRs(ctx context.Context, gitProviderId, namespaceId, repositoryId string, options gitprovider.ListOptions) ([]*gitprovider.GitPullRequest, error)
func (*GitProviderService) GetRepositories ¶
func (s *GitProviderService) GetRepositories(ctx context.Context, gitProviderId, namespaceId string, options gitprovider.ListOptions) ([]*gitprovider.GitRepository, error)
func (*GitProviderService) ListConfigs ¶
func (s *GitProviderService) ListConfigs(ctx context.Context) ([]*models.GitProviderConfig, error)
func (*GitProviderService) ListConfigsForUrl ¶ added in v0.38.0
func (s *GitProviderService) ListConfigsForUrl(ctx context.Context, repoUrl string) ([]*models.GitProviderConfig, error)
func (*GitProviderService) RegisterPrebuildWebhook ¶ added in v0.26.0
func (s *GitProviderService) RegisterPrebuildWebhook(ctx context.Context, gitProviderId string, repo *gitprovider.GitRepository, endpointUrl string) (string, error)
func (*GitProviderService) SaveConfig ¶ added in v0.52.0
func (s *GitProviderService) SaveConfig(ctx context.Context, providerConfig *models.GitProviderConfig) error
func (*GitProviderService) UnregisterPrebuildWebhook ¶ added in v0.26.0
func (s *GitProviderService) UnregisterPrebuildWebhook(ctx context.Context, gitProviderId string, repo *gitprovider.GitRepository, id string) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.