Documentation ¶
Index ¶
- Variables
- func MockBuildConfig(source buildapi.BuildSource, strategy buildapi.BuildStrategy, ...) *buildapi.BuildConfig
- func MockBuilderSecrets() []*kapi.Secret
- func MockBuilderServiceAccount(secrets []*kapi.Secret) kcoreclient.ServiceAccountsGetter
- func MockCustomStrategyForEnvs() buildapi.BuildStrategy
- func MockDockerStrategyForEnvs() buildapi.BuildStrategy
- func MockImage(name, dockerSpec string) *imageapi.Image
- func MockImageStream(repoName, dockerImageRepo string, tags map[string]string) *imageapi.ImageStream
- func MockJenkinsStrategyForEnvs() buildapi.BuildStrategy
- func MockOutput() buildapi.BuildOutput
- func MockSource() buildapi.BuildSource
- func MockSourceStrategyForEnvs() buildapi.BuildStrategy
- func MockSourceStrategyForImageRepository() buildapi.BuildStrategy
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Encode = func(src string) []byte { return []byte(src) } SampleDockerConfigs = map[string][]byte{ "hub": Encode(`{"https://index.docker.io/v1/":{"auth": "Zm9vOmJhcgo=", "email": ""}}`), "ipv4": Encode(`{"https://1.1.1.1:5000/v1/":{"auth": "Zm9vOmJhcgo=", "email": ""}}`), "host": Encode(`{"https://registry.host/v1/":{"auth": "Zm9vOmJhcgo=", "email": ""}}`), } )
Functions ¶
func MockBuildConfig ¶
func MockBuildConfig(source buildapi.BuildSource, strategy buildapi.BuildStrategy, output buildapi.BuildOutput) *buildapi.BuildConfig
func MockBuilderSecrets ¶
func MockBuilderServiceAccount ¶
func MockBuilderServiceAccount(secrets []*kapi.Secret) kcoreclient.ServiceAccountsGetter
func MockCustomStrategyForEnvs ¶
func MockCustomStrategyForEnvs() buildapi.BuildStrategy
func MockDockerStrategyForEnvs ¶
func MockDockerStrategyForEnvs() buildapi.BuildStrategy
func MockImageStream ¶
func MockImageStream(repoName, dockerImageRepo string, tags map[string]string) *imageapi.ImageStream
func MockJenkinsStrategyForEnvs ¶
func MockJenkinsStrategyForEnvs() buildapi.BuildStrategy
func MockOutput ¶
func MockOutput() buildapi.BuildOutput
func MockSource ¶
func MockSource() buildapi.BuildSource
func MockSourceStrategyForEnvs ¶
func MockSourceStrategyForEnvs() buildapi.BuildStrategy
func MockSourceStrategyForImageRepository ¶
func MockSourceStrategyForImageRepository() buildapi.BuildStrategy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.