mocks

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 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 added in v0.19.1

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 added in v0.13.0

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) ReplaceConditions added in v0.3.0

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 added in v0.1.0

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

SetIdentifiers provides a mock function with given fields: _a0

func (*AWSResource) SetObjectMeta added in v0.1.0

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

SetObjectMeta provides a mock function with given fields: meta

func (*AWSResource) SetStatus added in v0.10.0

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 added in v0.19.1

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 added in v0.0.5

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 added in v0.25.0

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 added in v0.1.0

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 added in v0.19.1

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 added in v0.18.0

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 added in v0.19.1

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 added in v0.26.0

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 added in v0.18.6

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

func (*AWSResourceManager) IsSynced added in v0.16.4

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 added in v0.10.0

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 added in v0.16.0

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 added in v0.19.1

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 added in v0.1.0

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

func (*AWSResourceManagerFactory) RequeueOnSuccessSeconds added in v0.4.0

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 added in v0.19.1

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 added in v0.25.0

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

GroupVersionKind provides a mock function with given fields:

func (*AWSResourceReconciler) HandleReconcileError added in v0.8.0

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 added in v0.0.5

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

type AdoptedResourceReconciler added in v0.14.1

type AdoptedResourceReconciler struct {
	mock.Mock
}

AdoptedResourceReconciler is an autogenerated mock type for the AdoptedResourceReconciler type

func NewAdoptedResourceReconciler added in v0.19.1

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 added in v0.14.1

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

BindControllerManager provides a mock function with given fields: _a0

func (*AdoptedResourceReconciler) Reconcile added in v0.14.1

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

func (*AdoptedResourceReconciler) SecretValueFromReference added in v0.14.1

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 added in v0.14.1

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

type ConditionManager added in v0.3.0

type ConditionManager struct {
	mock.Mock
}

ConditionManager is an autogenerated mock type for the ConditionManager type

func NewConditionManager added in v0.19.1

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 added in v0.3.0

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

Conditions provides a mock function with given fields:

func (*ConditionManager) ReplaceConditions added in v0.3.0

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

ReplaceConditions provides a mock function with given fields: _a0

type FieldExportReconciler added in v0.18.0

type FieldExportReconciler struct {
	mock.Mock
}

FieldExportReconciler is an autogenerated mock type for the FieldExportReconciler type

func NewFieldExportReconciler added in v0.19.1

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 added in v0.18.0

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

BindControllerManager provides a mock function with given fields: _a0

func (*FieldExportReconciler) GetFieldExportsForResource added in v0.18.0

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 added in v0.18.0

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

func (*FieldExportReconciler) SecretValueFromReference added in v0.18.0

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 added in v0.18.0

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

type Logger added in v0.2.3

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger added in v0.19.1

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 added in v0.2.3

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

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

func (*Logger) Enter added in v0.2.3

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

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

func (*Logger) Exit added in v0.2.3

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

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

func (*Logger) Info added in v0.2.3

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

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

func (*Logger) IsDebugEnabled added in v0.19.3

func (_m *Logger) IsDebugEnabled() bool

IsDebugEnabled provides a mock function with given fields:

func (*Logger) Trace added in v0.2.3

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

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

func (*Logger) WithValues added in v0.2.3

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

WithValues provides a mock function with given fields: _a0

type Reconciler added in v0.1.0

type Reconciler struct {
	mock.Mock
}

Reconciler is an autogenerated mock type for the Reconciler type

func NewReconciler added in v0.19.1

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 added in v0.1.0

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 added in v0.1.0

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

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

type ReferenceManager added in v0.29.0

type ReferenceManager struct {
	mock.Mock
}

ReferenceManager is an autogenerated mock type for the ReferenceManager type

func NewReferenceManager added in v0.29.0

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 added in v0.29.0

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

ClearResolvedReferences provides a mock function with given fields: _a0

func (*ReferenceManager) ResolveReferences added in v0.29.0

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 added in v0.26.0

type ResolvedReferenceManager struct {
	mock.Mock
}

ResolvedReferenceManager is an autogenerated mock type for the ResolvedReferenceManager type

func NewResolvedReferenceManager added in v0.26.0

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 added in v0.26.0

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

ClearResolvedReferences provides a mock function with given fields: _a0

func (*ResolvedReferenceManager) ResolveReferences added in v0.26.0

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

type ServiceController added in v0.0.5

type ServiceController struct {
	mock.Mock
}

ServiceController is an autogenerated mock type for the ServiceController type

func NewServiceController added in v0.19.1

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 added in v0.0.5

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

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

func (*ServiceController) GetMetadata added in v0.18.6

GetMetadata provides a mock function with given fields:

func (*ServiceController) GetReconcilers added in v0.0.5

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

GetReconcilers provides a mock function with given fields:

func (*ServiceController) GetResourceManagerFactories added in v0.1.1

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

GetResourceManagerFactories provides a mock function with given fields:

func (*ServiceController) NewSession added in v0.0.5

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

func (*ServiceController) WithLogger added in v0.0.5

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

WithLogger provides a mock function with given fields: _a0

func (*ServiceController) WithPrometheusRegistry added in v0.0.5

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

WithPrometheusRegistry provides a mock function with given fields: _a0

func (*ServiceController) WithResourceManagerFactories added in v0.0.5

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

WithResourceManagerFactories provides a mock function with given fields: _a0

type TraceExiter added in v0.2.3

type TraceExiter struct {
	mock.Mock
}

TraceExiter is an autogenerated mock type for the TraceExiter type

func NewTraceExiter added in v0.19.1

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 added in v0.2.3

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

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

type Tracer added in v0.2.3

type Tracer struct {
	mock.Mock
}

Tracer is an autogenerated mock type for the Tracer type

func NewTracer added in v0.19.1

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 added in v0.2.3

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