fake

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AllContainers all containers container name
	AllContainers common.AgentContainerName = "all"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationManager

type AnnotationManager struct {
	Annotations map[string]string
	// contains filtered or unexported fields
}

AnnotationManager is a mock type for the AnnotationManager type

func NewFakeAnnotationManager

func NewFakeAnnotationManager(t testing.TB) *AnnotationManager

NewFakeAnnotationManager creates a new instance of AnnotationManager. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*AnnotationManager) AddAnnotation

func (_m *AnnotationManager) AddAnnotation(key, value string)

AddAnnotation provides a mock function with given fields: key, value

type EnvFromVarManager added in v1.10.0

type EnvFromVarManager struct {
	EnvFromVarsByC map[common.AgentContainerName][]*v1.EnvFromSource
	// contains filtered or unexported fields
}

EnvVarManager is an autogenerated mock type for the EnvVarManager type

func NewFakeEnvFromVarManager added in v1.10.0

func NewFakeEnvFromVarManager(t testing.TB) *EnvFromVarManager

NewFakeEnvVarFromManager creates a new instance of EnvFromVarManager. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*EnvFromVarManager) AddEnvFromVar added in v1.10.0

func (_m *EnvFromVarManager) AddEnvFromVar(newEnvFromVar *v1.EnvFromSource)

AddEnvVar provides a mock function with given fields: newEnvFromVar

func (*EnvFromVarManager) AddEnvFromVarToContainer added in v1.10.0

func (_m *EnvFromVarManager) AddEnvFromVarToContainer(containerName common.AgentContainerName, newEnvFromVar *v1.EnvFromSource)

AddEnvFromVarToContainer provides a mock function with given fields: containerName, newEnvFromVar

func (*EnvFromVarManager) AddEnvFromVarToContainerWithMergeFunc added in v1.10.0

func (_m *EnvFromVarManager) AddEnvFromVarToContainerWithMergeFunc(containerName common.AgentContainerName, newEnvFromVar *v1.EnvFromSource, mergeFunc merger.EnvFromSourceFromMergeFunction) error

AddEnvFromVarToContainerWithMergeFunc provides a mock function with given fields: containerName, newEnvFromVar, mergeFunc

func (*EnvFromVarManager) AddEnvFromVarToContainers added in v1.10.0

func (_m *EnvFromVarManager) AddEnvFromVarToContainers(containerNames []common.AgentContainerName, newEnvFromVar *v1.EnvFromSource)

AddEnvFromVarToContainers provides a mock function with given fields: containerNames, newEnvFromVar

func (*EnvFromVarManager) AddEnvFromVarToInitContainer added in v1.10.0

func (_m *EnvFromVarManager) AddEnvFromVarToInitContainer(containerName common.AgentContainerName, newEnvFromVar *v1.EnvFromSource)

AddEnvFromVarToInitContainer provides a mock function with given fields: containerName, newEnvFromVar

func (*EnvFromVarManager) AddEnvFromVarWithMergeFunc added in v1.10.0

func (_m *EnvFromVarManager) AddEnvFromVarWithMergeFunc(newEnvFromVar *v1.EnvFromSource, mergeFunc merger.EnvFromSourceFromMergeFunction) error

AddEnvVarWithMergeFunc provides a mock function with given fields: newEnvFromVar, mergeFunc

type EnvVarManager

type EnvVarManager struct {
	EnvVarsByC map[common.AgentContainerName][]*v1.EnvVar
	// contains filtered or unexported fields
}

EnvVarManager is an autogenerated mock type for the EnvVarManager type

func NewFakeEnvVarManager

func NewFakeEnvVarManager(t testing.TB) *EnvVarManager

NewFakeEnvVarManager creates a new instance of EnvVarManager. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*EnvVarManager) AddEnvVar

func (_m *EnvVarManager) AddEnvVar(newEnvVar *v1.EnvVar)

AddEnvVar provides a mock function with given fields: newEnvVar

func (*EnvVarManager) AddEnvVarToContainer

func (_m *EnvVarManager) AddEnvVarToContainer(containerName common.AgentContainerName, newEnvVar *v1.EnvVar)

AddEnvVarToContainer provides a mock function with given fields: containerName, newEnvVar

func (*EnvVarManager) AddEnvVarToContainerWithMergeFunc

func (_m *EnvVarManager) AddEnvVarToContainerWithMergeFunc(containerName common.AgentContainerName, newEnvVar *v1.EnvVar, mergeFunc merger.EnvVarMergeFunction) error

AddEnvVarToContainerWithMergeFunc provides a mock function with given fields: containerName, newEnvVar, mergeFunc

func (*EnvVarManager) AddEnvVarToContainers

func (_m *EnvVarManager) AddEnvVarToContainers(containerNames []common.AgentContainerName, newEnvVar *v1.EnvVar)

AddEnvVarToContainers provides a mock function with given fields: containerNames, newEnvVar

func (*EnvVarManager) AddEnvVarToInitContainer

func (_m *EnvVarManager) AddEnvVarToInitContainer(containerName common.AgentContainerName, newEnvVar *v1.EnvVar)

AddEnvVarToInitContainer provides a mock function with given fields: containerName, newEnvVar

func (*EnvVarManager) AddEnvVarWithMergeFunc

