mocks

package
v0.0.0-...-99c0418 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSResource

type AWSResource struct {
	mock.Mock
}

AWSResource is an autogenerated mock type for the AWSResource type

func NewAWSResource

func NewAWSResource(t interface {
	mock.TestingT
	Cleanup(func())
}) *AWSResource

NewAWSResource creates a new instance of AWSResource. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AWSResource) Conditions

func (_m *AWSResource) Conditions() []*v1alpha1.Condition

Conditions provides a mock function with given fields:

func (*AWSResource) DeepCopy

func (_m *AWSResource) DeepCopy() types.AWSResource

DeepCopy provides a mock function with given fields:

func (*AWSResource) Identifiers

func (_m *AWSResource) Identifiers() types.AWSResourceIdentifiers

Identifiers provides a mock function with given fields:

func (*AWSResource) IsBeingDeleted

func (_m *AWSResource) IsBeingDeleted() bool

IsBeingDeleted provides a mock function with given fields:

func (*AWSResource) MetaObject

func (_m *AWSResource) MetaObject() v1.Object

MetaObject provides a mock function with given fields:

func (*AWSResource) PopulateResourceFromAnnotation

func (_m *AWSResource) PopulateResourceFromAnnotation(fields map[string]string) error

PopulateResourceFromAnnotation provides a mock function with given fields: fields

func (*AWSResource) ReplaceConditions

func (_m *AWSResource) ReplaceConditions(_a0 []*v1alpha1.Condition)

ReplaceConditions provides a mock function with given fields: _a0

func (*AWSResource) RuntimeObject

func (_m *AWSResource) RuntimeObject() client.Object

RuntimeObject provides a mock function with given fields:

func (*AWSResource) SetIdentifiers

func (_m *AWSResource) SetIdentifiers(_a0 *v1alpha1.AWSIdentifiers) error

SetIdentifiers provides a mock function with given fields: _a0

func (*AWSResource) SetObjectMeta

func (_m *AWSResource) SetObjectMeta(meta v1.ObjectMeta)

SetObjectMeta provides a mock function with given fields: meta

func (*AWSResource) SetStatus

func (_m *AWSResource) SetStatus(_a0 types.AWSResource)

SetStatus provides a mock function with given fields: _a0

type AWSResourceDescriptor

type AWSResourceDescriptor struct {
	mock.Mock
}

AWSResourceDescriptor is an autogenerated mock type for the AWSResourceDescriptor type

func NewAWSResourceDescriptor

func NewAWSResourceDescriptor(t interface {
	mock.TestingT
	Cleanup(func())
}) *AWSResourceDescriptor

NewAWSResourceDescriptor creates a new instance of AWSResourceDescriptor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AWSResourceDescriptor) Delta

Delta provides a mock function with given fields: a, b

func (*AWSResourceDescriptor) EmptyRuntimeObject

func (_m *AWSResourceDescriptor) EmptyRuntimeObject() client.Object

EmptyRuntimeObject provides a mock function with given fields:

func (*AWSResourceDescriptor) GroupVersionKind

func (_m *AWSResourceDescriptor) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind provides a mock function with given fields:

func (*AWSResourceDescriptor) IsManaged

func (_m *AWSResourceDescriptor) IsManaged(_a0 types.AWSResource) bool

IsManaged provides a mock function with given fields: _a0

func (*AWSResourceDescriptor) MarkAdopted

func (_m *AWSResourceDescriptor) MarkAdopted(_a0 types.AWSResource)

MarkAdopted provides a mock function with given fields: _a0

func (*AWSResourceDescriptor) MarkManaged

func (_m *AWSResourceDescriptor) MarkManaged(_a0 types.AWSResource)

MarkManaged provides a mock function with given fields: _a0

func (*AWSResourceDescriptor) MarkUnmanaged

func (_m *AWSResourceDescriptor) MarkUnmanaged(_a0 types.AWSResource)

MarkUnmanaged provides a mock function with given fields: _a0

