mocks

package
v1.28.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupBackendProvider

type BackupBackendProvider struct {
	mock.Mock
}

BackupBackendProvider is an autogenerated mock type for the BackupBackendProvider type

func NewBackupBackendProvider

func NewBackupBackendProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *BackupBackendProvider

NewBackupBackendProvider creates a new instance of BackupBackendProvider. 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 (*BackupBackendProvider) BackupBackend

func (_m *BackupBackendProvider) BackupBackend(backend string) (modulecapabilities.BackupBackend, error)

BackupBackend provides a mock function with given fields: backend

func (*BackupBackendProvider) EnabledBackupBackends

func (_m *BackupBackendProvider) EnabledBackupBackends() []modulecapabilities.BackupBackend

EnabledBackupBackends provides a mock function with given fields:

type NodeResolver

type NodeResolver struct {
	mock.Mock
}

NodeResolver is an autogenerated mock type for the NodeResolver type

func NewNodeResolver

func NewNodeResolver(t interface {
	mock.TestingT
	Cleanup(func())
}) *NodeResolver

NewNodeResolver creates a new instance of NodeResolver. 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 (*NodeResolver) AllNames

func (_m *NodeResolver) AllNames() []string

AllNames provides a mock function with given fields:

func (*NodeResolver) LeaderID

func (_m *NodeResolver) LeaderID() string

LeaderID provides a mock function with given fields:

func (*NodeResolver) NodeCount

func (_m *NodeResolver) NodeCount() int

NodeCount provides a mock function with given fields:

func (*NodeResolver) NodeHostname

func (_m *NodeResolver) NodeHostname(nodeName string) (string, bool)

NodeHostname provides a mock function with given fields: nodeName

type Selector

type Selector struct {
	mock.Mock
}

Selector is an autogenerated mock type for the Selector type

func NewSelector

func NewSelector(t interface {
	mock.TestingT
	Cleanup(func())
}) *Selector

NewSelector creates a new instance of Selector. 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 (*Selector) Backupable

func (_m *Selector) Backupable(_a0 context.Context, classes []string) error

Backupable provides a mock function with given fields: _a0, classes

func (*Selector) ListClasses

func (_m *Selector) ListClasses(ctx context.Context) []string

ListClasses provides a mock function with given fields: ctx

func (*Selector) Shards

func (_m *Selector) Shards(ctx context.Context, class string) ([]string, error)

Shards provides a mock function with given fields: ctx, class

Jump to

Keyboard shortcuts

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