providers

package
v0.0.0-...-8907509 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: Apache-2.0 Imports: 22 Imported by: 0

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