mock

package
v0.10.3-0...-843c1f5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRPCClientBase

type GRPCClientBase[T any] struct {
	GetGrpcClientErr error
	// contains filtered or unexported fields
}

func (*GRPCClientBase[T]) Call

func (c *GRPCClientBase[T]) Call(ctx context.Context, caller func(client T) (any, error)) (any, error)

func (*GRPCClientBase[T]) Close

func (c *GRPCClientBase[T]) Close() error

func (*GRPCClientBase[T]) EnableEncryption

func (c *GRPCClientBase[T]) EnableEncryption()

func (*GRPCClientBase[T]) GetGrpcClient

func (c *GRPCClientBase[T]) GetGrpcClient(ctx context.Context) (T, error)

func (*GRPCClientBase[T]) GetNodeID

func (c *GRPCClientBase[T]) GetNodeID() int64

func (*GRPCClientBase[T]) GetRole

func (c *GRPCClientBase[T]) GetRole() string

func (*GRPCClientBase[T]) ReCall

func (c *GRPCClientBase[T]) ReCall(ctx context.Context, caller func(client T) (any, error)) (any, error)

func (*GRPCClientBase[T]) SetGetAddrFunc

func (c *GRPCClientBase[T]) SetGetAddrFunc(f func() (string, error))

func (*GRPCClientBase[T]) SetInternalTLSCertPool

func (c *GRPCClientBase[T]) SetInternalTLSCertPool(cp *x509.CertPool)

func (*GRPCClientBase[T]) SetNewGrpcClientFunc

func (c *GRPCClientBase[T]) SetNewGrpcClientFunc(f func(cc *grpc.ClientConn) T)

func (*GRPCClientBase[T]) SetNodeID

func (c *GRPCClientBase[T]) SetNodeID(nodeID int64)

func (*GRPCClientBase[T]) SetRole

func (c *GRPCClientBase[T]) SetRole(role string)

func (*GRPCClientBase[T]) SetSession

func (c *GRPCClientBase[T]) SetSession(sess *sessionutil.Session)

type GrpcDataNodeClient

type GrpcDataNodeClient struct {
	Err error
}

func (*GrpcDataNodeClient) CheckChannelOperationProgress

func (m *GrpcDataNodeClient) CheckChannelOperationProgress(ctx context.Context, req *datapb.ChannelWatchInfo, opts ...grpc.CallOption) (*datapb.ChannelOperationProgressResponse, error)

func (*GrpcDataNodeClient) CompactionV2

func (m *GrpcDataNodeClient) CompactionV2(ctx context.Context, req *datapb.CompactionPlan, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*GrpcDataNodeClient) DropCompactionPlan

func (m *GrpcDataNodeClient) DropCompactionPlan(ctx context.Context, req *datapb.DropCompactionPlanRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*GrpcDataNodeClient) DropImport

func (*GrpcDataNodeClient) FlushChannels

func (*GrpcDataNodeClient) FlushSegments

func (*GrpcDataNodeClient) GetCompactionState

func (*GrpcDataNodeClient) GetComponentStates

func (*GrpcDataNodeClient) GetMetrics

func (*GrpcDataNodeClient) GetStatisticsChannel

func (*GrpcDataNodeClient) ImportV2

func (*GrpcDataNodeClient) NotifyChannelOperation

func (m *GrpcDataNodeClient) NotifyChannelOperation(ctx context.Context, in *datapb.ChannelOperationsRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*GrpcDataNodeClient) PreImport

func (*GrpcDataNodeClient) QueryImport

func (*GrpcDataNodeClient) QueryPreImport

func (*GrpcDataNodeClient) QuerySlot

func (*GrpcDataNodeClient) ResendSegmentStats

func (*GrpcDataNodeClient) SyncSegments

func (*GrpcDataNodeClient) WatchDmChannels

type GrpcHealthWatchServer

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

func NewGrpcHealthWatchServer

func NewGrpcHealthWatchServer() *GrpcHealthWatchServer

func (GrpcHealthWatchServer) Chan

func (GrpcHealthWatchServer) Context

func (GrpcHealthWatchServer) RecvMsg

func (m GrpcHealthWatchServer) RecvMsg(msg interface{}) error

func (GrpcHealthWatchServer) Send

func (GrpcHealthWatchServer) SendHeader

