mocks

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler added in v1.0.0

type Reconciler struct {
	mock.Mock
}

Reconciler is an autogenerated mock type for the Reconciler type

func NewReconciler added in v1.0.0

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) EXPECT added in v1.0.0

func (_m *Reconciler) EXPECT() *Reconciler_Expecter

func (*Reconciler) ReconcileActiveGate added in v1.0.0

func (_m *Reconciler) ReconcileActiveGate(ctx context.Context, dk *dynakube.DynaKube) error

ReconcileActiveGate provides a mock function with given fields: ctx, dk

func (*Reconciler) ReconcileCodeModules added in v1.0.0

func (_m *Reconciler) ReconcileCodeModules(ctx context.Context, dk *dynakube.DynaKube) error

ReconcileCodeModules provides a mock function with given fields: ctx, dk

func (*Reconciler) ReconcileOneAgent added in v1.0.0

func (_m *Reconciler) ReconcileOneAgent(ctx context.Context, dk *dynakube.DynaKube) error

ReconcileOneAgent provides a mock function with given fields: ctx, dk

type Reconciler_Expecter added in v1.0.0

type Reconciler_Expecter struct {
	// contains filtered or unexported fields
}

func (*Reconciler_Expecter) ReconcileActiveGate added in v1.0.0

func (_e *Reconciler_Expecter) ReconcileActiveGate(ctx interface{}, dk interface{}) *Reconciler_ReconcileActiveGate_Call

ReconcileActiveGate is a helper method to define mock.On call

  • ctx context.Context
  • dk *dynakube.DynaKube

func (*Reconciler_Expecter) ReconcileCodeModules added in v1.0.0

func (_e *Reconciler_Expecter) ReconcileCodeModules(ctx interface{}, dk interface{}) *Reconciler_ReconcileCodeModules_Call

ReconcileCodeModules is a helper method to define mock.On call

  • ctx context.Context
  • dk *dynakube.DynaKube

func (*Reconciler_Expecter) ReconcileOneAgent added in v1.0.0

func (_e *Reconciler_Expecter) ReconcileOneAgent(ctx interface{}, dk interface{}) *Reconciler_ReconcileOneAgent_Call

ReconcileOneAgent is a helper method to define mock.On call

  • ctx context.Context
  • dk *dynakube.DynaKube

type Reconciler_ReconcileActiveGate_Call added in v1.0.0

type Reconciler_ReconcileActiveGate_Call struct {
	*mock.Call
}

Reconciler_ReconcileActiveGate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReconcileActiveGate'

func (*Reconciler_ReconcileActiveGate_Call) Return added in v1.0.0

func (*Reconciler_ReconcileActiveGate_Call) Run added in v1.0.0

func (*Reconciler_ReconcileActiveGate_Call) RunAndReturn added in v1.0.0

type Reconciler_ReconcileCodeModules_Call added in v1.0.0

type Reconciler_ReconcileCodeModules_Call struct {
	*mock.Call
}

Reconciler_ReconcileCodeModules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReconcileCodeModules'

func (*Reconciler_ReconcileCodeModules_Call) Return added in v1.0.0

func (*Reconciler_ReconcileCodeModules_Call) Run added in v1.0.0

func (*Reconciler_ReconcileCodeModules_Call) RunAndReturn added in v1.0.0

type Reconciler_ReconcileOneAgent_Call added in v1.0.0

type Reconciler_ReconcileOneAgent_Call struct {
	*mock.Call
}

Reconciler_ReconcileOneAgent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReconcileOneAgent'

func (*Reconciler_ReconcileOneAgent_Call) Return added in v1.0.0

func (*Reconciler_ReconcileOneAgent_Call) Run added in v1.0.0

func (*Reconciler_ReconcileOneAgent_Call) RunAndReturn added in v1.0.0

type StatusUpdater

type StatusUpdater struct {
	mock.Mock
}

StatusUpdater is an autogenerated mock type for the StatusUpdater type

func NewStatusUpdater

