mock

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 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 ClusterSetManager

type ClusterSetManager struct {
	mock.Mock
}

ClusterSetManager is an autogenerated mock type for the ClusterSetManager type

func NewClusterSetManager

func NewClusterSetManager(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClusterSetManager

NewClusterSetManager creates a new instance of ClusterSetManager. 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 (*ClusterSetManager) CreateClusterSet

func (_m *ClusterSetManager) CreateClusterSet(ctx context.Context, clustersetName string, sslMode v1.ClusterSetSSLMode) error

CreateClusterSet provides a mock function with given fields: ctx, clustersetName, sslMode

func (*ClusterSetManager) ForcePrimaryCluster

func (_m *ClusterSetManager) ForcePrimaryCluster(ctx context.Context, clusterName string) error

ForcePrimaryCluster provides a mock function with given fields: ctx, clusterName

func (*ClusterSetManager) Status

Status provides a mock function with given fields: ctx

type EventRecorder

type EventRecorder struct {
	mock.Mock
}

EventRecorder is an autogenerated mock type for the EventRecorder type

func NewEventRecorder

func NewEventRecorder(t interface {
	mock.TestingT
	Cleanup(func())
}) *EventRecorder

NewEventRecorder creates a new instance of EventRecorder. 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 (*EventRecorder) Eventf

func (_m *EventRecorder) Eventf(regarding runtime.Object, related runtime.Object, eventtype string, reason string, action string, note string, args ...interface{})

Eventf provides a mock function with given fields: regarding, related, eventtype, reason, action, note, args

Jump to

Keyboard shortcuts

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