test

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 MockBuilderSecrets() []*corev1.Secret

func MockBuilderServiceAccount

func MockBuilderServiceAccount(secrets []*corev1.Secret) corev1client.ServiceAccountsGetter

func MockCustomStrategyForEnvs

func MockCustomStrategyForEnvs() buildv1.BuildStrategy

func MockDockerStrategyForEnvs

func MockDockerStrategyForEnvs() buildv1.BuildStrategy

func MockImage

func MockImage(name, dockerSpec string) *imagev1.Image

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.

Jump to

Keyboard shortcuts

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