Documentation ¶
Index ¶
- func CreateFakeContainer(containerName string) corev1.Container
- func FakeResourceRequirements(cpu, memory string) (corev1.ResourceRequirements, error)
- func GetFakeContainerComponent(name string) v1.Component
- func GetFakeEnv(name, value string) v1.EnvVar
- func GetFakeEnvParentOverride(name, value string) v1.EnvVarParentOverride
- func GetFakeExecRunCommands() []v1.ExecCommand
- func GetFakeVolumeComponent(name, size string) v1.Component
- func GetFakeVolumeMount(name, path string) v1.VolumeMount
- func GetFakeVolumeMountParentOverride(name, path string) v1.VolumeMountParentOverride
- type FakeK8sClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFakeContainer ¶
CreateFakeContainer creates a container with the given containerName
func FakeResourceRequirements ¶
func FakeResourceRequirements(cpu, memory string) (corev1.ResourceRequirements, error)
FakeResourceRequirements creates a fake resource requirements from cpu and memory
func GetFakeContainerComponent ¶
GetFakeContainerComponent returns a fake container component for testing.
func GetFakeEnv ¶
GetFakeEnv returns a fake env for testing
func GetFakeEnvParentOverride ¶
func GetFakeEnvParentOverride(name, value string) v1.EnvVarParentOverride
GetFakeEnvParentOverride returns a fake envParentOverride for testing
func GetFakeExecRunCommands ¶
func GetFakeExecRunCommands() []v1.ExecCommand
GetFakeExecRunCommands returns fake commands for testing
func GetFakeVolumeComponent ¶
GetFakeVolumeComponent returns a fake volume component for testing
func GetFakeVolumeMount ¶
func GetFakeVolumeMount(name, path string) v1.VolumeMount
GetFakeVolumeMount returns a fake volume mount for testing
func GetFakeVolumeMountParentOverride ¶
func GetFakeVolumeMountParentOverride(name, path string) v1.VolumeMountParentOverride
GetFakeVolumeMountParentOverride returns a fake volumeMountParentOverride for testing
Types ¶
type FakeK8sClient ¶
Click to show internal directories.
Click to hide internal directories.