client

package
v0.1.0-fix-6 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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