func (*AWSResourceDescriptor) ResourceFromRuntimeObject

func (_m *AWSResourceDescriptor) ResourceFromRuntimeObject(_a0 client.Object) types.AWSResource

ResourceFromRuntimeObject provides a mock function with given fields: _a0

type AWSResourceIdentifiers

type AWSResourceIdentifiers struct {
	mock.Mock
}

AWSResourceIdentifiers is an autogenerated mock type for the AWSResourceIdentifiers type

func NewAWSResourceIdentifiers

func NewAWSResourceIdentifiers(t interface {
	mock.TestingT
	Cleanup(func())
}) *AWSResourceIdentifiers

NewAWSResourceIdentifiers creates a new instance of AWSResourceIdentifiers. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AWSResourceIdentifiers) ARN

ARN provides a mock function with given fields:

func (*AWSResourceIdentifiers) OwnerAccountID

func (_m *AWSResourceIdentifiers) OwnerAccountID() *v1alpha1.AWSAccountID

OwnerAccountID provides a mock function with given fields:

func (*AWSResourceIdentifiers) Region

Region provides a mock function with given fields:

type AWSResourceManager

type AWSResourceManager struct {
	mock.Mock
}

AWSResourceManager is an autogenerated mock type for the AWSResourceManager type

func NewAWSResourceManager

func NewAWSResourceManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *AWSResourceManager

NewAWSResourceManager creates a new instance of AWSResourceManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AWSResourceManager) ARNFromName

func (_m *AWSResourceManager) ARNFromName(_a0 string) string

ARNFromName provides a mock function with given fields: _a0

func (*AWSResourceManager) ClearResolvedReferences

func (_m *AWSResourceManager) ClearResolvedReferences(_a0 types.AWSResource) types.AWSResource

ClearResolvedReferences provides a mock function with given fields: _a0

func (*AWSResourceManager) Create

Create provides a mock function with given fields: _a0, _a1

func (*AWSResourceManager) Delete

Delete provides a mock function with given fields: _a0, _a1

func (*AWSResourceManager) EnsureTags

EnsureTags provides a mock function with given fields: _a0, _a1, _a2

func (*AWSResourceManager) IsSynced

func (_m *AWSResourceManager) IsSynced(_a0 context.Context, _a1 types.AWSResource) (bool, error)

IsSynced provides a mock function with given fields: _a0, _a1

func (*AWSResourceManager) LateInitialize

func (_m *AWSResourceManager) LateInitialize(_a0 context.Context, _a1 types.AWSResource) (types.AWSResource, error)

LateInitialize provides a mock function with given fields: _a0, _a1

func (*AWSResourceManager) ReadOne

ReadOne provides a mock function with given fields: _a0, _a1

func (*AWSResourceManager) ResolveReferences

func (_m *AWSResourceManager) ResolveReferences(_a0 context.Context, _a1 client.Reader, _a2 types.AWSResource) (types.AWSResource, bool, error)

ResolveReferences provides a mock function with given fields: _a0, _a1, _a2

func (*AWSResourceManager) Update

Update provides a mock function with given fields: _a0, _a1, _a2, _a3

type AWSResourceManagerFactory

type AWSResourceManagerFactory struct {
	mock.Mock
}

AWSResourceManagerFactory is an autogenerated mock type for the AWSResourceManagerFactory type

func NewAWSResourceManagerFactory

func NewAWSResourceManagerFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *AWSResourceManagerFactory

NewAWSResourceManagerFactory creates a new instance of AWSResourceManagerFactory. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AWSResourceManagerFactory) IsAdoptable

func (_m *AWSResourceManagerFactory) IsAdoptable() bool

IsAdoptable provides a mock function with given fields:

func (*AWSResourceManagerFactory) ManagerFor

ManagerFor provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4, _a5, _a6, _a7

func (*AWSResourceManagerFactory) RequeueOnSuccessSeconds

func (_m *AWSResourceManagerFactory) RequeueOnSuccessSeconds() int

