mocks

package
v1.29.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SchemaGetter

type SchemaGetter struct {
	mock.Mock
}

SchemaGetter is an autogenerated mock type for the SchemaGetter type

func NewSchemaGetter

func NewSchemaGetter(t interface {
	mock.TestingT
	Cleanup(func())
},
) *SchemaGetter

NewSchemaGetter creates a new instance of SchemaGetter. 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 (*SchemaGetter) ClusterHealthScore

func (_m *SchemaGetter) ClusterHealthScore() int

ClusterHealthScore provides a mock function with given fields:

func (*SchemaGetter) CopyShardingState

func (_m *SchemaGetter) CopyShardingState(class string) *sharding.State

CopyShardingState provides a mock function with given fields: class

func (*SchemaGetter) GetSchemaSkipAuth

func (_m *SchemaGetter) GetSchemaSkipAuth() entitiesschema.Schema

GetSchemaSkipAuth provides a mock function with given fields:

func (*SchemaGetter) NodeName

func (_m *SchemaGetter) NodeName() string

NodeName provides a mock function with given fields:

func (*SchemaGetter) Nodes

func (_m *SchemaGetter) Nodes() []string

Nodes provides a mock function with given fields:

func (*SchemaGetter) OptimisticTenantStatus

func (_m *SchemaGetter) OptimisticTenantStatus(ctx context.Context, class string, tenants string) (map[string]string, error)

OptimisticTenantStatus provides a mock function with given fields: ctx, class, tenants

func (*SchemaGetter) ReadOnlyClass

func (_m *SchemaGetter) ReadOnlyClass(_a0 string) *models.Class

ReadOnlyClass provides a mock function with given fields: _a0

func (*SchemaGetter) ResolveParentNodes

func (_m *SchemaGetter) ResolveParentNodes(_a0 string, _a1 string) (map[string]string, error)

ResolveParentNodes provides a mock function with given fields: _a0, _a1

func (*SchemaGetter) ShardFromUUID

func (_m *SchemaGetter) ShardFromUUID(class string, uuid []byte) string

ShardFromUUID provides a mock function with given fields: class, uuid

func (*SchemaGetter) ShardOwner

func (_m *SchemaGetter) ShardOwner(class string, shard string) (string, error)

ShardOwner provides a mock function with given fields: class, shard

func (*SchemaGetter) ShardReplicas

func (_m *SchemaGetter) ShardReplicas(class string, shard string) ([]string, error)

ShardReplicas provides a mock function with given fields: class, shard

func (*SchemaGetter) Statistics

func (_m *SchemaGetter) Statistics() map[string]interface{}

Statistics provides a mock function with given fields:

func (*SchemaGetter) TenantsShards

func (_m *SchemaGetter) TenantsShards(ctx context.Context, class string, tenants ...string) (map[string]string, error)

TenantsShards provides a mock function with given fields: ctx, class, tenants

Jump to

Keyboard shortcuts

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