func (m GrpcHealthWatchServer) SendHeader(md metadata.MD) error

func (GrpcHealthWatchServer) SendMsg

func (m GrpcHealthWatchServer) SendMsg(msg interface{}) error

func (GrpcHealthWatchServer) SetHeader

func (m GrpcHealthWatchServer) SetHeader(md metadata.MD) error

func (GrpcHealthWatchServer) SetTrailer

func (m GrpcHealthWatchServer) SetTrailer(md metadata.MD)

type GrpcQueryCoordClient

type GrpcQueryCoordClient struct {
	Err error
}

func (*GrpcQueryCoordClient) ActivateChecker

func (*GrpcQueryCoordClient) CheckHealth

func (*GrpcQueryCoordClient) CheckQueryNodeDistribution

func (m *GrpcQueryCoordClient) CheckQueryNodeDistribution(ctx context.Context, req *querypb.CheckQueryNodeDistributionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*GrpcQueryCoordClient) CreateResourceGroup

func (*GrpcQueryCoordClient) DeactivateChecker

func (*GrpcQueryCoordClient) DescribeResourceGroup

func (*GrpcQueryCoordClient) DropResourceGroup

func (*GrpcQueryCoordClient) GetComponentStates

func (*GrpcQueryCoordClient) GetMetrics

func (*GrpcQueryCoordClient) GetPartitionStates

func (*GrpcQueryCoordClient) GetReplicas

func (*GrpcQueryCoordClient) GetSegmentInfo

func (*GrpcQueryCoordClient) GetShardLeaders

func (*GrpcQueryCoordClient) GetStatisticsChannel

func (*GrpcQueryCoordClient) GetTimeTickChannel

func (*GrpcQueryCoordClient) ListCheckers

func (*GrpcQueryCoordClient) ListQueryNode

func (*GrpcQueryCoordClient) ListResourceGroups

func (*GrpcQueryCoordClient) LoadBalance

func (*GrpcQueryCoordClient) LoadCollection

func (*GrpcQueryCoordClient) LoadPartitions

func (*GrpcQueryCoordClient) ReleaseCollection

func (*GrpcQueryCoordClient) ReleasePartitions

func (*GrpcQueryCoordClient) ResumeBalance

func (*GrpcQueryCoordClient) ResumeNode

func (*GrpcQueryCoordClient) ShowCollections

func (*GrpcQueryCoordClient) ShowPartitions

func (*GrpcQueryCoordClient) SuspendBalance

func (*GrpcQueryCoordClient) SuspendNode

func (*GrpcQueryCoordClient) SyncNewCreatedPartition

func (*GrpcQueryCoordClient) TransferChannel

func (*GrpcQueryCoordClient) TransferNode

func (*GrpcQueryCoordClient) TransferReplica

func (*GrpcQueryCoordClient) TransferSegment

func (*GrpcQueryCoordClient) UpdateLoadConfig

func (*GrpcQueryCoordClient) UpdateResourceGroups

type GrpcQueryNodeClient

type GrpcQueryNodeClient struct {
	Err error
}

func (*GrpcQueryNodeClient) Close

func (m *GrpcQueryNodeClient) Close() error

func (*GrpcQueryNodeClient) Delete

func (*GrpcQueryNodeClient) DeleteBatch

func (*GrpcQueryNodeClient) GetComponentStates

func (*GrpcQueryNodeClient) GetDataDistribution

func (*GrpcQueryNodeClient) GetMetrics

func (*GrpcQueryNodeClient) GetSegmentInfo

func (*GrpcQueryNodeClient) GetStatistics

func (*GrpcQueryNodeClient) GetStatisticsChannel

func (*GrpcQueryNodeClient) GetTimeTickChannel

func (*GrpcQueryNodeClient) LoadPartitions

func (*GrpcQueryNodeClient) LoadSegments

func (*GrpcQueryNodeClient) Query

func (*GrpcQueryNodeClient) QuerySegments

func (*GrpcQueryNodeClient) QueryStream

func (*GrpcQueryNodeClient) QueryStreamSegments

func (*GrpcQueryNodeClient) ReleaseCollection

func (*GrpcQueryNodeClient) ReleasePartitions

func (*GrpcQueryNodeClient) ReleaseSegments

func (*GrpcQueryNodeClient) Search

