Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockFactory
- func (m *MockFactory) DefaultInitializer(c client.Client, main, variables string, tfVars []byte, ...) terraformer.Initializer
- func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
- func (m *MockFactory) New(logger logr.Logger, client client.Client, coreV1Client v11.CoreV1Interface, ...) terraformer.Terraformer
- func (m *MockFactory) NewForConfig(logger logr.Logger, config *rest.Config, ...) (terraformer.Terraformer, error)
- type MockFactoryMockRecorder
- func (mr *MockFactoryMockRecorder) DefaultInitializer(c, main, variables, tfVars, stateInitializer any) *gomock.Call
- func (mr *MockFactoryMockRecorder) New(logger, client, coreV1Client, purpose, namespace, name, image any) *gomock.Call
- func (mr *MockFactoryMockRecorder) NewForConfig(logger, config, purpose, namespace, name, image any) *gomock.Call
- type MockInitializer
- type MockInitializerMockRecorder
- type MockTerraformer
- func (m *MockTerraformer) Apply(ctx context.Context) error
- func (m *MockTerraformer) CleanupConfiguration(ctx context.Context) error
- func (m *MockTerraformer) ConfigExists(ctx context.Context) (bool, error)
- func (m *MockTerraformer) Destroy(ctx context.Context) error
- func (m *MockTerraformer) EXPECT() *MockTerraformerMockRecorder
- func (m *MockTerraformer) EnsureCleanedUp(ctx context.Context) error
- func (m *MockTerraformer) GetRawState(ctx context.Context) (*terraformer.RawState, error)
- func (m *MockTerraformer) GetState(ctx context.Context) ([]byte, error)
- func (m *MockTerraformer) GetStateOutputVariables(ctx context.Context, variables ...string) (map[string]string, error)
- func (m *MockTerraformer) InitializeWith(ctx context.Context, initializer terraformer.Initializer) terraformer.Terraformer
- func (m *MockTerraformer) IsStateEmpty(ctx context.Context) bool
- func (m *MockTerraformer) NumberOfResources(ctx context.Context) (int, error)
- func (m *MockTerraformer) RemoveTerraformerFinalizerFromConfig(ctx context.Context) error
- func (m *MockTerraformer) SetDeadlineCleaning(arg0 time.Duration) terraformer.Terraformer
- func (m *MockTerraformer) SetDeadlinePod(arg0 time.Duration) terraformer.Terraformer
- func (m *MockTerraformer) SetDeadlinePodCreation(arg0 time.Duration) terraformer.Terraformer
- func (m *MockTerraformer) SetEnvVars(envVars ...v1.EnvVar) terraformer.Terraformer
- func (m *MockTerraformer) SetLogLevel(arg0 string) terraformer.Terraformer
- func (m *MockTerraformer) SetOwnerRef(arg0 *v10.OwnerReference) terraformer.Terraformer
- func (m *MockTerraformer) SetTerminationGracePeriodSeconds(arg0 int64) terraformer.Terraformer
- func (m *MockTerraformer) UseProjectedTokenMount(arg0 bool) terraformer.Terraformer
- func (m *MockTerraformer) WaitForCleanEnvironment(ctx context.Context) error
- type MockTerraformerMockRecorder
- func (mr *MockTerraformerMockRecorder) Apply(ctx any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) CleanupConfiguration(ctx any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) ConfigExists(ctx any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) Destroy(ctx any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) EnsureCleanedUp(ctx any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) GetRawState(ctx any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) GetState(ctx any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) GetStateOutputVariables(ctx any, variables ...any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) InitializeWith(ctx, initializer any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) IsStateEmpty(ctx any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) NumberOfResources(ctx any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) RemoveTerraformerFinalizerFromConfig(ctx any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) SetDeadlineCleaning(arg0 any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) SetDeadlinePod(arg0 any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) SetDeadlinePodCreation(arg0 any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) SetEnvVars(envVars ...any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) SetLogLevel(arg0 any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) SetOwnerRef(arg0 any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) SetTerminationGracePeriodSeconds(arg0 any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) UseProjectedTokenMount(arg0 any) *gomock.Call
- func (mr *MockTerraformerMockRecorder) WaitForCleanEnvironment(ctx any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFactory ¶
type MockFactory struct {
// contains filtered or unexported fields
}
MockFactory is a mock of Factory interface.
func NewMockFactory ¶
func NewMockFactory(ctrl *gomock.Controller) *MockFactory
NewMockFactory creates a new mock instance.
func (*MockFactory) DefaultInitializer ¶
func (m *MockFactory) DefaultInitializer(c client.Client, main, variables string, tfVars []byte, stateInitializer terraformer.StateConfigMapInitializer) terraformer.Initializer
DefaultInitializer mocks base method.
func (*MockFactory) EXPECT ¶
func (m *MockFactory) EXPECT() *MockFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockFactory) New ¶
func (m *MockFactory) New(logger logr.Logger, client client.Client, coreV1Client v11.CoreV1Interface, purpose, namespace, name, image string) terraformer.Terraformer
New mocks base method.
func (*MockFactory) NewForConfig ¶
func (m *MockFactory) NewForConfig(logger logr.Logger, config *rest.Config, purpose, namespace, name, image string) (terraformer.Terraformer, error)
NewForConfig mocks base method.
type MockFactoryMockRecorder ¶
type MockFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockFactoryMockRecorder is the mock recorder for MockFactory.
func (*MockFactoryMockRecorder) DefaultInitializer ¶
func (mr *MockFactoryMockRecorder) DefaultInitializer(c, main, variables, tfVars, stateInitializer any) *gomock.Call
DefaultInitializer indicates an expected call of DefaultInitializer.
func (*MockFactoryMockRecorder) New ¶
func (mr *MockFactoryMockRecorder) New(logger, client, coreV1Client, purpose, namespace, name, image any) *gomock.Call
New indicates an expected call of New.
func (*MockFactoryMockRecorder) NewForConfig ¶
func (mr *MockFactoryMockRecorder) NewForConfig(logger, config, purpose, namespace, name, image any) *gomock.Call
NewForConfig indicates an expected call of NewForConfig.
type MockInitializer ¶
type MockInitializer struct {
// contains filtered or unexported fields
}
MockInitializer is a mock of Initializer interface.
func NewMockInitializer ¶
func NewMockInitializer(ctrl *gomock.Controller) *MockInitializer
NewMockInitializer creates a new mock instance.
func (*MockInitializer) EXPECT ¶
func (m *MockInitializer) EXPECT() *MockInitializerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInitializer) Initialize ¶
func (m *MockInitializer) Initialize(ctx context.Context, config *terraformer.InitializerConfig, ownerRef *v10.OwnerReference) error
Initialize mocks base method.
type MockInitializerMockRecorder ¶
type MockInitializerMockRecorder struct {
// contains filtered or unexported fields
}
MockInitializerMockRecorder is the mock recorder for MockInitializer.
func (*MockInitializerMockRecorder) Initialize ¶
func (mr *MockInitializerMockRecorder) Initialize(ctx, config, ownerRef any) *gomock.Call
Initialize indicates an expected call of Initialize.
type MockTerraformer ¶
type MockTerraformer struct {
// contains filtered or unexported fields
}
MockTerraformer is a mock of Terraformer interface.
func NewMockTerraformer ¶
func NewMockTerraformer(ctrl *gomock.Controller) *MockTerraformer
NewMockTerraformer creates a new mock instance.
func (*MockTerraformer) Apply ¶
func (m *MockTerraformer) Apply(ctx context.Context) error
Apply mocks base method.
func (*MockTerraformer) CleanupConfiguration ¶
func (m *MockTerraformer) CleanupConfiguration(ctx context.Context) error
CleanupConfiguration mocks base method.
func (*MockTerraformer) ConfigExists ¶
func (m *MockTerraformer) ConfigExists(ctx context.Context) (bool, error)
ConfigExists mocks base method.
func (*MockTerraformer) Destroy ¶
func (m *MockTerraformer) Destroy(ctx context.Context) error
Destroy mocks base method.
func (*MockTerraformer) EXPECT ¶
func (m *MockTerraformer) EXPECT() *MockTerraformerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTerraformer) EnsureCleanedUp ¶
func (m *MockTerraformer) EnsureCleanedUp(ctx context.Context) error
EnsureCleanedUp mocks base method.
func (*MockTerraformer) GetRawState ¶
func (m *MockTerraformer) GetRawState(ctx context.Context) (*terraformer.RawState, error)
GetRawState mocks base method.
func (*MockTerraformer) GetState ¶
func (m *MockTerraformer) GetState(ctx context.Context) ([]byte, error)
GetState mocks base method.
func (*MockTerraformer) GetStateOutputVariables ¶
func (m *MockTerraformer) GetStateOutputVariables(ctx context.Context, variables ...string) (map[string]string, error)
GetStateOutputVariables mocks base method.
func (*MockTerraformer) InitializeWith ¶
func (m *MockTerraformer) InitializeWith(ctx context.Context, initializer terraformer.Initializer) terraformer.Terraformer
InitializeWith mocks base method.
func (*MockTerraformer) IsStateEmpty ¶
func (m *MockTerraformer) IsStateEmpty(ctx context.Context) bool
IsStateEmpty mocks base method.
func (*MockTerraformer) NumberOfResources ¶
func (m *MockTerraformer) NumberOfResources(ctx context.Context) (int, error)
NumberOfResources mocks base method.
func (*MockTerraformer) RemoveTerraformerFinalizerFromConfig ¶
func (m *MockTerraformer) RemoveTerraformerFinalizerFromConfig(ctx context.Context) error
RemoveTerraformerFinalizerFromConfig mocks base method.
func (*MockTerraformer) SetDeadlineCleaning ¶
func (m *MockTerraformer) SetDeadlineCleaning(arg0 time.Duration) terraformer.Terraformer
SetDeadlineCleaning mocks base method.
func (*MockTerraformer) SetDeadlinePod ¶
func (m *MockTerraformer) SetDeadlinePod(arg0 time.Duration) terraformer.Terraformer
SetDeadlinePod mocks base method.
func (*MockTerraformer) SetDeadlinePodCreation ¶ added in v1.25.0
func (m *MockTerraformer) SetDeadlinePodCreation(arg0 time.Duration) terraformer.Terraformer
SetDeadlinePodCreation mocks base method.
func (*MockTerraformer) SetEnvVars ¶
func (m *MockTerraformer) SetEnvVars(envVars ...v1.EnvVar) terraformer.Terraformer
SetEnvVars mocks base method.
func (*MockTerraformer) SetLogLevel ¶
func (m *MockTerraformer) SetLogLevel(arg0 string) terraformer.Terraformer
SetLogLevel mocks base method.
func (*MockTerraformer) SetOwnerRef ¶
func (m *MockTerraformer) SetOwnerRef(arg0 *v10.OwnerReference) terraformer.Terraformer
SetOwnerRef mocks base method.
func (*MockTerraformer) SetTerminationGracePeriodSeconds ¶
func (m *MockTerraformer) SetTerminationGracePeriodSeconds(arg0 int64) terraformer.Terraformer
SetTerminationGracePeriodSeconds mocks base method.
func (*MockTerraformer) UseProjectedTokenMount ¶ added in v1.39.0
func (m *MockTerraformer) UseProjectedTokenMount(arg0 bool) terraformer.Terraformer
UseProjectedTokenMount mocks base method.
func (*MockTerraformer) WaitForCleanEnvironment ¶
func (m *MockTerraformer) WaitForCleanEnvironment(ctx context.Context) error
WaitForCleanEnvironment mocks base method.
type MockTerraformerMockRecorder ¶
type MockTerraformerMockRecorder struct {
// contains filtered or unexported fields
}
MockTerraformerMockRecorder is the mock recorder for MockTerraformer.
func (*MockTerraformerMockRecorder) Apply ¶
func (mr *MockTerraformerMockRecorder) Apply(ctx any) *gomock.Call
Apply indicates an expected call of Apply.
func (*MockTerraformerMockRecorder) CleanupConfiguration ¶
func (mr *MockTerraformerMockRecorder) CleanupConfiguration(ctx any) *gomock.Call
CleanupConfiguration indicates an expected call of CleanupConfiguration.
func (*MockTerraformerMockRecorder) ConfigExists ¶
func (mr *MockTerraformerMockRecorder) ConfigExists(ctx any) *gomock.Call
ConfigExists indicates an expected call of ConfigExists.
func (*MockTerraformerMockRecorder) Destroy ¶
func (mr *MockTerraformerMockRecorder) Destroy(ctx any) *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockTerraformerMockRecorder) EnsureCleanedUp ¶
func (mr *MockTerraformerMockRecorder) EnsureCleanedUp(ctx any) *gomock.Call
EnsureCleanedUp indicates an expected call of EnsureCleanedUp.
func (*MockTerraformerMockRecorder) GetRawState ¶
func (mr *MockTerraformerMockRecorder) GetRawState(ctx any) *gomock.Call
GetRawState indicates an expected call of GetRawState.
func (*MockTerraformerMockRecorder) GetState ¶
func (mr *MockTerraformerMockRecorder) GetState(ctx any) *gomock.Call
GetState indicates an expected call of GetState.
func (*MockTerraformerMockRecorder) GetStateOutputVariables ¶
func (mr *MockTerraformerMockRecorder) GetStateOutputVariables(ctx any, variables ...any) *gomock.Call
GetStateOutputVariables indicates an expected call of GetStateOutputVariables.
func (*MockTerraformerMockRecorder) InitializeWith ¶
func (mr *MockTerraformerMockRecorder) InitializeWith(ctx, initializer any) *gomock.Call
InitializeWith indicates an expected call of InitializeWith.
func (*MockTerraformerMockRecorder) IsStateEmpty ¶
func (mr *MockTerraformerMockRecorder) IsStateEmpty(ctx any) *gomock.Call
IsStateEmpty indicates an expected call of IsStateEmpty.
func (*MockTerraformerMockRecorder) NumberOfResources ¶
func (mr *MockTerraformerMockRecorder) NumberOfResources(ctx any) *gomock.Call
NumberOfResources indicates an expected call of NumberOfResources.
func (*MockTerraformerMockRecorder) RemoveTerraformerFinalizerFromConfig ¶
func (mr *MockTerraformerMockRecorder) RemoveTerraformerFinalizerFromConfig(ctx any) *gomock.Call
RemoveTerraformerFinalizerFromConfig indicates an expected call of RemoveTerraformerFinalizerFromConfig.
func (*MockTerraformerMockRecorder) SetDeadlineCleaning ¶
func (mr *MockTerraformerMockRecorder) SetDeadlineCleaning(arg0 any) *gomock.Call
SetDeadlineCleaning indicates an expected call of SetDeadlineCleaning.
func (*MockTerraformerMockRecorder) SetDeadlinePod ¶
func (mr *MockTerraformerMockRecorder) SetDeadlinePod(arg0 any) *gomock.Call
SetDeadlinePod indicates an expected call of SetDeadlinePod.
func (*MockTerraformerMockRecorder) SetDeadlinePodCreation ¶ added in v1.25.0
func (mr *MockTerraformerMockRecorder) SetDeadlinePodCreation(arg0 any) *gomock.Call
SetDeadlinePodCreation indicates an expected call of SetDeadlinePodCreation.
func (*MockTerraformerMockRecorder) SetEnvVars ¶
func (mr *MockTerraformerMockRecorder) SetEnvVars(envVars ...any) *gomock.Call
SetEnvVars indicates an expected call of SetEnvVars.
func (*MockTerraformerMockRecorder) SetLogLevel ¶
func (mr *MockTerraformerMockRecorder) SetLogLevel(arg0 any) *gomock.Call
SetLogLevel indicates an expected call of SetLogLevel.
func (*MockTerraformerMockRecorder) SetOwnerRef ¶
func (mr *MockTerraformerMockRecorder) SetOwnerRef(arg0 any) *gomock.Call
SetOwnerRef indicates an expected call of SetOwnerRef.
func (*MockTerraformerMockRecorder) SetTerminationGracePeriodSeconds ¶
func (mr *MockTerraformerMockRecorder) SetTerminationGracePeriodSeconds(arg0 any) *gomock.Call
SetTerminationGracePeriodSeconds indicates an expected call of SetTerminationGracePeriodSeconds.
func (*MockTerraformerMockRecorder) UseProjectedTokenMount ¶ added in v1.39.0
func (mr *MockTerraformerMockRecorder) UseProjectedTokenMount(arg0 any) *gomock.Call
UseProjectedTokenMount indicates an expected call of UseProjectedTokenMount.
func (*MockTerraformerMockRecorder) WaitForCleanEnvironment ¶
func (mr *MockTerraformerMockRecorder) WaitForCleanEnvironment(ctx any) *gomock.Call
WaitForCleanEnvironment indicates an expected call of WaitForCleanEnvironment.