Documentation
¶
Index ¶
- Constants
- type PodBuilder
- func (b PodBuilder) Build() *v1.Pod
- func (b PodBuilder) WithContainerID(cID string, index int) PodBuilder
- func (b PodBuilder) WithCreationTime(creationTime time.Time) PodBuilder
- func (b PodBuilder) WithDeployID(deployID model.DeployID) PodBuilder
- func (b PodBuilder) WithImage(image string, index int) PodBuilder
- func (b PodBuilder) WithPhase(phase string) PodBuilder
- func (b PodBuilder) WithPodID(podID string) PodBuilder
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 (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
Click to show internal directories.
Click to hide internal directories.