Documentation ¶
Index ¶
- type GitProviderService
- func (s *GitProviderService) GetConfig(id string) (*gitprovider.GitProviderConfig, error)
- func (s *GitProviderService) GetGitProvider(id string) (gitprovider.GitProvider, error)
- func (s *GitProviderService) GetGitProviderForHttpRequest(req *http.Request) (gitprovider.GitProvider, error)
- func (s *GitProviderService) GetGitProviderForUrl(repoUrl string) (gitprovider.GitProvider, string, error)
- func (s *GitProviderService) GetGitUser(gitProviderId string) (*gitprovider.GitUser, error)
- func (s *GitProviderService) GetLastCommitSha(repo *gitprovider.GitRepository) (string, error)
- func (s *GitProviderService) GetNamespaces(gitProviderId string, options gitprovider.ListOptions) ([]*gitprovider.GitNamespace, error)
- func (s *GitProviderService) GetPrebuildWebhook(gitProviderId string, repo *gitprovider.GitRepository, endpointUrl string) (*string, error)
- func (s *GitProviderService) GetRepoBranches(gitProviderId, namespaceId, repositoryId string, ...) ([]*gitprovider.GitBranch, error)
- func (s *GitProviderService) GetRepoPRs(gitProviderId, namespaceId, repositoryId string, ...) ([]*gitprovider.GitPullRequest, error)
- func (s *GitProviderService) GetRepositories(gitProviderId, namespaceId string, options gitprovider.ListOptions) ([]*gitprovider.GitRepository, error)
- func (s *GitProviderService) ListConfigs() ([]*gitprovider.GitProviderConfig, error)
- func (s *GitProviderService) ListConfigsForUrl(repoUrl string) ([]*gitprovider.GitProviderConfig, error)
- func (s *GitProviderService) RegisterPrebuildWebhook(gitProviderId string, repo *gitprovider.GitRepository, endpointUrl string) (string, error)
- func (s *GitProviderService) RemoveGitProvider(gitProviderId string) error
- func (s *GitProviderService) SetGitProviderConfig(providerConfig *gitprovider.GitProviderConfig) error
- func (s *GitProviderService) UnregisterPrebuildWebhook(gitProviderId string, repo *gitprovider.GitRepository, id string) error
- type GitProviderServiceConfig
- type IGitProviderService
- type ProjectConfigStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitProviderService ¶
type GitProviderService struct {
// contains filtered or unexported fields
}
func (*GitProviderService) GetConfig ¶
func (s *GitProviderService) GetConfig(id string) (*gitprovider.GitProviderConfig, error)
func (*GitProviderService) GetGitProvider ¶
func (s *GitProviderService) GetGitProvider(id string) (gitprovider.GitProvider, error)
func (*GitProviderService) GetGitProviderForHttpRequest ¶ added in v0.26.0
func (s *GitProviderService) GetGitProviderForHttpRequest(req *http.Request) (gitprovider.GitProvider, error)
func (*GitProviderService) GetGitProviderForUrl ¶
func (s *GitProviderService) GetGitProviderForUrl(repoUrl string) (gitprovider.GitProvider, string, error)
func (*GitProviderService) GetGitUser ¶
func (s *GitProviderService) GetGitUser(gitProviderId string) (*gitprovider.GitUser, error)
func (*GitProviderService) GetLastCommitSha ¶ added in v0.16.0
func (s *GitProviderService) GetLastCommitSha(repo *gitprovider.GitRepository) (string, error)
func (*GitProviderService) GetNamespaces ¶
func (s *GitProviderService) GetNamespaces(gitProviderId string, options gitprovider.ListOptions) ([]*gitprovider.GitNamespace, error)
func (*GitProviderService) GetPrebuildWebhook ¶ added in v0.26.0
func (s *GitProviderService) GetPrebuildWebhook(gitProviderId string, repo *gitprovider.GitRepository, endpointUrl string) (*string, error)
func (*GitProviderService) GetRepoBranches ¶
func (s *GitProviderService) GetRepoBranches(gitProviderId, namespaceId, repositoryId string, options gitprovider.ListOptions) ([]*gitprovider.GitBranch, error)
func (*GitProviderService) GetRepoPRs ¶
func (s *GitProviderService) GetRepoPRs(gitProviderId, namespaceId, repositoryId string, options gitprovider.ListOptions) ([]*gitprovider.GitPullRequest, error)
func (*GitProviderService) GetRepositories ¶
func (s *GitProviderService) GetRepositories(gitProviderId, namespaceId string, options gitprovider.ListOptions) ([]*gitprovider.GitRepository, error)
func (*GitProviderService) ListConfigs ¶
func (s *GitProviderService) ListConfigs() ([]*gitprovider.GitProviderConfig, error)
func (*GitProviderService) ListConfigsForUrl ¶ added in v0.38.0
func (s *GitProviderService) ListConfigsForUrl(repoUrl string) ([]*gitprovider.GitProviderConfig, error)
func (*GitProviderService) RegisterPrebuildWebhook ¶ added in v0.26.0
func (s *GitProviderService) RegisterPrebuildWebhook(gitProviderId string, repo *gitprovider.GitRepository, endpointUrl string) (string, error)
func (*GitProviderService) RemoveGitProvider ¶
func (s *GitProviderService) RemoveGitProvider(gitProviderId string) error
func (*GitProviderService) SetGitProviderConfig ¶
func (s *GitProviderService) SetGitProviderConfig(providerConfig *gitprovider.GitProviderConfig) error
func (*GitProviderService) UnregisterPrebuildWebhook ¶ added in v0.26.0
func (s *GitProviderService) UnregisterPrebuildWebhook(gitProviderId string, repo *gitprovider.GitRepository, id string) error
type GitProviderServiceConfig ¶
type GitProviderServiceConfig struct { ConfigStore gitprovider.ConfigStore ProjectConfigStore ProjectConfigStore }
type IGitProviderService ¶ added in v0.12.0
type IGitProviderService interface { GetConfig(id string) (*gitprovider.GitProviderConfig, error) ListConfigsForUrl(url string) ([]*gitprovider.GitProviderConfig, error) GetGitProvider(id string) (gitprovider.GitProvider, error) GetGitProviderForUrl(url string) (gitprovider.GitProvider, string, error) GetGitProviderForHttpRequest(req *http.Request) (gitprovider.GitProvider, error) GetGitUser(gitProviderId string) (*gitprovider.GitUser, error) GetNamespaces(gitProviderId string, options gitprovider.ListOptions) ([]*gitprovider.GitNamespace, error) GetRepoBranches(gitProviderId string, namespaceId string, repositoryId string, options gitprovider.ListOptions) ([]*gitprovider.GitBranch, error) GetRepoPRs(gitProviderId string, namespaceId string, repositoryId string, options gitprovider.ListOptions) ([]*gitprovider.GitPullRequest, error) GetRepositories(gitProviderId string, namespaceId string, options gitprovider.ListOptions) ([]*gitprovider.GitRepository, error) ListConfigs() ([]*gitprovider.GitProviderConfig, error) RemoveGitProvider(gitProviderId string) error SetGitProviderConfig(providerConfig *gitprovider.GitProviderConfig) error GetLastCommitSha(repo *gitprovider.GitRepository) (string, error) RegisterPrebuildWebhook(gitProviderId string, repo *gitprovider.GitRepository, endpointUrl string) (string, error) GetPrebuildWebhook(gitProviderId string, repo *gitprovider.GitRepository, endpointUrl string) (*string, error) UnregisterPrebuildWebhook(gitProviderId string, repo *gitprovider.GitRepository, id string) error }
func NewGitProviderService ¶
func NewGitProviderService(config GitProviderServiceConfig) IGitProviderService
type ProjectConfigStore ¶ added in v0.40.0
type ProjectConfigStore interface { Save(projectConfig *config.ProjectConfig) error List(filter *config.ProjectConfigFilter) ([]*config.ProjectConfig, error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.