func (*GrpcQueryNodeClient) SearchSegments

func (*GrpcQueryNodeClient) SyncDistribution

func (*GrpcQueryNodeClient) SyncReplicaSegments

func (*GrpcQueryNodeClient) UnsubDmChannel

func (*GrpcQueryNodeClient) WatchDmChannels

type GrpcRootCoordClient

type GrpcRootCoordClient struct {
	Err error
}

func (*GrpcRootCoordClient) AllocID

func (*GrpcRootCoordClient) AllocTimestamp

func (*GrpcRootCoordClient) AlterAlias

func (*GrpcRootCoordClient) AlterCollection

func (*GrpcRootCoordClient) AlterDatabase

func (*GrpcRootCoordClient) BackupRBAC

func (*GrpcRootCoordClient) CheckHealth

func (*GrpcRootCoordClient) Close

func (m *GrpcRootCoordClient) Close() error

func (*GrpcRootCoordClient) CreateAlias

func (*GrpcRootCoordClient) CreateCollection

func (*GrpcRootCoordClient) CreateCredential

func (m *GrpcRootCoordClient) CreateCredential(ctx context.Context, in *internalpb.CredentialInfo, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*GrpcRootCoordClient) CreateDatabase

func (*GrpcRootCoordClient) CreatePartition

func (*GrpcRootCoordClient) CreatePrivilegeGroup

func (*GrpcRootCoordClient) CreateRole

func (*GrpcRootCoordClient) DeleteCredential

func (*GrpcRootCoordClient) DescribeAlias

func (*GrpcRootCoordClient) DescribeCollection

func (*GrpcRootCoordClient) DescribeCollectionInternal

func (*GrpcRootCoordClient) DescribeSegment

func (*GrpcRootCoordClient) DropAlias

func (*GrpcRootCoordClient) DropCollection

func (*GrpcRootCoordClient) DropDatabase

func (*GrpcRootCoordClient) DropPartition

func (*GrpcRootCoordClient) DropPrivilegeGroup

func (*GrpcRootCoordClient) DropRole

func (*GrpcRootCoordClient) GetComponentStates

func (*GrpcRootCoordClient) GetCredential

func (*GrpcRootCoordClient) GetMetrics

func (*GrpcRootCoordClient) GetStatisticsChannel

func (*GrpcRootCoordClient) GetTimeTickChannel

func (*GrpcRootCoordClient) HasCollection

func (*GrpcRootCoordClient) HasPartition

func (*GrpcRootCoordClient) InvalidateCollectionMetaCache

func (m *GrpcRootCoordClient) InvalidateCollectionMetaCache(ctx context.Context, in *proxypb.InvalidateCollMetaCacheRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*GrpcRootCoordClient) ListAliases

func (*GrpcRootCoordClient) ListCredUsers

func (*GrpcRootCoordClient) ListDatabases

func (*GrpcRootCoordClient) ListPolicy

func (*GrpcRootCoordClient) OperatePrivilege

func (*GrpcRootCoordClient) OperatePrivilegeGroup

func (*GrpcRootCoordClient) OperateUserRole

func (*GrpcRootCoordClient) RenameCollection

func (*GrpcRootCoordClient) RestoreRBAC

func (*GrpcRootCoordClient) SegmentFlushCompleted

func (m *GrpcRootCoordClient) SegmentFlushCompleted(ctx context.Context, in *datapb.SegmentFlushCompletedMsg, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*GrpcRootCoordClient) SelectGrant

func (*GrpcRootCoordClient) SelectRole

func (*GrpcRootCoordClient) SelectUser

func (*GrpcRootCoordClient) ShowCollections

func (*GrpcRootCoordClient) ShowPartitions

func (*GrpcRootCoordClient) ShowPartitionsInternal

func (*GrpcRootCoordClient) ShowSegments

func (*GrpcRootCoordClient) UpdateChannelTimeTick

func (m *GrpcRootCoordClient) UpdateChannelTimeTick(ctx context.Context, in *internalpb.ChannelTimeTickMsg, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*GrpcRootCoordClient) UpdateCredential

func (m *GrpcRootCoordClient) UpdateCredential(ctx context.Context, in *internalpb.CredentialInfo, opts ...grpc.CallOption) (*commonpb.Status, error)

Jump to

Keyboard shortcuts

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