grpcrootcoord

package
v0.10.3-0...-54aaeda Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server grpc wrapper

func NewServer

func NewServer(ctx context.Context, factory dependency.Factory) (*Server, error)

NewServer create a new RootCoord grpc server.

func (*Server) AllocID

AllocID allocates an ID

func (*Server) AllocTimestamp

AllocTimestamp global timestamp allocator

func (*Server) AlterAlias

func (s *Server) AlterAlias(ctx context.Context, request *milvuspb.AlterAliasRequest) (*commonpb.Status, error)

AlterAlias alters the alias for the specified collection.

func (*Server) AlterCollection

func (s *Server) AlterCollection(ctx context.Context, request *milvuspb.AlterCollectionRequest) (*commonpb.Status, error)

func (*Server) AlterDatabase

func (s *Server) AlterDatabase(ctx context.Context, request *rootcoordpb.AlterDatabaseRequest) (*commonpb.Status, error)

func (*Server) BackupRBAC

func (*Server) CheckHealth

func (*Server) CreateAlias

func (s *Server) CreateAlias(ctx context.Context, request *milvuspb.CreateAliasRequest) (*commonpb.Status, error)

CreateAlias creates an alias for specified collection.

func (*Server) CreateCollection

func (s *Server) CreateCollection(ctx context.Context, in *milvuspb.CreateCollectionRequest) (*commonpb.Status, error)

CreateCollection creates a collection

func (*Server) CreateCredential

func (s *Server) CreateCredential(ctx context.Context, request *internalpb.CredentialInfo) (*commonpb.Status, error)

func (*Server) CreateDatabase

func (s *Server) CreateDatabase(ctx context.Context, request *milvuspb.CreateDatabaseRequest) (*commonpb.Status, error)

func (*Server) CreatePartition

func (s *Server) CreatePartition(ctx context.Context, in *milvuspb.CreatePartitionRequest) (*commonpb.Status, error)

CreatePartition creates a partition in a collection

func (*Server) CreatePrivilegeGroup

func (s *Server) CreatePrivilegeGroup(ctx context.Context, request *milvuspb.CreatePrivilegeGroupRequest) (*commonpb.Status, error)

func (*Server) CreateRole

func (s *Server) CreateRole(ctx context.Context, request *milvuspb.CreateRoleRequest) (*commonpb.Status, error)

func (*Server) DeleteCredential

func (s *Server) DeleteCredential(ctx context.Context, request *milvuspb.DeleteCredentialRequest) (*commonpb.Status, error)

func (*Server) DescribeAlias

DescribeAlias show the alias-collection relation for the specified alias.

func (*Server) DescribeCollection

DescribeCollection gets meta info of a collection

func (*Server) DescribeCollectionInternal

DescribeCollectionInternal gets meta info of a collection

func (*Server) DropAlias

func (s *Server) DropAlias(ctx context.Context, request *milvuspb.DropAliasRequest) (*commonpb.Status, error)

DropAlias drops the specified alias.

func (*Server) DropCollection

func (s *Server) DropCollection(ctx context.Context, in *milvuspb.DropCollectionRequest) (*commonpb.Status, error)

DropCollection drops a collection

func (*Server) DropDatabase

func (s *Server) DropDatabase(ctx context.Context, request *milvuspb.DropDatabaseRequest) (*commonpb.Status, error)

func (*Server) DropPartition

func (s *Server) DropPartition(ctx context.Context, in *milvuspb.DropPartitionRequest) (*commonpb.Status, error)

DropPartition drops the specified partition.

func (*Server) DropPrivilegeGroup

func (s *Server) DropPrivilegeGroup(ctx context.Context, request *milvuspb.DropPrivilegeGroupRequest) (*commonpb.Status, error)

func (*Server) DropRole

func (s *Server) DropRole(ctx context.Context, request *milvuspb.DropRoleRequest) (*commonpb.Status, error)

func (*Server) GetComponentStates

GetComponentStates gets the component states of RootCoord.

func (*Server) GetCredential

func (*Server) GetMetrics

GetMetrics gets the metrics of RootCoord.

func (*Server) GetPChannelInfo

GetPChannelInfo gets the physical channel information

func (*Server) GetStatisticsChannel

GetStatisticsChannel just define a channel, not used currently

func (*Server) GetTimeTickChannel

GetTimeTickChannel receiver time tick from proxy service, and put it into this channel

func (*Server) HasCollection

HasCollection checks whether a collection is created

func (*Server) HasPartition

HasPartition checks whether a partition is created.

func (*Server) InvalidateCollectionMetaCache

func (s *Server) InvalidateCollectionMetaCache(ctx context.Context, in *proxypb.InvalidateCollMetaCacheRequest) (*commonpb.Status, error)

InvalidateCollectionMetaCache notifies RootCoord to release the collection cache in Proxies.

func (*Server) ListAliases

ListAliases show all alias in db.

func (*Server) ListCredUsers

func (*Server) ListDatabases

func (*Server) ListPolicy

func (*Server) OperatePrivilege

func (s *Server) OperatePrivilege(ctx context.Context, request *milvuspb.OperatePrivilegeRequest) (*commonpb.Status, error)

func (*Server) OperatePrivilegeGroup

func (s *Server) OperatePrivilegeGroup(ctx context.Context, request *milvuspb.OperatePrivilegeGroupRequest) (*commonpb.Status, error)

func (*Server) OperateUserRole

func (s *Server) OperateUserRole(ctx context.Context, request *milvuspb.OperateUserRoleRequest) (*commonpb.Status, error)

func (*Server) Prepare

func (s *Server) Prepare() error

func (*Server) RenameCollection

func (s *Server) RenameCollection(ctx context.Context, request *milvuspb.RenameCollectionRequest) (*commonpb.Status, error)

func (*Server) RestoreRBAC

func (s *Server) RestoreRBAC(ctx context.Context, request *milvuspb.RestoreRBACMetaRequest) (*commonpb.Status, error)

func (*Server) Run

func (s *Server) Run() error

Run initializes and starts RootCoord's grpc service.

func (*Server) SelectGrant

func (*Server) SelectRole

func (*Server) SelectUser

func (*Server) ShowCollections

ShowCollections gets all collections

func (*Server) ShowConfigurations

ShowConfigurations gets specified configurations para of RootCoord

func (*Server) ShowPartitions

ShowPartitions gets all partitions for the specified collection.

func (*Server) ShowPartitionsInternal

func (s *Server) ShowPartitionsInternal(ctx context.Context, in *milvuspb.ShowPartitionsRequest) (*milvuspb.ShowPartitionsResponse, error)

ShowPartitionsInternal gets all partitions for the specified collection.

func (*Server) ShowSegments

ShowSegments gets all segments

func (*Server) Stop

func (s *Server) Stop() (err error)

func (*Server) UpdateChannelTimeTick

func (s *Server) UpdateChannelTimeTick(ctx context.Context, in *internalpb.ChannelTimeTickMsg) (*commonpb.Status, error)

UpdateChannelTimeTick used to handle ChannelTimeTickMsg

func (*Server) UpdateCredential

func (s *Server) UpdateCredential(ctx context.Context, request *internalpb.CredentialInfo) (*commonpb.Status, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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