providers

package
v2.2.9-ent-rc2+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2019 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPipelineConfigByBranch

func GetPipelineConfigByBranch(sourceCodeCredentials v3.SourceCodeCredentialInterface, sourceCodeCredentialLister v3.SourceCodeCredentialLister, pipeline *v3.Pipeline, branch string) (*v3.PipelineConfig, error)

func GetSourceCodeProviderConfig

func GetSourceCodeProviderConfig(pType string, projectID string) (interface{}, error)

func RefreshReposByCredential

func RefreshReposByCredential(sourceCodeRepositories v3.SourceCodeRepositoryInterface, sourceCodeRepositoryLister v3.SourceCodeRepositoryLister, sourceCodeCredentials v3.SourceCodeCredentialInterface, credential *v3.SourceCodeCredential, sourceCodeProviderConfig interface{}) ([]*v3.SourceCodeRepository, error)

func SetupSourceCodeProviderConfig

func SetupSourceCodeProviderConfig(management *config.ScaledContext, schemas *types.Schemas)

Types

type SourceCodeProvider

type SourceCodeProvider interface {
	GetName() string
	CustomizeSchemas(schemas *types.Schemas)
	TransformToSourceCodeProvider(sourceCodeProviderConfig map[string]interface{}) map[string]interface{}
	GetProviderConfig(projectID string) (interface{}, error)
}

func GetProvider

func GetProvider(providerName string) (SourceCodeProvider, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL