gcp

package
Version: v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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) BackendCheck added in v1.2.0

func (ad *GcsAdapter) BackendCheck(ctx context.Context, backendDetail *pb.BackendDetailS3) error

func (*GcsAdapter) BucketCreate added in v1.2.2

func (ad *GcsAdapter) BucketCreate(ctx context.Context, input *pb.Bucket) error

func (*GcsAdapter) BucketDelete added in v1.2.2

func (ad *GcsAdapter) BucketDelete(ctx context.Context, in *pb.Bucket) 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) Restore added in v1.2.0

func (ad *GcsAdapter) Restore(ctx context.Context, inp *pb.Restore) 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)

Source Files

Jump to

Keyboard shortcuts

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