RequeueOnSuccessSeconds provides a mock function with given fields:

func (*AWSResourceManagerFactory) ResourceDescriptor

func (_m *AWSResourceManagerFactory) ResourceDescriptor() types.AWSResourceDescriptor

ResourceDescriptor provides a mock function with given fields:

type AWSResourceReconciler

type AWSResourceReconciler struct {
	mock.Mock
}

AWSResourceReconciler is an autogenerated mock type for the AWSResourceReconciler type

func NewAWSResourceReconciler

func NewAWSResourceReconciler(t interface {
	mock.TestingT
	Cleanup(func())
}) *AWSResourceReconciler

NewAWSResourceReconciler creates a new instance of AWSResourceReconciler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AWSResourceReconciler) BindControllerManager

func (_m *AWSResourceReconciler) BindControllerManager(_a0 manager.Manager) error

BindControllerManager provides a mock function with given fields: _a0

func (*AWSResourceReconciler) GroupVersionKind

func (_m *AWSResourceReconciler) GroupVersionKind() *schema.GroupVersionKind

GroupVersionKind provides a mock function with given fields:

func (*AWSResourceReconciler) HandleReconcileError

func (_m *AWSResourceReconciler) HandleReconcileError(ctx context.Context, desired types.AWSResource, latest types.AWSResource, err error) (reconcile.Result, error)

HandleReconcileError provides a mock function with given fields: ctx, desired, latest, err

func (*AWSResourceReconciler) Reconcile

Reconcile provides a mock function with given fields: _a0, _a1

func (*AWSResourceReconciler) SecretValueFromReference

func (_m *AWSResourceReconciler) SecretValueFromReference(_a0 context.Context, _a1 *v1alpha1.SecretKeyReference) (string, error)

SecretValueFromReference provides a mock function with given fields: _a0, _a1

func (*AWSResourceReconciler) Sync

Sync provides a mock function with given fields: _a0, _a1, _a2

func (*AWSResourceReconciler) WriteToSecret

func (_m *AWSResourceReconciler) WriteToSecret(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string) error

WriteToSecret provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

type AdoptedResourceReconciler

type AdoptedResourceReconciler struct {
	mock.Mock
}

AdoptedResourceReconciler is an autogenerated mock type for the AdoptedResourceReconciler type

func NewAdoptedResourceReconciler

func NewAdoptedResourceReconciler(t interface {
	mock.TestingT
	Cleanup(func())
}) *AdoptedResourceReconciler

NewAdoptedResourceReconciler creates a new instance of AdoptedResourceReconciler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*AdoptedResourceReconciler) BindControllerManager

func (_m *AdoptedResourceReconciler) BindControllerManager(_a0 manager.Manager) error

BindControllerManager provides a mock function with given fields: _a0

func (*AdoptedResourceReconciler) Reconcile

Reconcile provides a mock function with given fields: _a0, _a1

func (*AdoptedResourceReconciler) SecretValueFromReference

func (_m *AdoptedResourceReconciler) SecretValueFromReference(_a0 context.Context, _a1 *v1alpha1.SecretKeyReference) (string, error)

SecretValueFromReference provides a mock function with given fields: _a0, _a1

func (*AdoptedResourceReconciler) Sync

Sync provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*AdoptedResourceReconciler) WriteToSecret

func (_m *AdoptedResourceReconciler) WriteToSecret(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string) error

WriteToSecret provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

type ConditionManager

type ConditionManager struct {
	mock.Mock
}

ConditionManager is an autogenerated mock type for the ConditionManager type

func NewConditionManager

func NewConditionManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConditionManager

NewConditionManager creates a new instance of ConditionManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ConditionManager) Conditions

func (_m *ConditionManager) Conditions() []*v1alpha1.Condition

Conditions provides a mock function with given fields:

func (*ConditionManager) ReplaceConditions

func (_m *ConditionManager) ReplaceConditions(_a0 []*v1alpha1.Condition)

