kubemock

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConfigMapStore

type MockConfigMapStore struct {
	mock.Mock
}

MockConfigMapStore is an autogenerated mock type for the ConfigMapStore type

func NewMockConfigMapStore

func NewMockConfigMapStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConfigMapStore

NewMockConfigMapStore creates a new instance of MockConfigMapStore. 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 (*MockConfigMapStore) EXPECT

func (*MockConfigMapStore) GetConfigmapByNameAndNamespace

func (_mock *MockConfigMapStore) GetConfigmapByNameAndNamespace(name string, namespace string) (*v1.ConfigMap, error)

GetConfigmapByNameAndNamespace provides a mock function for the type MockConfigMapStore

func (*MockConfigMapStore) Run

func (_mock *MockConfigMapStore) Run() error

Run provides a mock function for the type MockConfigMapStore

func (*MockConfigMapStore) Stop

func (_mock *MockConfigMapStore) Stop()

Stop provides a mock function for the type MockConfigMapStore

type MockConfigMapStore_Expecter

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

func (*MockConfigMapStore_Expecter) GetConfigmapByNameAndNamespace

func (_e *MockConfigMapStore_Expecter) GetConfigmapByNameAndNamespace(name interface{}, namespace interface{}) *MockConfigMapStore_GetConfigmapByNameAndNamespace_Call

GetConfigmapByNameAndNamespace is a helper method to define mock.On call

  • name string
  • namespace string

func (*MockConfigMapStore_Expecter) Run

Run is a helper method to define mock.On call

func (*MockConfigMapStore_Expecter) Stop

Stop is a helper method to define mock.On call

type MockConfigMapStore_GetConfigmapByNameAndNamespace_Call

type MockConfigMapStore_GetConfigmapByNameAndNamespace_Call struct {
	*mock.Call
}

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

func (*MockConfigMapStore_GetConfigmapByNameAndNamespace_Call) Return

func (*MockConfigMapStore_GetConfigmapByNameAndNamespace_Call) Run

func (*MockConfigMapStore_GetConfigmapByNameAndNamespace_Call) RunAndReturn

type MockConfigMapStore_Run_Call

type MockConfigMapStore_Run_Call struct {
	*mock.Call
}

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

func (*MockConfigMapStore_Run_Call) Return

func (*MockConfigMapStore_Run_Call) Run

func (*MockConfigMapStore_Run_Call) RunAndReturn

func (_c *MockConfigMapStore_Run_Call) RunAndReturn(run func() error) *MockConfigMapStore_Run_Call

type MockConfigMapStore_Stop_Call

type MockConfigMapStore_Stop_Call struct {
	*mock.Call
}

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

func (*MockConfigMapStore_Stop_Call) Return

func (*MockConfigMapStore_Stop_Call) Run

func (*MockConfigMapStore_Stop_Call) RunAndReturn

func (_c *MockConfigMapStore_Stop_Call) RunAndReturn(run func()) *MockConfigMapStore_Stop_Call

type MockSecretStore

type MockSecretStore struct {
	mock.Mock
}

MockSecretStore is an autogenerated mock type for the SecretStore type

func NewMockSecretStore

func NewMockSecretStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSecretStore

NewMockSecretStore creates a new instance of MockSecretStore. 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 (*MockSecretStore) EXPECT

func (*MockSecretStore) GetSecretByNameAndNamespace

func (_mock *MockSecretStore) GetSecretByNameAndNamespace(name string, namespace string) (*v1.Secret, error)

GetSecretByNameAndNamespace provides a mock function for the type MockSecretStore

func (*MockSecretStore) Run

func (_mock *MockSecretStore) Run() error

Run provides a mock function for the type MockSecretStore

func (*MockSecretStore) Stop

func (_mock *MockSecretStore) Stop()

Stop provides a mock function for the type MockSecretStore

type MockSecretStore_Expecter

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

func (*MockSecretStore_Expecter) GetSecretByNameAndNamespace

func (_e *MockSecretStore_Expecter) GetSecretByNameAndNamespace(name interface{}, namespace interface{}) *MockSecretStore_GetSecretByNameAndNamespace_Call

GetSecretByNameAndNamespace is a helper method to define mock.On call

  • name string
  • namespace string

func (*MockSecretStore_Expecter) Run

Run is a helper method to define mock.On call

func (*MockSecretStore_Expecter) Stop

Stop is a helper method to define mock.On call

type MockSecretStore_GetSecretByNameAndNamespace_Call

type MockSecretStore_GetSecretByNameAndNamespace_Call struct {
	*mock.Call
}

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

func (*MockSecretStore_GetSecretByNameAndNamespace_Call) Return

func (*MockSecretStore_GetSecretByNameAndNamespace_Call) Run

func (*MockSecretStore_GetSecretByNameAndNamespace_Call) RunAndReturn

type MockSecretStore_Run_Call

type MockSecretStore_Run_Call struct {
	*mock.Call
}

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

func (*MockSecretStore_Run_Call) Return

func (*MockSecretStore_Run_Call) Run

func (*MockSecretStore_Run_Call) RunAndReturn

func (_c *MockSecretStore_Run_Call) RunAndReturn(run func() error) *MockSecretStore_Run_Call

type MockSecretStore_Stop_Call

type MockSecretStore_Stop_Call struct {
	*mock.Call
}

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

func (*MockSecretStore_Stop_Call) Return

func (*MockSecretStore_Stop_Call) Run

func (*MockSecretStore_Stop_Call) RunAndReturn

func (_c *MockSecretStore_Stop_Call) RunAndReturn(run func()) *MockSecretStore_Stop_Call

Jump to

Keyboard shortcuts

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