mocks

package
v0.15.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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() (*dynatrace.LatestImageInfo, error)

LatestImageInfo provides a mock function with given fields:

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

LatestImageInfo is a helper method to define mock.On call

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