IBlobNode define the interface of blobnode used for worker
| 30 | |
| 31 | // IBlobNode define the interface of blobnode used for worker |
| 32 | type 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) |
| 38 | } |
| 39 | |
| 40 | // BlobNodeClient blobnode client |
| 41 | type BlobNodeClient struct { |
no outgoing calls
no test coverage detected