Documentation ¶
Index ¶
- Variables
- func MockBuildConfig(source buildv1.BuildSource, strategy buildv1.BuildStrategy, ...) *buildv1.BuildConfig
- func MockBuilderSecrets() []*corev1.Secret
- func MockBuilderServiceAccount(secrets []*corev1.Secret) corev1client.ServiceAccountsGetter
- func MockCustomStrategyForEnvs() buildv1.BuildStrategy
- func MockDockerStrategyForEnvs() buildv1.BuildStrategy
- func MockImage(name, dockerSpec string) *imagev1.Image
- func MockImageStream(repoName, dockerImageRepo string, tags map[string]string) *imagev1.ImageStream
- func MockJenkinsStrategyForEnvs() buildv1.BuildStrategy
- func MockOutput() buildv1.BuildOutput
- func MockSource() buildv1.BuildSource
- func MockSourceStrategyForEnvs() buildv1.BuildStrategy
- func MockSourceStrategyForImageRepository() buildv1.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 buildv1.BuildSource, strategy buildv1.BuildStrategy, output buildv1.BuildOutput) *buildv1.BuildConfig
func MockBuilderSecrets ¶
func MockBuilderServiceAccount ¶
func MockBuilderServiceAccount(secrets []*corev1.Secret) corev1client.ServiceAccountsGetter
func MockCustomStrategyForEnvs ¶
func MockCustomStrategyForEnvs() buildv1.BuildStrategy
func MockDockerStrategyForEnvs ¶
func MockDockerStrategyForEnvs() buildv1.BuildStrategy
func MockImageStream ¶
func MockImageStream(repoName, dockerImageRepo string, tags map[string]string) *imagev1.ImageStream
func MockJenkinsStrategyForEnvs ¶
func MockJenkinsStrategyForEnvs() buildv1.BuildStrategy
func MockOutput ¶
func MockOutput() buildv1.BuildOutput
func MockSource ¶
func MockSource() buildv1.BuildSource
func MockSourceStrategyForEnvs ¶
func MockSourceStrategyForEnvs() buildv1.BuildStrategy
func MockSourceStrategyForImageRepository ¶
func MockSourceStrategyForImageRepository() buildv1.BuildStrategy
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.