podbuilder

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const FakeContainerID = "myTestContainer"
View Source
const FakeDeployID = model.DeployID(1234567890)

Variables

This section is empty.

Functions

This section is empty.

Types

type PodBuilder

type PodBuilder struct {
	// contains filtered or unexported fields
}

Builds Pod objects for testing

Ensures that any PodStatus objects we create are consistent with the Pod in the PodTemplateSpec in the manifest.

func New

func New(t testing.TB, manifest model.Manifest) PodBuilder

func (PodBuilder) Build

func (b PodBuilder) Build() *v1.Pod

func (PodBuilder) WithContainerID

func (b PodBuilder) WithContainerID(cID string, index int) PodBuilder

func (PodBuilder) WithCreationTime

func (b PodBuilder) WithCreationTime(creationTime time.Time) PodBuilder

func (PodBuilder) WithDeployID

func (b PodBuilder) WithDeployID(deployID model.DeployID) PodBuilder

func (PodBuilder) WithImage

func (b PodBuilder) WithImage(image string, index int) PodBuilder

func (PodBuilder) WithPhase

func (b PodBuilder) WithPhase(phase string) PodBuilder

func (PodBuilder) WithPodID

func (b PodBuilder) WithPodID(podID string) PodBuilder

Jump to

Keyboard shortcuts

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