Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataStoreAdapter ¶
type DataStoreAdapter interface { PUT(stream io.Reader, object *pb.Object, context context.Context) S3Error GET(object *pb.Object, context context.Context) (io.ReadCloser, S3Error) DELETE(object *pb.DeleteObjectInput, context context.Context) S3Error GetObjectInfo(bucketName string, key string, context context.Context) (*pb.Object, S3Error) InitMultipartUpload(object *pb.Object, context context.Context) (*pb.MultipartUpload, S3Error) UploadPart(stream io.Reader, multipartUpload *pb.MultipartUpload, partNumber int64, upBytes int64, context context.Context) (*model.UploadPartResult, S3Error) CompleteMultipartUpload(multipartUpload *pb.MultipartUpload, completeUpload *model.CompleteMultipartUpload, context context.Context) (*model.CompleteMultipartUploadResult, S3Error) AbortMultipartUpload(multipartUpload *pb.MultipartUpload, context context.Context) S3Error ListParts(listParts *pb.ListParts, context context.Context) (*model.ListPartsOutput, S3Error) }
func Init ¶
func Init(backend *backendpb.BackendDetail) DataStoreAdapter
Init function can perform some initialization work of different datastore.
Click to show internal directories.
Click to hide internal directories.