Documentation ¶
Index ¶
- type BaseProvider
- func (b BaseProvider) AuthAddAccount(userID string, code string, config interface{}, projectID string, ...) (*v3.SourceCodeCredential, error)
- func (b BaseProvider) Cleanup(projectID string, sourceCodeType string) error
- func (b BaseProvider) DisableAction(request *types.APIContext, sourceCodeType string) error
- func (b BaseProvider) RefreshReposByCredentialAndConfig(credential *v3.SourceCodeCredential, config interface{}) ([]v3.SourceCodeRepository, error)
- func (b BaseProvider) TransformToSourceCodeProvider(config map[string]interface{}, providerType string) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseProvider ¶
type BaseProvider struct { SourceCodeProviderConfigs v3.SourceCodeProviderConfigInterface SourceCodeCredentials v3.SourceCodeCredentialInterface SourceCodeCredentialLister v3.SourceCodeCredentialLister SourceCodeRepositories v3.SourceCodeRepositoryInterface Pipelines v3.PipelineInterface PipelineExecutions v3.PipelineExecutionInterface PipelineIndexer cache.Indexer PipelineExecutionIndexer cache.Indexer SourceCodeCredentialIndexer cache.Indexer SourceCodeRepositoryIndexer cache.Indexer }
func (BaseProvider) AuthAddAccount ¶
func (b BaseProvider) AuthAddAccount(userID string, code string, config interface{}, projectID string, sourceCodeType string) (*v3.SourceCodeCredential, error)
func (BaseProvider) Cleanup ¶
func (b BaseProvider) Cleanup(projectID string, sourceCodeType string) error
func (BaseProvider) DisableAction ¶
func (b BaseProvider) DisableAction(request *types.APIContext, sourceCodeType string) error
func (BaseProvider) RefreshReposByCredentialAndConfig ¶
func (b BaseProvider) RefreshReposByCredentialAndConfig(credential *v3.SourceCodeCredential, config interface{}) ([]v3.SourceCodeRepository, error)
func (BaseProvider) TransformToSourceCodeProvider ¶
func (b BaseProvider) TransformToSourceCodeProvider(config map[string]interface{}, providerType string) map[string]interface{}
Click to show internal directories.
Click to hide internal directories.