ReplaceConditions provides a mock function with given fields: _a0

type FieldExportReconciler

type FieldExportReconciler struct {
	mock.Mock
}

FieldExportReconciler is an autogenerated mock type for the FieldExportReconciler type

func NewFieldExportReconciler

func NewFieldExportReconciler(t interface {
	mock.TestingT
	Cleanup(func())
}) *FieldExportReconciler

NewFieldExportReconciler creates a new instance of FieldExportReconciler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FieldExportReconciler) BindControllerManager

func (_m *FieldExportReconciler) BindControllerManager(_a0 manager.Manager) error

BindControllerManager provides a mock function with given fields: _a0

func (*FieldExportReconciler) GetFieldExportsForResource

func (_m *FieldExportReconciler) GetFieldExportsForResource(_a0 context.Context, _a1 schema.GroupKind, _a2 pkgtypes.NamespacedName) ([]v1alpha1.FieldExport, error)

GetFieldExportsForResource provides a mock function with given fields: _a0, _a1, _a2

func (*FieldExportReconciler) Reconcile

Reconcile provides a mock function with given fields: _a0, _a1

func (*FieldExportReconciler) SecretValueFromReference

func (_m *FieldExportReconciler) SecretValueFromReference(_a0 context.Context, _a1 *v1alpha1.SecretKeyReference) (string, error)

SecretValueFromReference provides a mock function with given fields: _a0, _a1

func (*FieldExportReconciler) Sync

Sync provides a mock function with given fields: _a0, _a1, _a2

func (*FieldExportReconciler) WriteToSecret

func (_m *FieldExportReconciler) WriteToSecret(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string) error

WriteToSecret provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger

func NewLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *Logger

NewLogger creates a new instance of Logger. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Logger) Debug

func (_m *Logger) Debug(msg string, additionalValues ...interface{})

Debug provides a mock function with given fields: msg, additionalValues

func (*Logger) Enter

func (_m *Logger) Enter(name string, additionalValues ...interface{})

Enter provides a mock function with given fields: name, additionalValues

func (*Logger) Exit

func (_m *Logger) Exit(name string, err error, additionalValues ...interface{})

Exit provides a mock function with given fields: name, err, additionalValues

func (*Logger) Info

func (_m *Logger) Info(msg string, additionalValues ...interface{})

Info provides a mock function with given fields: msg, additionalValues

func (*Logger) IsDebugEnabled

func (_m *Logger) IsDebugEnabled() bool

IsDebugEnabled provides a mock function with given fields:

func (*Logger) Trace

func (_m *Logger) Trace(name string, additionalValues ...interface{}) types.TraceExiter

Trace provides a mock function with given fields: name, additionalValues

func (*Logger) WithValues

func (_m *Logger) WithValues(_a0 ...interface{})

WithValues provides a mock function with given fields: _a0

type Reconciler

type Reconciler struct {
	mock.Mock
}

Reconciler is an autogenerated mock type for the Reconciler type

func NewReconciler

func NewReconciler(t interface {
	mock.TestingT
	Cleanup(func())
}) *Reconciler

NewReconciler creates a new instance of Reconciler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Reconciler) Reconcile

func (_m *Reconciler) Reconcile(_a0 context.Context, _a1 reconcile.Request) (reconcile.Result, error)

Reconcile provides a mock function with given fields: _a0, _a1

func (*Reconciler) SecretValueFromReference

func (_m *Reconciler) SecretValueFromReference(_a0 context.Context, _a1 *v1alpha1.SecretKeyReference) (string, error)

SecretValueFromReference provides a mock function with given fields: _a0, _a1

func (*Reconciler) WriteToSecret

func (_m *Reconciler) WriteToSecret(_a0 context.Context, _a1 string, _a2 string, _a3 string, _a4 string) error

WriteToSecret provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

type ReferenceManager

type ReferenceManager struct {
	mock.Mock
}

ReferenceManager is an autogenerated mock type for the ReferenceManager type

