v0.12.0 Latest Latest

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 17 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


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 (ad *GcsAdapter) ChangeStorageClass(ctx context.Context, object *pb.Object, newClass *string) error

func (*GcsAdapter) Close

func (ad *GcsAdapter) Close() error

func (*GcsAdapter) CompleteMultipartUpload

func (ad *GcsAdapter) CompleteMultipartUpload(ctx context.Context, multipartUpload *pb.MultipartUpload,
	completeUpload *model.CompleteMultipartUpload) (*model.CompleteMultipartUploadResult, error)

func (*GcsAdapter) Copy added in v0.9.0

func (ad *GcsAdapter) Copy(ctx context.Context, stream io.Reader, target *pb.Object) (result dscommon.PutResult, err 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) ListParts added in v0.9.0

func (ad *GcsAdapter) ListParts(ctx context.Context, multipartUpload *pb.ListParts) (*model.ListPartsOutput, error)

func (*GcsAdapter) Put

func (ad *GcsAdapter) Put(ctx context.Context, stream io.Reader, object *pb.Object) (dscommon.PutResult, 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)

Jump to

Keyboard shortcuts

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