Documentation ¶
Index ¶
- type TaskNodeClient
- func (client *TaskNodeClient) Close() error
- func (client *TaskNodeClient) QueryReplicatingObject(ctx context.Context, objectID uint64) (*servicetype.ReplicatePieceInfo, error)
- func (client *TaskNodeClient) ReplicateObject(ctx context.Context, object *storagetypes.ObjectInfo, opts ...grpc.CallOption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskNodeClient ¶
type TaskNodeClient struct {
// contains filtered or unexported fields
}
TaskNodeClient is a task node gRPC service client wrapper
func NewTaskNodeClient ¶
func NewTaskNodeClient(address string) (*TaskNodeClient, error)
NewTaskNodeClient return a TaskNodeClient instance
func (*TaskNodeClient) Close ¶
func (client *TaskNodeClient) Close() error
Close the task node gPRC connection
func (*TaskNodeClient) QueryReplicatingObject ¶
func (client *TaskNodeClient) QueryReplicatingObject(ctx context.Context, objectID uint64) (*servicetype.ReplicatePieceInfo, error)
QueryReplicatingObject query a replicating object payload information by object id
func (*TaskNodeClient) ReplicateObject ¶
func (client *TaskNodeClient) ReplicateObject(ctx context.Context, object *storagetypes.ObjectInfo, opts ...grpc.CallOption) error
ReplicateObject async replicate an object payload to other storage provider and seal object
Click to show internal directories.
Click to hide internal directories.