test

package
v3.9.0-alpha.1+incompa... Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2017 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 buildapi.BuildSource, strategy buildapi.BuildStrategy, output buildapi.BuildOutput) *buildapi.BuildConfig

func MockBuilderSecrets

func MockBuilderSecrets() []*kapi.Secret

func MockBuilderServiceAccount

func MockBuilderServiceAccount(secrets []*kapi.Secret) kcoreclient.ServiceAccountsGetter

func MockCustomStrategyForEnvs

func MockCustomStrategyForEnvs() buildapi.BuildStrategy

func MockDockerStrategyForEnvs

func MockDockerStrategyForEnvs() buildapi.BuildStrategy

func MockImage

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

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.

Jump to

Keyboard shortcuts

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