Documentation
¶
Index ¶
- Constants
- type AnnotationManager
- type EnvVarManager
- func (_m *EnvVarManager) AddEnvVar(newEnvVar *v1.EnvVar)
- func (_m *EnvVarManager) AddEnvVarToContainer(containerName commonv1.AgentContainerName, newEnvVar *v1.EnvVar)
- func (_m *EnvVarManager) AddEnvVarToContainerWithMergeFunc(containerName commonv1.AgentContainerName, newEnvVar *v1.EnvVar, ...) error
- func (_m *EnvVarManager) AddEnvVarToInitContainer(containerName commonv1.AgentContainerName, newEnvVar *v1.EnvVar)
- func (_m *EnvVarManager) AddEnvVarWithMergeFunc(newEnvVar *v1.EnvVar, mergeFunc merger.EnvVarMergeFunction) error
- type PortManager
- type SecurityContextManager
- type VolumeManager
- type VolumeMountManager
- func (_m *VolumeMountManager) AddVolumeMount(volumeMount *v1.VolumeMount)
- func (_m *VolumeMountManager) AddVolumeMountToContainer(volumeMount *v1.VolumeMount, containerName commonv1.AgentContainerName)
- func (_m *VolumeMountManager) AddVolumeMountToContainerWithMergeFunc(volumeMount *v1.VolumeMount, containerName commonv1.AgentContainerName, ...) error
- func (_m *VolumeMountManager) AddVolumeMountToContainers(volumeMount *v1.VolumeMount, containerNames []commonv1.AgentContainerName)
- func (_m *VolumeMountManager) AddVolumeMountToContainersWithMergeFunc(volumeMount *v1.VolumeMount, containerNames []commonv1.AgentContainerName, ...) error
- func (_m *VolumeMountManager) AddVolumeMountToInitContainer(volumeMount *v1.VolumeMount, containerName commonv1.AgentContainerName)
Constants ¶
const ( // AllContainers all containers container name AllContainers commonv1.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 EnvVarManager ¶
type EnvVarManager struct { EnvVarsByC map[commonv1.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 commonv1.AgentContainerName, newEnvVar *v1.EnvVar)
AddEnvVarToContainer provides a mock function with given fields: containerName, newEnvVar
func (*EnvVarManager) AddEnvVarToContainerWithMergeFunc ¶
func (_m *EnvVarManager) AddEnvVarToContainerWithMergeFunc(containerName commonv1.AgentContainerName, newEnvVar *v1.EnvVar, mergeFunc merger.EnvVarMergeFunction) error
AddEnvVarToContainerWithMergeFunc provides a mock function with given fields: containerName, newEnvVar, mergeFunc
func (*EnvVarManager) AddEnvVarToInitContainer ¶
func (_m *EnvVarManager) AddEnvVarToInitContainer(containerName commonv1.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[commonv1.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 commonv1.AgentContainerName, newPort *v1.ContainerPort)
AddPortToContainer provides a mock function with given fields: containerName, newPort
func (*PortManager) AddPortToContainerWithMergeFunc ¶
func (_m *PortManager) AddPortToContainerWithMergeFunc(containerName commonv1.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[commonv1.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 commonv1.AgentContainerName)
AddCapabilitiesToContainer provides a mock function with given fields: capabilities, containerName
type VolumeManager ¶
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[commonv1.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 commonv1.AgentContainerName)
AddVolumeMountToContainer provides a mock function with given fields: volumeMount, containerName
func (*VolumeMountManager) AddVolumeMountToContainerWithMergeFunc ¶
func (_m *VolumeMountManager) AddVolumeMountToContainerWithMergeFunc(volumeMount *v1.VolumeMount, containerName commonv1.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 []commonv1.AgentContainerName)
AddVolumeMountToContainers provides a mock function with given fields: volume, volumeMount, containerNames
func (*VolumeMountManager) AddVolumeMountToContainersWithMergeFunc ¶
func (_m *VolumeMountManager) AddVolumeMountToContainersWithMergeFunc(volumeMount *v1.VolumeMount, containerNames []commonv1.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 commonv1.AgentContainerName)
AddVolumeMountToInitContainer provides a mock function with given fields: volumeMount, containerName