func NewStatusUpdater(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatusUpdater

NewStatusUpdater creates a new instance of StatusUpdater. 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 (*StatusUpdater) CheckForDowngrade

func (_m *StatusUpdater) CheckForDowngrade(latestVersion string) (bool, error)

CheckForDowngrade provides a mock function with given fields: latestVersion

func (*StatusUpdater) CustomImage

func (_m *StatusUpdater) CustomImage() string

CustomImage provides a mock function with given fields:

func (*StatusUpdater) CustomVersion

func (_m *StatusUpdater) CustomVersion() string

CustomVersion provides a mock function with given fields:

func (*StatusUpdater) EXPECT

func (_m *StatusUpdater) EXPECT() *StatusUpdater_Expecter

func (*StatusUpdater) IsAutoUpdateEnabled

func (_m *StatusUpdater) IsAutoUpdateEnabled() bool

IsAutoUpdateEnabled provides a mock function with given fields:

func (*StatusUpdater) IsEnabled

func (_m *StatusUpdater) IsEnabled() bool

IsEnabled provides a mock function with given fields:

func (*StatusUpdater) IsPublicRegistryEnabled

func (_m *StatusUpdater) IsPublicRegistryEnabled() bool

IsPublicRegistryEnabled provides a mock function with given fields:

func (*StatusUpdater) LatestImageInfo

func (_m *StatusUpdater) LatestImageInfo(ctx context.Context) (*dynatrace.LatestImageInfo, error)

LatestImageInfo provides a mock function with given fields: ctx

func (*StatusUpdater) Name

func (_m *StatusUpdater) Name() string

Name provides a mock function with given fields:

func (*StatusUpdater) Target

func (_m *StatusUpdater) Target() *status.VersionStatus

Target provides a mock function with given fields:

func (*StatusUpdater) UseTenantRegistry

func (_m *StatusUpdater) UseTenantRegistry(_a0 context.Context) error

UseTenantRegistry provides a mock function with given fields: _a0

func (*StatusUpdater) ValidateStatus

func (_m *StatusUpdater) ValidateStatus() error

ValidateStatus provides a mock function with given fields:

type StatusUpdater_CheckForDowngrade_Call

type StatusUpdater_CheckForDowngrade_Call struct {
	*mock.Call
}

StatusUpdater_CheckForDowngrade_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckForDowngrade'

func (*StatusUpdater_CheckForDowngrade_Call) Return

func (*StatusUpdater_CheckForDowngrade_Call) Run

func (*StatusUpdater_CheckForDowngrade_Call) RunAndReturn

type StatusUpdater_CustomImage_Call

type StatusUpdater_CustomImage_Call struct {
	*mock.Call
}

StatusUpdater_CustomImage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CustomImage'

func (*StatusUpdater_CustomImage_Call) Return

func (*StatusUpdater_CustomImage_Call) Run

func (*StatusUpdater_CustomImage_Call) RunAndReturn

type StatusUpdater_CustomVersion_Call

type StatusUpdater_CustomVersion_Call struct {
	*mock.Call
}

StatusUpdater_CustomVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CustomVersion'

func (*StatusUpdater_CustomVersion_Call) Return

func (*StatusUpdater_CustomVersion_Call) Run

func (*StatusUpdater_CustomVersion_Call) RunAndReturn

type StatusUpdater_Expecter

type StatusUpdater_Expecter struct {
	// contains filtered or unexported fields
}

func (*StatusUpdater_Expecter) CheckForDowngrade

func (_e *StatusUpdater_Expecter) CheckForDowngrade(latestVersion interface{}) *StatusUpdater_CheckForDowngrade_Call

CheckForDowngrade is a helper method to define mock.On call

  • latestVersion string

func (*StatusUpdater_Expecter) CustomImage

CustomImage is a helper method to define mock.On call

func (*StatusUpdater_Expecter) CustomVersion

CustomVersion is a helper method to define mock.On call

func (*StatusUpdater_Expecter) IsAutoUpdateEnabled

IsAutoUpdateEnabled is a helper method to define mock.On call

func (*StatusUpdater_Expecter) IsEnabled

IsEnabled is a helper method to define mock.On call

func (*StatusUpdater_Expecter) IsPublicRegistryEnabled

IsPublicRegistryEnabled is a helper method to define mock.On call

func (*StatusUpdater_Expecter) LatestImageInfo

func (_e *StatusUpdater_Expecter) LatestImageInfo(ctx interface{}) *StatusUpdater_LatestImageInfo_Call

LatestImageInfo is a helper method to define mock.On call

  • ctx context.Context

func (*StatusUpdater_Expecter) Name

Name is a helper method to define mock.On call

func (*StatusUpdater_Expecter) Target

Target is a helper method to define mock.On call

func (*StatusUpdater_Expecter) UseTenantRegistry

func (_e *StatusUpdater_Expecter) UseTenantRegistry(_a0 interface{}) *StatusUpdater_UseTenantRegistry_Call

UseTenantRegistry is a helper method to define mock.On call

  • _a0 context.Context

func (*StatusUpdater_Expecter) ValidateStatus

ValidateStatus is a helper method to define mock.On call

type StatusUpdater_IsAutoUpdateEnabled_Call

type StatusUpdater_IsAutoUpdateEnabled_Call struct {
	*mock.Call
}

StatusUpdater_IsAutoUpdateEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAutoUpdateEnabled'

func (*StatusUpdater_IsAutoUpdateEnabled_Call) Return

func (*StatusUpdater_IsAutoUpdateEnabled_Call) Run

func (*StatusUpdater_IsAutoUpdateEnabled_Call) RunAndReturn

type StatusUpdater_IsEnabled_Call

type StatusUpdater_IsEnabled_Call struct {
	*mock.Call
}

StatusUpdater_IsEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsEnabled'

func (*StatusUpdater_IsEnabled_Call) Return

func (*StatusUpdater_IsEnabled_Call) Run

func (*StatusUpdater_IsEnabled_Call) RunAndReturn

func (_c *StatusUpdater_IsEnabled_Call) RunAndReturn(run func() bool) *StatusUpdater_IsEnabled_Call

type StatusUpdater_IsPublicRegistryEnabled_Call

type StatusUpdater_IsPublicRegistryEnabled_Call struct {
	*mock.Call
}

StatusUpdater_IsPublicRegistryEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPublicRegistryEnabled'

func (*StatusUpdater_IsPublicRegistryEnabled_Call) Return

func (*StatusUpdater_IsPublicRegistryEnabled_Call) Run

func (*StatusUpdater_IsPublicRegistryEnabled_Call) RunAndReturn

type StatusUpdater_LatestImageInfo_Call

type StatusUpdater_LatestImageInfo_Call struct {
	*mock.Call
}

StatusUpdater_LatestImageInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LatestImageInfo'

func (*StatusUpdater_LatestImageInfo_Call) Return

func (*StatusUpdater_LatestImageInfo_Call) Run

func (*StatusUpdater_LatestImageInfo_Call) RunAndReturn

type StatusUpdater_Name_Call

type StatusUpdater_Name_Call struct {
	*mock.Call
}

StatusUpdater_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'

func (*StatusUpdater_Name_Call) Return

func (*StatusUpdater_Name_Call) Run

func (_c *StatusUpdater_Name_Call) Run(run func()) *StatusUpdater_Name_Call

func (*StatusUpdater_Name_Call) RunAndReturn

func (_c *StatusUpdater_Name_Call) RunAndReturn(run func() string) *StatusUpdater_Name_Call

type StatusUpdater_Target_Call

type StatusUpdater_Target_Call struct {
	*mock.Call
}

StatusUpdater_Target_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Target'

func (*StatusUpdater_Target_Call) Return

func (*StatusUpdater_Target_Call) Run

func (*StatusUpdater_Target_Call) RunAndReturn

type StatusUpdater_UseTenantRegistry_Call

type StatusUpdater_UseTenantRegistry_Call struct {
	*mock.Call
}

StatusUpdater_UseTenantRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UseTenantRegistry'

func (*StatusUpdater_UseTenantRegistry_Call) Return

func (*StatusUpdater_UseTenantRegistry_Call) Run

func (*StatusUpdater_UseTenantRegistry_Call) RunAndReturn

type StatusUpdater_ValidateStatus_Call

type StatusUpdater_ValidateStatus_Call struct {
	*mock.Call
}

StatusUpdater_ValidateStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateStatus'

func (*StatusUpdater_ValidateStatus_Call) Return

func (*StatusUpdater_ValidateStatus_Call) Run

func (*StatusUpdater_ValidateStatus_Call) RunAndReturn

Jump to

Keyboard shortcuts

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