Documentation ¶
Index ¶
- type GcsAdapter
- func (ad *GcsAdapter) AbortMultipartUpload(ctx context.Context, multipartUpload *pb.MultipartUpload) error
- func (ad *GcsAdapter) ChangeStorageClass(ctx context.Context, object *pb.Object, newClass *string) error
- func (ad *GcsAdapter) Close(ctx context.Context) error
- func (ad *GcsAdapter) CompleteMultipartUpload(ctx context.Context, multipartUpload *pb.MultipartUpload, ...) (*model.CompleteMultipartUploadResult, error)
- func (ad *GcsAdapter) Delete(ctx context.Context, input *pb.DeleteObjectInput) error
- func (ad *GcsAdapter) Get(ctx context.Context, object *pb.Object, start int64, end int64) (io.ReadCloser, error)
- func (ad *GcsAdapter) InitMultipartUpload(ctx context.Context, object *pb.Object) (*pb.MultipartUpload, error)
- func (ad *GcsAdapter) Put(ctx context.Context, stream io.Reader, object *pb.Object) (dscommon.PutResult, error)
- func (ad *GcsAdapter) UploadPart(ctx context.Context, stream io.Reader, multipartUpload *pb.MultipartUpload, ...) (*model.UploadPartResult, error)
- type GcsDriverFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GcsAdapter ¶
type GcsAdapter struct {
// contains filtered or unexported fields
}
func (*GcsAdapter) AbortMultipartUpload ¶
func (ad *GcsAdapter) AbortMultipartUpload(ctx context.Context, multipartUpload *pb.MultipartUpload) error
func (*GcsAdapter) ChangeStorageClass ¶
func (*GcsAdapter) CompleteMultipartUpload ¶
func (ad *GcsAdapter) CompleteMultipartUpload(ctx context.Context, multipartUpload *pb.MultipartUpload, completeUpload *model.CompleteMultipartUpload) (*model.CompleteMultipartUploadResult, error)
func (*GcsAdapter) Delete ¶
func (ad *GcsAdapter) Delete(ctx context.Context, input *pb.DeleteObjectInput) error
func (*GcsAdapter) Get ¶
func (ad *GcsAdapter) Get(ctx context.Context, object *pb.Object, start int64, end int64) (io.ReadCloser, error)
func (*GcsAdapter) InitMultipartUpload ¶
func (ad *GcsAdapter) InitMultipartUpload(ctx context.Context, object *pb.Object) (*pb.MultipartUpload, error)
func (*GcsAdapter) UploadPart ¶
func (ad *GcsAdapter) UploadPart(ctx context.Context, stream io.Reader, multipartUpload *pb.MultipartUpload, partNumber int64, upBytes int64) (*model.UploadPartResult, error)
type GcsDriverFactory ¶
type GcsDriverFactory struct { }
func (*GcsDriverFactory) CreateDriver ¶
func (cdf *GcsDriverFactory) CreateDriver(backend *backendpb.BackendDetail) (driver.StorageDriver, error)
Click to show internal directories.
Click to hide internal directories.