MCPcopy
hub / github.com/cubefs/cubefs / StatShard

Method StatShard

blobstore/blobnode/client/blobnode_cli.go:34–34  ·  view source on GitHub ↗
(ctx context.Context, location proto.VunitLocation, bid proto.BlobID)

Source from the content-addressed store, hash-verified

32type IBlobNode interface {
33 StatChunk(ctx context.Context, location proto.VunitLocation) (ci *ChunkInfo, err error)
34 StatShard(ctx context.Context, location proto.VunitLocation, bid proto.BlobID) (si *ShardInfo, err error)
35 ListShards(ctx context.Context, location proto.VunitLocation) (shards []*ShardInfo, err error)
36 GetShard(ctx context.Context, location proto.VunitLocation, bid proto.BlobID, ioType api.IOType) (body io.ReadCloser, crc32 uint32, err error)
37 PutShard(ctx context.Context, location proto.VunitLocation, bid proto.BlobID, size int64, body io.Reader, ioType api.IOType) (err error)

Callers 3

TestShardDeleteFunction · 0.65
listShardsInfoMethod · 0.65
StatShardMethod · 0.65

Implementers 6

clientblobstore/api/blobnode/client.go
MockStorageAPIblobstore/testing/mocks/api_blobnode.g
MockStorageAPIMockRecorderblobstore/testing/mocks/api_blobnode.g
MockGetterblobstore/blobnode/worker_for_test.go
mBlobNodeCliblobstore/blobnode/worker_service_test
BlobNodeClientblobstore/blobnode/client/blobnode_cli

Calls

no outgoing calls

Tested by 1

TestShardDeleteFunction · 0.52