client

package
v0.1.3-test-1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataClient

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

MetadataClient is an metadata gRPC service client wrapper

func NewMetadataClient

func NewMetadataClient(address string) (*MetadataClient, error)

NewMetadataClient return an MetadataClient instance

func (*MetadataClient) Close

func (client *MetadataClient) Close() error

Close the metadata gPRC client connection

func (*MetadataClient) GetBucketByBucketID

GetBucketByBucketID get bucket info by a bucket id

func (*MetadataClient) GetBucketByBucketName

GetBucketByBucketName get bucket info by a bucket name

func (*MetadataClient) GetObjectByObjectNameAndBucketName added in v0.1.1

GetObjectByObjectNameAndBucketName get object info by an object name and a bucket name

func (*MetadataClient) GetPaymentByBucketID

GetPaymentByBucketID get bucket payment info by a bucket id

func (*MetadataClient) GetPaymentByBucketName

GetPaymentByBucketName get bucket payment info by a bucket name

func (*MetadataClient) GetUserBuckets

GetUserBuckets get buckets info by a user address

func (*MetadataClient) GetUserBucketsCount

GetUserBucketsCount get buckets count by a user address

func (*MetadataClient) ListDeletedObjectsByBlockNumberRange

ListDeletedObjectsByBlockNumberRange list deleted objects info by a block range

func (*MetadataClient) ListExpiredBucketsBySp added in v0.1.2

func (client *MetadataClient) ListExpiredBucketsBySp(ctx context.Context, createAt int64, primarySpAddress string, limit int64, opts ...grpc.CallOption) ([]*metatypes.Bucket, error)

ListExpiredBucketsBySp list buckets that are expired by specific sp

func (*MetadataClient) ListObjectsByBucketName

ListObjectsByBucketName list objects info by a bucket name

func (*MetadataClient) VerifyPermission added in v0.1.2

VerifyPermission Verify the input account’s permission to input items

Jump to

Keyboard shortcuts

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