providers

package
v2.1.7-rc6+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 22 Imported by: 257

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPipelineConfigByBranch

func GetPipelineConfigByBranch(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, 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