mocks

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 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 MockClusterManager

type MockClusterManager struct {
	mock.Mock
}

MockClusterManager is an autogenerated mock type for the ClusterManager type

func NewMockClusterManager

func NewMockClusterManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockClusterManager

NewMockClusterManager creates a new instance of MockClusterManager. 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 (*MockClusterManager) Close

func (_m *MockClusterManager) Close() error

Close provides a mock function with no fields

func (*MockClusterManager) EXPECT

func (*MockClusterManager) GetCluster

func (_m *MockClusterManager) GetCluster(name string) (*targetcluster.TargetCluster, bool)

GetCluster provides a mock function with given fields: name

func (*MockClusterManager) LoadCluster

func (_m *MockClusterManager) LoadCluster(schemaFilePath string) error

LoadCluster provides a mock function with given fields: schemaFilePath

func (*MockClusterManager) RemoveCluster

func (_m *MockClusterManager) RemoveCluster(schemaFilePath string) error

RemoveCluster provides a mock function with given fields: schemaFilePath

func (*MockClusterManager) ServeHTTP

func (_m *MockClusterManager) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP provides a mock function with given fields: w, r

func (*MockClusterManager) UpdateCluster

func (_m *MockClusterManager) UpdateCluster(schemaFilePath string) error

UpdateCluster provides a mock function with given fields: schemaFilePath

type MockClusterManager_Close_Call

type MockClusterManager_Close_Call struct {
	*mock.Call
}

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

func (*MockClusterManager_Close_Call) Return

func (*MockClusterManager_Close_Call) Run

func (*MockClusterManager_Close_Call) RunAndReturn

type MockClusterManager_Expecter

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

func (*MockClusterManager_Expecter) Close

Close is a helper method to define mock.On call

func (*MockClusterManager_Expecter) GetCluster

func (_e *MockClusterManager_Expecter) GetCluster(name interface{}) *MockClusterManager_GetCluster_Call

GetCluster is a helper method to define mock.On call

  • name string

func (*MockClusterManager_Expecter) LoadCluster

func (_e *MockClusterManager_Expecter) LoadCluster(schemaFilePath interface{}) *MockClusterManager_LoadCluster_Call

LoadCluster is a helper method to define mock.On call

  • schemaFilePath string

func (*MockClusterManager_Expecter) RemoveCluster

func (_e *MockClusterManager_Expecter) RemoveCluster(schemaFilePath interface{}) *MockClusterManager_RemoveCluster_Call

RemoveCluster is a helper method to define mock.On call

  • schemaFilePath string

func (*MockClusterManager_Expecter) ServeHTTP

func (_e *MockClusterManager_Expecter) ServeHTTP(w interface{}, r interface{}) *MockClusterManager_ServeHTTP_Call

ServeHTTP is a helper method to define mock.On call

  • w http.ResponseWriter
  • r *http.Request

func (*MockClusterManager_Expecter) UpdateCluster

func (_e *MockClusterManager_Expecter) UpdateCluster(schemaFilePath interface{}) *MockClusterManager_UpdateCluster_Call

UpdateCluster is a helper method to define mock.On call

  • schemaFilePath string

type MockClusterManager_GetCluster_Call

type MockClusterManager_GetCluster_Call struct {
	*mock.Call
}

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

func (*MockClusterManager_GetCluster_Call) Return

func (*MockClusterManager_GetCluster_Call) Run

func (*MockClusterManager_GetCluster_Call) RunAndReturn

type MockClusterManager_LoadCluster_Call

type MockClusterManager_LoadCluster_Call struct {
	*mock.Call
}

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

func (*MockClusterManager_LoadCluster_Call) Return

func (*MockClusterManager_LoadCluster_Call) Run

func (*MockClusterManager_LoadCluster_Call) RunAndReturn

type MockClusterManager_RemoveCluster_Call

type MockClusterManager_RemoveCluster_Call struct {
	*mock.Call
}

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

func (*MockClusterManager_RemoveCluster_Call) Return

func (*MockClusterManager_RemoveCluster_Call) Run

func (*MockClusterManager_RemoveCluster_Call) RunAndReturn

type MockClusterManager_ServeHTTP_Call

type MockClusterManager_ServeHTTP_Call struct {
	*mock.Call
}

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

func (*MockClusterManager_ServeHTTP_Call) Return

func (*MockClusterManager_ServeHTTP_Call) Run

func (*MockClusterManager_ServeHTTP_Call) RunAndReturn

type MockClusterManager_UpdateCluster_Call

type MockClusterManager_UpdateCluster_Call struct {
	*mock.Call
}

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

func (*MockClusterManager_UpdateCluster_Call) Return

func (*MockClusterManager_UpdateCluster_Call) Run

func (*MockClusterManager_UpdateCluster_Call) RunAndReturn

type MockRoundTripper

type MockRoundTripper struct {
	mock.Mock
}

MockRoundTripper is an autogenerated mock type for the RoundTripper type

func NewMockRoundTripper

func NewMockRoundTripper(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRoundTripper

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

func (*MockRoundTripper) RoundTrip

func (_m *MockRoundTripper) RoundTrip(_a0 *http.Request) (*http.Response, error)

RoundTrip provides a mock function with given fields: _a0

type MockRoundTripper_Expecter

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

func (*MockRoundTripper_Expecter) RoundTrip

func (_e *MockRoundTripper_Expecter) RoundTrip(_a0 interface{}) *MockRoundTripper_RoundTrip_Call

RoundTrip is a helper method to define mock.On call

  • _a0 *http.Request

type MockRoundTripper_RoundTrip_Call

type MockRoundTripper_RoundTrip_Call struct {
	*mock.Call
}

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

func (*MockRoundTripper_RoundTrip_Call) Return

func (*MockRoundTripper_RoundTrip_Call) Run

func (*MockRoundTripper_RoundTrip_Call) RunAndReturn

type MockSchemaWatcher

type MockSchemaWatcher struct {
	mock.Mock
}

MockSchemaWatcher is an autogenerated mock type for the SchemaWatcher type

func NewMockSchemaWatcher

func NewMockSchemaWatcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSchemaWatcher

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

func (*MockSchemaWatcher) Initialize

func (_m *MockSchemaWatcher) Initialize(ctx context.Context, watchPath string) error

Initialize provides a mock function with given fields: ctx, watchPath

type MockSchemaWatcher_Expecter

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

func (*MockSchemaWatcher_Expecter) Initialize

func (_e *MockSchemaWatcher_Expecter) Initialize(ctx interface{}, watchPath interface{}) *MockSchemaWatcher_Initialize_Call

Initialize is a helper method to define mock.On call

  • ctx context.Context
  • watchPath string

type MockSchemaWatcher_Initialize_Call

type MockSchemaWatcher_Initialize_Call struct {
	*mock.Call
}

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

func (*MockSchemaWatcher_Initialize_Call) Return

func (*MockSchemaWatcher_Initialize_Call) Run

func (*MockSchemaWatcher_Initialize_Call) RunAndReturn

Jump to

Keyboard shortcuts

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