k8sfactory

package
v0.12.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerFactory

func ContainerFactory(base *corev1.Container, traits ...Trait) *corev1.Container

func PodFactory

func PodFactory(base *corev1.Pod, traits ...Trait) *corev1.Pod

func PodFailed

func PodFailed(v interface{})

func PodIsReady

func PodIsReady(v interface{})

Types

type Trait

type Trait func(object interface{})

func Annotation

func Annotation(k, v string) Trait

func Container

func Container(c *corev1.Container) Trait

func EnvVar

func EnvVar(k, v string) Trait

func Image

func Image(image string, cmd []string) Trait

func Name

func Name(v string) Trait

Jump to

Keyboard shortcuts

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