grpcrootcoordclient

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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewClient

func NewClient(ctx context.Context) (types.RootCoordClient, error)

NewClient create root coordinator client with specified etcd info and timeout ctx execution control context metaRoot is the path in etcd for root coordinator registration etcdEndpoints are the address list for etcd end points timeout is default setting for each grpc call

Types

type Client

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

Client grpc client

func (*Client) AllocID

AllocID global ID allocator

func (*Client) AllocTimestamp

AllocTimestamp global timestamp allocator

func (*Client) AlterAlias

func (c *Client) AlterAlias(ctx context.Context, req *milvuspb.AlterAliasRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

AlterAlias alter collection alias

func (*Client) AlterCollection

func (c *Client) AlterCollection(ctx context.Context, request *milvuspb.AlterCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) AlterDatabase

func (c *Client) AlterDatabase(ctx context.Context, request *rootcoordpb.AlterDatabaseRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) CheckHealth

func (*Client) Close

func (c *Client) Close() error

Close terminate grpc connection

func (*Client) CreateAlias

func (c *Client) CreateAlias(ctx context.Context, req *milvuspb.CreateAliasRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

CreateAlias create collection alias

func (*Client) CreateCollection

func (c *Client) CreateCollection(ctx context.Context, in *milvuspb.CreateCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

CreateCollection create collection

func (*Client) CreateCredential

func (c *Client) CreateCredential(ctx context.Context, req *internalpb.CredentialInfo, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) CreateDatabase

func (c *Client) CreateDatabase(ctx context.Context, in *milvuspb.CreateDatabaseRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) CreatePartition

func (c *Client) CreatePartition(ctx context.Context, in *milvuspb.CreatePartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

CreatePartition create partition

func (*Client) CreatePrivilegeGroup

func (c *Client) CreatePrivilegeGroup(ctx context.Context, in *milvuspb.CreatePrivilegeGroupRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) CreateRole

func (c *Client) CreateRole(ctx context.Context, req *milvuspb.CreateRoleRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) DeleteCredential

func (c *Client) DeleteCredential(ctx context.Context, req *milvuspb.DeleteCredentialRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) DescribeAlias

DescribeAlias describe alias

func (*Client) DescribeCollection

DescribeCollection return collection info

func (*Client) DropAlias

func (c *Client) DropAlias(ctx context.Context, req *milvuspb.DropAliasRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

DropAlias drop collection alias

func (*Client) DropCollection

func (c *Client) DropCollection(ctx context.Context, in *milvuspb.DropCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

DropCollection drop collection

func (*Client) DropDatabase

func (c *Client) DropDatabase(ctx context.Context, in *milvuspb.DropDatabaseRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) DropPartition

func (c *Client) DropPartition(ctx context.Context, in *milvuspb.DropPartitionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

DropPartition drop partition

func (*Client) DropPrivilegeGroup

func (c *Client) DropPrivilegeGroup(ctx context.Context, in *milvuspb.DropPrivilegeGroupRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) DropRole

func (c *Client) DropRole(ctx context.Context, req *milvuspb.DropRoleRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) GetComponentStates

func (c *Client) GetComponentStates(ctx context.Context, req *milvuspb.GetComponentStatesRequest, opts ...grpc.CallOption) (*milvuspb.ComponentStates, error)

GetComponentStates TODO: timeout need to be propagated through ctx

func (*Client) GetMetrics

GetMetrics get metrics

func (*Client) GetPChannelInfo

GetVChannels returns all vchannels belonging to the pchannel.

func (*Client) GetStatisticsChannel

func (c *Client) GetStatisticsChannel(ctx context.Context, req *internalpb.GetStatisticsChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error)

GetStatisticsChannel just define a channel, not used currently

func (*Client) GetTimeTickChannel

func (c *Client) GetTimeTickChannel(ctx context.Context, req *internalpb.GetTimeTickChannelRequest, opts ...grpc.CallOption) (*milvuspb.StringResponse, error)

GetTimeTickChannel get timetick channel name

func (*Client) HasCollection

func (c *Client) HasCollection(ctx context.Context, in *milvuspb.HasCollectionRequest, opts ...grpc.CallOption) (*milvuspb.BoolResponse, error)

HasCollection check collection existence

func (*Client) HasPartition

HasPartition check partition existence

func (*Client) InvalidateCollectionMetaCache

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

InvalidateCollectionMetaCache notifies RootCoord to release the collection cache in Proxies.

func (*Client) ListAliases

ListAliases list all aliases of db or collection

func (*Client) ListCredUsers

func (*Client) ListDatabases

func (*Client) ListPolicy

func (*Client) OperatePrivilege

func (c *Client) OperatePrivilege(ctx context.Context, req *milvuspb.OperatePrivilegeRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) OperatePrivilegeGroup

func (c *Client) OperatePrivilegeGroup(ctx context.Context, in *milvuspb.OperatePrivilegeGroupRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) OperateUserRole

func (c *Client) OperateUserRole(ctx context.Context, req *milvuspb.OperateUserRoleRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) RenameCollection

func (c *Client) RenameCollection(ctx context.Context, req *milvuspb.RenameCollectionRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) RestoreRBAC

func (c *Client) RestoreRBAC(ctx context.Context, in *milvuspb.RestoreRBACMetaRequest, opts ...grpc.CallOption) (*commonpb.Status, error)

func (*Client) SelectGrant

func (*Client) SelectRole

func (*Client) SelectUser

func (*Client) ShowCollections

ShowCollections list all collection names

func (*Client) ShowConfigurations

ShowConfigurations gets specified configurations para of RootCoord

func (*Client) ShowPartitions

ShowPartitions list all partitions in collection

func (*Client) ShowPartitionsInternal

func (c *Client) ShowPartitionsInternal(ctx context.Context, in *milvuspb.ShowPartitionsRequest, opts ...grpc.CallOption) (*milvuspb.ShowPartitionsResponse, error)

func (*Client) ShowSegments

ShowSegments list all segments

func (*Client) UpdateChannelTimeTick

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

UpdateChannelTimeTick used to handle ChannelTimeTickMsg

func (*Client) UpdateCredential

func (c *Client) UpdateCredential(ctx context.Context, req *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