Documentation ¶
Index ¶
- type StatusUpdater
- func (_m *StatusUpdater) CheckForDowngrade(latestVersion string) (bool, error)
- func (_m *StatusUpdater) CustomImage() string
- func (_m *StatusUpdater) CustomVersion() string
- func (_m *StatusUpdater) EXPECT() *StatusUpdater_Expecter
- func (_m *StatusUpdater) IsAutoUpdateEnabled() bool
- func (_m *StatusUpdater) IsEnabled() bool
- func (_m *StatusUpdater) IsPublicRegistryEnabled() bool
- func (_m *StatusUpdater) LatestImageInfo() (*dynatrace.LatestImageInfo, error)
- func (_m *StatusUpdater) Name() string
- func (_m *StatusUpdater) Target() *status.VersionStatus
- func (_m *StatusUpdater) UseTenantRegistry(_a0 context.Context) error
- func (_m *StatusUpdater) ValidateStatus() error
- type StatusUpdater_CheckForDowngrade_Call
- func (_c *StatusUpdater_CheckForDowngrade_Call) Return(_a0 bool, _a1 error) *StatusUpdater_CheckForDowngrade_Call
- func (_c *StatusUpdater_CheckForDowngrade_Call) Run(run func(latestVersion string)) *StatusUpdater_CheckForDowngrade_Call
- func (_c *StatusUpdater_CheckForDowngrade_Call) RunAndReturn(run func(string) (bool, error)) *StatusUpdater_CheckForDowngrade_Call
- type StatusUpdater_CustomImage_Call
- type StatusUpdater_CustomVersion_Call
- func (_c *StatusUpdater_CustomVersion_Call) Return(_a0 string) *StatusUpdater_CustomVersion_Call
- func (_c *StatusUpdater_CustomVersion_Call) Run(run func()) *StatusUpdater_CustomVersion_Call
- func (_c *StatusUpdater_CustomVersion_Call) RunAndReturn(run func() string) *StatusUpdater_CustomVersion_Call
- type StatusUpdater_Expecter
- func (_e *StatusUpdater_Expecter) CheckForDowngrade(latestVersion interface{}) *StatusUpdater_CheckForDowngrade_Call
- func (_e *StatusUpdater_Expecter) CustomImage() *StatusUpdater_CustomImage_Call
- func (_e *StatusUpdater_Expecter) CustomVersion() *StatusUpdater_CustomVersion_Call
- func (_e *StatusUpdater_Expecter) IsAutoUpdateEnabled() *StatusUpdater_IsAutoUpdateEnabled_Call
- func (_e *StatusUpdater_Expecter) IsEnabled() *StatusUpdater_IsEnabled_Call
- func (_e *StatusUpdater_Expecter) IsPublicRegistryEnabled() *StatusUpdater_IsPublicRegistryEnabled_Call
- func (_e *StatusUpdater_Expecter) LatestImageInfo() *StatusUpdater_LatestImageInfo_Call
- func (_e *StatusUpdater_Expecter) Name() *StatusUpdater_Name_Call
- func (_e *StatusUpdater_Expecter) Target() *StatusUpdater_Target_Call
- func (_e *StatusUpdater_Expecter) UseTenantRegistry(_a0 interface{}) *StatusUpdater_UseTenantRegistry_Call
- func (_e *StatusUpdater_Expecter) ValidateStatus() *StatusUpdater_ValidateStatus_Call
- type StatusUpdater_IsAutoUpdateEnabled_Call
- func (_c *StatusUpdater_IsAutoUpdateEnabled_Call) Return(_a0 bool) *StatusUpdater_IsAutoUpdateEnabled_Call
- func (_c *StatusUpdater_IsAutoUpdateEnabled_Call) Run(run func()) *StatusUpdater_IsAutoUpdateEnabled_Call
- func (_c *StatusUpdater_IsAutoUpdateEnabled_Call) RunAndReturn(run func() bool) *StatusUpdater_IsAutoUpdateEnabled_Call
- type StatusUpdater_IsEnabled_Call
- type StatusUpdater_IsPublicRegistryEnabled_Call
- func (_c *StatusUpdater_IsPublicRegistryEnabled_Call) Return(_a0 bool) *StatusUpdater_IsPublicRegistryEnabled_Call
- func (_c *StatusUpdater_IsPublicRegistryEnabled_Call) Run(run func()) *StatusUpdater_IsPublicRegistryEnabled_Call
- func (_c *StatusUpdater_IsPublicRegistryEnabled_Call) RunAndReturn(run func() bool) *StatusUpdater_IsPublicRegistryEnabled_Call
- type StatusUpdater_LatestImageInfo_Call
- func (_c *StatusUpdater_LatestImageInfo_Call) Return(_a0 *dynatrace.LatestImageInfo, _a1 error) *StatusUpdater_LatestImageInfo_Call
- func (_c *StatusUpdater_LatestImageInfo_Call) Run(run func()) *StatusUpdater_LatestImageInfo_Call
- func (_c *StatusUpdater_LatestImageInfo_Call) RunAndReturn(run func() (*dynatrace.LatestImageInfo, error)) *StatusUpdater_LatestImageInfo_Call
- type StatusUpdater_Name_Call
- type StatusUpdater_Target_Call
- type StatusUpdater_UseTenantRegistry_Call
- func (_c *StatusUpdater_UseTenantRegistry_Call) Return(_a0 error) *StatusUpdater_UseTenantRegistry_Call
- func (_c *StatusUpdater_UseTenantRegistry_Call) Run(run func(_a0 context.Context)) *StatusUpdater_UseTenantRegistry_Call
- func (_c *StatusUpdater_UseTenantRegistry_Call) RunAndReturn(run func(context.Context) error) *StatusUpdater_UseTenantRegistry_Call
- type StatusUpdater_ValidateStatus_Call
- func (_c *StatusUpdater_ValidateStatus_Call) Return(_a0 error) *StatusUpdater_ValidateStatus_Call
- func (_c *StatusUpdater_ValidateStatus_Call) Run(run func()) *StatusUpdater_ValidateStatus_Call
- func (_c *StatusUpdater_ValidateStatus_Call) RunAndReturn(run func() error) *StatusUpdater_ValidateStatus_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatusUpdater ¶
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 ¶
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 (_c *StatusUpdater_CheckForDowngrade_Call) Return(_a0 bool, _a1 error) *StatusUpdater_CheckForDowngrade_Call
func (*StatusUpdater_CheckForDowngrade_Call) Run ¶
func (_c *StatusUpdater_CheckForDowngrade_Call) Run(run func(latestVersion string)) *StatusUpdater_CheckForDowngrade_Call
func (*StatusUpdater_CheckForDowngrade_Call) RunAndReturn ¶
func (_c *StatusUpdater_CheckForDowngrade_Call) RunAndReturn(run func(string) (bool, error)) *StatusUpdater_CheckForDowngrade_Call
type StatusUpdater_CustomImage_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 (_c *StatusUpdater_CustomImage_Call) Return(_a0 string) *StatusUpdater_CustomImage_Call
func (*StatusUpdater_CustomImage_Call) Run ¶
func (_c *StatusUpdater_CustomImage_Call) Run(run func()) *StatusUpdater_CustomImage_Call
func (*StatusUpdater_CustomImage_Call) RunAndReturn ¶
func (_c *StatusUpdater_CustomImage_Call) RunAndReturn(run func() string) *StatusUpdater_CustomImage_Call
type StatusUpdater_CustomVersion_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 (_c *StatusUpdater_CustomVersion_Call) Return(_a0 string) *StatusUpdater_CustomVersion_Call
func (*StatusUpdater_CustomVersion_Call) Run ¶
func (_c *StatusUpdater_CustomVersion_Call) Run(run func()) *StatusUpdater_CustomVersion_Call
func (*StatusUpdater_CustomVersion_Call) RunAndReturn ¶
func (_c *StatusUpdater_CustomVersion_Call) RunAndReturn(run func() string) *StatusUpdater_CustomVersion_Call
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 ¶
func (_e *StatusUpdater_Expecter) CustomImage() *StatusUpdater_CustomImage_Call
CustomImage is a helper method to define mock.On call
func (*StatusUpdater_Expecter) CustomVersion ¶
func (_e *StatusUpdater_Expecter) CustomVersion() *StatusUpdater_CustomVersion_Call
CustomVersion is a helper method to define mock.On call
func (*StatusUpdater_Expecter) IsAutoUpdateEnabled ¶
func (_e *StatusUpdater_Expecter) IsAutoUpdateEnabled() *StatusUpdater_IsAutoUpdateEnabled_Call
IsAutoUpdateEnabled is a helper method to define mock.On call
func (*StatusUpdater_Expecter) IsEnabled ¶
func (_e *StatusUpdater_Expecter) IsEnabled() *StatusUpdater_IsEnabled_Call
IsEnabled is a helper method to define mock.On call
func (*StatusUpdater_Expecter) IsPublicRegistryEnabled ¶
func (_e *StatusUpdater_Expecter) IsPublicRegistryEnabled() *StatusUpdater_IsPublicRegistryEnabled_Call
IsPublicRegistryEnabled is a helper method to define mock.On call
func (*StatusUpdater_Expecter) LatestImageInfo ¶
func (_e *StatusUpdater_Expecter) LatestImageInfo() *StatusUpdater_LatestImageInfo_Call
LatestImageInfo is a helper method to define mock.On call
func (*StatusUpdater_Expecter) Name ¶
func (_e *StatusUpdater_Expecter) Name() *StatusUpdater_Name_Call
Name is a helper method to define mock.On call
func (*StatusUpdater_Expecter) Target ¶
func (_e *StatusUpdater_Expecter) Target() *StatusUpdater_Target_Call
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 ¶
func (_e *StatusUpdater_Expecter) ValidateStatus() *StatusUpdater_ValidateStatus_Call
ValidateStatus is a helper method to define mock.On call
type StatusUpdater_IsAutoUpdateEnabled_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 (_c *StatusUpdater_IsAutoUpdateEnabled_Call) Return(_a0 bool) *StatusUpdater_IsAutoUpdateEnabled_Call
func (*StatusUpdater_IsAutoUpdateEnabled_Call) Run ¶
func (_c *StatusUpdater_IsAutoUpdateEnabled_Call) Run(run func()) *StatusUpdater_IsAutoUpdateEnabled_Call
func (*StatusUpdater_IsAutoUpdateEnabled_Call) RunAndReturn ¶
func (_c *StatusUpdater_IsAutoUpdateEnabled_Call) RunAndReturn(run func() bool) *StatusUpdater_IsAutoUpdateEnabled_Call
type StatusUpdater_IsEnabled_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 (_c *StatusUpdater_IsEnabled_Call) Return(_a0 bool) *StatusUpdater_IsEnabled_Call
func (*StatusUpdater_IsEnabled_Call) Run ¶
func (_c *StatusUpdater_IsEnabled_Call) Run(run func()) *StatusUpdater_IsEnabled_Call
func (*StatusUpdater_IsEnabled_Call) RunAndReturn ¶
func (_c *StatusUpdater_IsEnabled_Call) RunAndReturn(run func() bool) *StatusUpdater_IsEnabled_Call
type StatusUpdater_IsPublicRegistryEnabled_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 (_c *StatusUpdater_IsPublicRegistryEnabled_Call) Return(_a0 bool) *StatusUpdater_IsPublicRegistryEnabled_Call
func (*StatusUpdater_IsPublicRegistryEnabled_Call) Run ¶
func (_c *StatusUpdater_IsPublicRegistryEnabled_Call) Run(run func()) *StatusUpdater_IsPublicRegistryEnabled_Call
func (*StatusUpdater_IsPublicRegistryEnabled_Call) RunAndReturn ¶
func (_c *StatusUpdater_IsPublicRegistryEnabled_Call) RunAndReturn(run func() bool) *StatusUpdater_IsPublicRegistryEnabled_Call
type StatusUpdater_LatestImageInfo_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 (_c *StatusUpdater_LatestImageInfo_Call) Return(_a0 *dynatrace.LatestImageInfo, _a1 error) *StatusUpdater_LatestImageInfo_Call
func (*StatusUpdater_LatestImageInfo_Call) Run ¶
func (_c *StatusUpdater_LatestImageInfo_Call) Run(run func()) *StatusUpdater_LatestImageInfo_Call
func (*StatusUpdater_LatestImageInfo_Call) RunAndReturn ¶
func (_c *StatusUpdater_LatestImageInfo_Call) RunAndReturn(run func() (*dynatrace.LatestImageInfo, error)) *StatusUpdater_LatestImageInfo_Call
type StatusUpdater_Name_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 (_c *StatusUpdater_Name_Call) Return(_a0 string) *StatusUpdater_Name_Call
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 ¶
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 (_c *StatusUpdater_Target_Call) Return(_a0 *status.VersionStatus) *StatusUpdater_Target_Call
func (*StatusUpdater_Target_Call) Run ¶
func (_c *StatusUpdater_Target_Call) Run(run func()) *StatusUpdater_Target_Call
func (*StatusUpdater_Target_Call) RunAndReturn ¶
func (_c *StatusUpdater_Target_Call) RunAndReturn(run func() *status.VersionStatus) *StatusUpdater_Target_Call
type StatusUpdater_UseTenantRegistry_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 (_c *StatusUpdater_UseTenantRegistry_Call) Return(_a0 error) *StatusUpdater_UseTenantRegistry_Call
func (*StatusUpdater_UseTenantRegistry_Call) Run ¶
func (_c *StatusUpdater_UseTenantRegistry_Call) Run(run func(_a0 context.Context)) *StatusUpdater_UseTenantRegistry_Call
func (*StatusUpdater_UseTenantRegistry_Call) RunAndReturn ¶
func (_c *StatusUpdater_UseTenantRegistry_Call) RunAndReturn(run func(context.Context) error) *StatusUpdater_UseTenantRegistry_Call
type StatusUpdater_ValidateStatus_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 (_c *StatusUpdater_ValidateStatus_Call) Return(_a0 error) *StatusUpdater_ValidateStatus_Call
func (*StatusUpdater_ValidateStatus_Call) Run ¶
func (_c *StatusUpdater_ValidateStatus_Call) Run(run func()) *StatusUpdater_ValidateStatus_Call
func (*StatusUpdater_ValidateStatus_Call) RunAndReturn ¶
func (_c *StatusUpdater_ValidateStatus_Call) RunAndReturn(run func() error) *StatusUpdater_ValidateStatus_Call