mock

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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