v1.9.0 Latest Latest

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 16 Imported by: 1




This section is empty.


This section is empty.


This section is empty.


type HWObsDriverFactory

type HWObsDriverFactory struct {

func (*HWObsDriverFactory) CreateDriver

func (cdf *HWObsDriverFactory) CreateDriver(backend *backendpb.BackendDetail) (driver.StorageDriver, error)

type OBSAdapter

type OBSAdapter struct {
	// contains filtered or unexported fields

func (*OBSAdapter) AbortMultipartUpload

func (ad *OBSAdapter) AbortMultipartUpload(ctx context.Context, multipartUpload *pb.MultipartUpload) error

func (*OBSAdapter) BackendCheck added in v1.2.0

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

func (*OBSAdapter) BucketCreate added in v1.2.2

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

func (*OBSAdapter) BucketDelete added in v1.2.2

func (ad *OBSAdapter) BucketDelete(ctx context.Context, in *pb.Bucket) error

func (*OBSAdapter) ChangeStorageClass

func (ad *OBSAdapter) ChangeStorageClass(ctx context.Context, object *pb.Object, newClass *string) error

func (*OBSAdapter) Close

func (ad *OBSAdapter) Close() error

func (*OBSAdapter) CompleteMultipartUpload

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

func (*OBSAdapter) Copy

func (ad *OBSAdapter) Copy(ctx context.Context, stream io.Reader, target *pb.Object) (result dscommon.PutResult, err error)

func (*OBSAdapter) Delete

func (ad *OBSAdapter) Delete(ctx context.Context, object *pb.DeleteObjectInput) error

func (*OBSAdapter) Get

func (ad *OBSAdapter) Get(ctx context.Context, object *pb.Object, start int64, end int64) (io.ReadCloser, error)

func (*OBSAdapter) InitMultipartUpload

func (ad *OBSAdapter) InitMultipartUpload(ctx context.Context, object *pb.Object) (*pb.MultipartUpload, error)

func (*OBSAdapter) ListParts

func (ad *OBSAdapter) ListParts(context context.Context, listParts *pb.ListParts) (*model.ListPartsOutput, error)

func (*OBSAdapter) Put

func (ad *OBSAdapter) Put(ctx context.Context, stream io.Reader, object *pb.Object) (dscommon.PutResult, error)

func (*OBSAdapter) Restore added in v1.2.0

func (ad *OBSAdapter) Restore(ctx context.Context, inp *pb.Restore) error

func (*OBSAdapter) UploadPart

func (ad *OBSAdapter) UploadPart(ctx context.Context, stream io.Reader, multipartUpload *pb.MultipartUpload,
	partNumber int64, upBytes int64) (*model.UploadPartResult, error)

Jump to

Keyboard shortcuts

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