test

package
v1.5.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2017 License: Apache-2.0 Imports: 8 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 MockImage

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

func MockImageStream

func MockImageStream(repoName, dockerImageRepo string, tags map[string]string) *imageapi.ImageStream

func MockOutput

func MockOutput() buildapi.BuildOutput

func MockSource

func MockSource() buildapi.BuildSource

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