func NewReferenceManager

func NewReferenceManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReferenceManager

NewReferenceManager creates a new instance of ReferenceManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ReferenceManager) ClearResolvedReferences

func (_m *ReferenceManager) ClearResolvedReferences(_a0 types.AWSResource) types.AWSResource

ClearResolvedReferences provides a mock function with given fields: _a0

func (*ReferenceManager) ResolveReferences

func (_m *ReferenceManager) ResolveReferences(_a0 context.Context, _a1 client.Reader, _a2 types.AWSResource) (types.AWSResource, bool, error)

ResolveReferences provides a mock function with given fields: _a0, _a1, _a2

type ResolvedReferenceManager

type ResolvedReferenceManager struct {
	mock.Mock
}

ResolvedReferenceManager is an autogenerated mock type for the ResolvedReferenceManager type

func NewResolvedReferenceManager

func NewResolvedReferenceManager(t mockConstructorTestingTNewResolvedReferenceManager) *ResolvedReferenceManager

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

func (*ResolvedReferenceManager) ClearResolvedReferences

func (_m *ResolvedReferenceManager) ClearResolvedReferences(_a0 types.AWSResource) types.AWSResource

ClearResolvedReferences provides a mock function with given fields: _a0

func (*ResolvedReferenceManager) ResolveReferences

ResolveReferences provides a mock function with given fields: _a0, _a1, _a2

type ServiceController

type ServiceController struct {
	mock.Mock
}

ServiceController is an autogenerated mock type for the ServiceController type

func NewServiceController

func NewServiceController(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceController

NewServiceController creates a new instance of ServiceController. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ServiceController) BindControllerManager

func (_m *ServiceController) BindControllerManager(_a0 manager.Manager, _a1 config.Config) error

BindControllerManager provides a mock function with given fields: _a0, _a1

func (*ServiceController) GetMetadata

GetMetadata provides a mock function with given fields:

func (*ServiceController) GetReconcilers

func (_m *ServiceController) GetReconcilers() []types.AWSResourceReconciler

GetReconcilers provides a mock function with given fields:

func (*ServiceController) GetResourceManagerFactories

func (_m *ServiceController) GetResourceManagerFactories() map[string]types.AWSResourceManagerFactory

GetResourceManagerFactories provides a mock function with given fields:

func (*ServiceController) NewAWSConfig

NewAWSConfig provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*ServiceController) WithLogger

func (_m *ServiceController) WithLogger(_a0 logr.Logger) types.ServiceController

WithLogger provides a mock function with given fields: _a0

func (*ServiceController) WithPrometheusRegistry

func (_m *ServiceController) WithPrometheusRegistry(_a0 prometheus.Registerer) types.ServiceController

WithPrometheusRegistry provides a mock function with given fields: _a0

func (*ServiceController) WithResourceManagerFactories

func (_m *ServiceController) WithResourceManagerFactories(_a0 []types.AWSResourceManagerFactory) types.ServiceController

WithResourceManagerFactories provides a mock function with given fields: _a0

type TraceExiter

type TraceExiter struct {
	mock.Mock
}

TraceExiter is an autogenerated mock type for the TraceExiter type

func NewTraceExiter

func NewTraceExiter(t interface {
	mock.TestingT
	Cleanup(func())
}) *TraceExiter

NewTraceExiter creates a new instance of TraceExiter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TraceExiter) Execute

func (_m *TraceExiter) Execute(err error, additionalValues ...interface{})

Execute provides a mock function with given fields: err, additionalValues

type Tracer

type Tracer struct {
	mock.Mock
}

Tracer is an autogenerated mock type for the Tracer type

func NewTracer

func NewTracer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Tracer

NewTracer creates a new instance of Tracer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Tracer) Trace

func (_m *Tracer) Trace(name string, additionalValues ...interface{}) types.TraceExiter

Trace provides a mock function with given fields: name, additionalValues

Jump to

Keyboard shortcuts

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