mocks

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 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 Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *Manager

NewManager creates a new instance of Manager. 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 (*Manager) DeleteInstance

func (_m *Manager) DeleteInstance(_a0 context.Context, _a1 *chart.ReleaseInstance) error

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

func (*Manager) DeployInstance

func (_m *Manager) DeployInstance(_a0 context.Context, _a1 *chart.ReleaseInstance) error

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

func (*Manager) EXPECT

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) GenerateNATSResources

func (_m *Manager) GenerateNATSResources(_a0 *chart.ReleaseInstance, _a1 ...manager.Option) (*chart.ManifestResources, error)

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

func (*Manager) GenerateOverrides

func (_m *Manager) GenerateOverrides(_a0 *v1alpha1.NATSSpec, _a1 bool, _a2 bool) map[string]interface{}

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

func (*Manager) IsNATSStatefulSetReady

func (_m *Manager) IsNATSStatefulSetReady(_a0 context.Context, _a1 *chart.ReleaseInstance) (bool, error)

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

type Manager_DeleteInstance_Call

type Manager_DeleteInstance_Call struct {
	*mock.Call
}

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

func (*Manager_DeleteInstance_Call) Return

func (*Manager_DeleteInstance_Call) Run

func (*Manager_DeleteInstance_Call) RunAndReturn

type Manager_DeployInstance_Call

type Manager_DeployInstance_Call struct {
	*mock.Call
}

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

func (*Manager_DeployInstance_Call) Return

func (*Manager_DeployInstance_Call) Run

func (*Manager_DeployInstance_Call) RunAndReturn

type Manager_Expecter

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

func (*Manager_Expecter) DeleteInstance

func (_e *Manager_Expecter) DeleteInstance(_a0 interface{}, _a1 interface{}) *Manager_DeleteInstance_Call

DeleteInstance is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *chart.ReleaseInstance

func (*Manager_Expecter) DeployInstance

func (_e *Manager_Expecter) DeployInstance(_a0 interface{}, _a1 interface{}) *Manager_DeployInstance_Call

DeployInstance is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *chart.ReleaseInstance

func (*Manager_Expecter) GenerateNATSResources

func (_e *Manager_Expecter) GenerateNATSResources(_a0 interface{}, _a1 ...interface{}) *Manager_GenerateNATSResources_Call

GenerateNATSResources is a helper method to define mock.On call

  • _a0 *chart.ReleaseInstance
  • _a1 ...manager.Option

func (*Manager_Expecter) GenerateOverrides

func (_e *Manager_Expecter) GenerateOverrides(_a0 interface{}, _a1 interface{}, _a2 interface{}) *Manager_GenerateOverrides_Call

GenerateOverrides is a helper method to define mock.On call

  • _a0 *v1alpha1.NATSSpec
  • _a1 bool
  • _a2 bool

func (*Manager_Expecter) IsNATSStatefulSetReady

func (_e *Manager_Expecter) IsNATSStatefulSetReady(_a0 interface{}, _a1 interface{}) *Manager_IsNATSStatefulSetReady_Call

IsNATSStatefulSetReady is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *chart.ReleaseInstance

type Manager_GenerateNATSResources_Call

type Manager_GenerateNATSResources_Call struct {
	*mock.Call
}

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

func (*Manager_GenerateNATSResources_Call) Return

func (*Manager_GenerateNATSResources_Call) Run

func (*Manager_GenerateNATSResources_Call) RunAndReturn

type Manager_GenerateOverrides_Call

type Manager_GenerateOverrides_Call struct {
	*mock.Call
}

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

func (*Manager_GenerateOverrides_Call) Return

func (_c *Manager_GenerateOverrides_Call) Return(_a0 map[string]interface{}) *Manager_GenerateOverrides_Call

func (*Manager_GenerateOverrides_Call) Run

func (*Manager_GenerateOverrides_Call) RunAndReturn

func (_c *Manager_GenerateOverrides_Call) RunAndReturn(run func(*v1alpha1.NATSSpec, bool, bool) map[string]interface{}) *Manager_GenerateOverrides_Call

type Manager_IsNATSStatefulSetReady_Call

type Manager_IsNATSStatefulSetReady_Call struct {
	*mock.Call
}

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

func (*Manager_IsNATSStatefulSetReady_Call) Return

func (*Manager_IsNATSStatefulSetReady_Call) Run

func (*Manager_IsNATSStatefulSetReady_Call) RunAndReturn

Jump to

Keyboard shortcuts

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