func (_m *EnvVarManager) AddEnvVarWithMergeFunc(newEnvVar *v1.EnvVar, mergeFunc merger.EnvVarMergeFunction) error

AddEnvVarWithMergeFunc provides a mock function with given fields: newEnvVar, mergeFunc

type PortManager

type PortManager struct {
	PortsByC map[common.AgentContainerName][]*v1.ContainerPort
	// contains filtered or unexported fields
}

PortManager is an autogenerated mock type for the PortManager type

func NewFakePortManager

func NewFakePortManager(t testing.TB) *PortManager

NewFakePortManager creates a new instance of PortManager. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*PortManager) AddPortToContainer

func (_m *PortManager) AddPortToContainer(containerName common.AgentContainerName, newPort *v1.ContainerPort)

AddPortToContainer provides a mock function with given fields: containerName, newPort

func (*PortManager) AddPortToContainerWithMergeFunc

func (_m *PortManager) AddPortToContainerWithMergeFunc(containerName common.AgentContainerName, newPort *v1.ContainerPort, mergeFunc merger.PortMergeFunction) error

AddPortToContainerWithMergeFunc provides a mock function with given fields: containerName, newPort, mergeFunc

type SecurityContextManager

type SecurityContextManager struct {
	CapabilitiesByC map[common.AgentContainerName][]v1.Capability
	// contains filtered or unexported fields
}

SecurityContextManager is a mock type for the SecurityContextManager type

func NewFakeSecurityContextManager

func NewFakeSecurityContextManager(t testing.TB) *SecurityContextManager

NewFakeSecurityContextManager creates a new instance of SecurityContextManager. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*SecurityContextManager) AddCapabilitiesToContainer

func (_m *SecurityContextManager) AddCapabilitiesToContainer(capabilities []v1.Capability, containerName common.AgentContainerName)

AddCapabilitiesToContainer provides a mock function with given fields: capabilities, containerName

type VolumeManager

type VolumeManager struct {
	Volumes []*v1.Volume
	// contains filtered or unexported fields
}

VolumeManager is an autogenerated mock type for the VolumeManager type

func NewFakeVolumeManager

func NewFakeVolumeManager(t testing.TB) *VolumeManager

NewFakeVolumeManager creates a new instance of VolumeManager. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*VolumeManager) AddVolume

func (_m *VolumeManager) AddVolume(volume *v1.Volume)

AddVolume provides a mock function with given fields: volume, volumeMount

func (*VolumeManager) AddVolumeWithMergeFunc

func (_m *VolumeManager) AddVolumeWithMergeFunc(volume *v1.Volume, volumeMergeFunc merger.VolumeMergeFunction) error

AddVolumeWithMergeFunc provides a mock function with given fields: volume, volumeMount, containerName, volumeMergeFunc, volumeMountMergeFunc

type VolumeMountManager

type VolumeMountManager struct {
	VolumeMountsByC map[common.AgentContainerName][]*v1.VolumeMount
	// contains filtered or unexported fields
}

VolumeMountManager is an autogenerated mock type for the VolumeMountManager type

func NewFakeVolumeMountManager

func NewFakeVolumeMountManager(t testing.TB) *VolumeMountManager

NewFakeVolumeMountManager creates a new instance of VolumeMountManager. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.

func (*VolumeMountManager) AddVolumeMount

func (_m *VolumeMountManager) AddVolumeMount(volumeMount *v1.VolumeMount)

AddVolumeMount provides a mock function with given field: volumeMount

func (*VolumeMountManager) AddVolumeMountToContainer

func (_m *VolumeMountManager) AddVolumeMountToContainer(volumeMount *v1.VolumeMount, containerName common.AgentContainerName)

AddVolumeMountToContainer provides a mock function with given fields: volumeMount, containerName

func (*VolumeMountManager) AddVolumeMountToContainerWithMergeFunc

func (_m *VolumeMountManager) AddVolumeMountToContainerWithMergeFunc(volumeMount *v1.VolumeMount, containerName common.AgentContainerName, volumeMountMergeFunc merger.VolumeMountMergeFunction) error

AddVolumeMountToContainerWithMergeFunc provides a mock function with given fields: volume, volumeMount, containerName, volumeMergeFunc, volumeMountMergeFunc

func (*VolumeMountManager) AddVolumeMountToContainers

func (_m *VolumeMountManager) AddVolumeMountToContainers(volumeMount *v1.VolumeMount, containerNames []common.AgentContainerName)

AddVolumeMountToContainers provides a mock function with given fields: volume, volumeMount, containerNames

func (*VolumeMountManager) AddVolumeMountToContainersWithMergeFunc

func (_m *VolumeMountManager) AddVolumeMountToContainersWithMergeFunc(volumeMount *v1.VolumeMount, containerNames []common.AgentContainerName, volumeMountMergeFunc merger.VolumeMountMergeFunction) error

AddVolumeMountToContainersWithMergeFunc provides a mock function with given fields: volume, volumeMount, containerNames, volumeMergeFunc, volumeMountMergeFunc

func (*VolumeMountManager) AddVolumeMountToInitContainer

func (_m *VolumeMountManager) AddVolumeMountToInitContainer(volumeMount *v1.VolumeMount, containerName common.AgentContainerName)

AddVolumeMountToInitContainer provides a mock function with given fields: volumeMount, containerName

Jump to

Keyboard shortcuts

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