alibaba

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Copyright 2019 The OpenSDS Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 2019 The OpenSDS Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlibabaDriverFactory

type AlibabaDriverFactory struct {
}

func (*AlibabaDriverFactory) CreateDriver

func (factory *AlibabaDriverFactory) CreateDriver(backend *backendpb.BackendDetail) (driver.StorageDriver, error)

type OSSAdapter

type OSSAdapter struct {
	// contains filtered or unexported fields
}

func (*OSSAdapter) AbortMultipartUpload

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

func (*OSSAdapter) BackendCheck added in v1.2.0

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

func (*OSSAdapter) BucketCreate added in v1.2.2

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

func (*OSSAdapter) BucketDelete added in v1.2.2

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

func (*OSSAdapter) ChangeStorageClass

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

func (*OSSAdapter) Close

func (ad *OSSAdapter) Close() error

func (*OSSAdapter) CompleteMultipartUpload

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

func (*OSSAdapter) Copy

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

func (*OSSAdapter) Delete

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

func (*OSSAdapter) Get

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

func (*OSSAdapter) InitMultipartUpload

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

func (*OSSAdapter) ListParts

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

func (*OSSAdapter) Put

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

func (*OSSAdapter) Restore added in v1.2.0

func (ad *OSSAdapter) Restore(ctx context.Context, target *pb.Restore) error

func (*OSSAdapter) UploadPart

func (ad *OSSAdapter) 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