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 ¶
- type AlibabaDriverFactory
- type OSSAdapter
- func (ad *OSSAdapter) AbortMultipartUpload(ctx context.Context, multipartUpload *pb.MultipartUpload) error
- func (ad *OSSAdapter) BackendCheck(ctx context.Context, backendDetail *pb.BackendDetailS3) error
- func (ad *OSSAdapter) BucketCreate(ctx context.Context, input *pb.Bucket) error
- func (ad *OSSAdapter) BucketDelete(ctx context.Context, in *pb.Bucket) error
- func (ad *OSSAdapter) ChangeStorageClass(ctx context.Context, object *pb.Object, newClass *string) error
- func (ad *OSSAdapter) Close() error
- func (ad *OSSAdapter) CompleteMultipartUpload(ctx context.Context, multipartUpload *pb.MultipartUpload, ...) (*model.CompleteMultipartUploadResult, error)
- func (ad *OSSAdapter) Copy(ctx context.Context, stream io.Reader, target *pb.Object) (result dscommon.PutResult, err error)
- func (ad *OSSAdapter) Delete(ctx context.Context, object *pb.DeleteObjectInput) error
- func (ad *OSSAdapter) Get(ctx context.Context, object *pb.Object, start int64, end int64) (io.ReadCloser, error)
- func (ad *OSSAdapter) InitMultipartUpload(ctx context.Context, object *pb.Object) (*pb.MultipartUpload, error)
- func (ad *OSSAdapter) ListParts(context context.Context, listParts *pb.ListParts) (*model.ListPartsOutput, error)
- func (ad *OSSAdapter) Put(ctx context.Context, stream io.Reader, object *pb.Object) (dscommon.PutResult, error)
- func (ad *OSSAdapter) Restore(ctx context.Context, target *pb.Restore) error
- func (ad *OSSAdapter) UploadPart(ctx context.Context, stream io.Reader, multipartUpload *pb.MultipartUpload, ...) (*model.UploadPartResult, error)
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 (*OSSAdapter) BucketDelete ¶ added in v1.2.2
func (*OSSAdapter) ChangeStorageClass ¶
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) 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) UploadPart ¶
func (ad *OSSAdapter) UploadPart(ctx context.Context, stream io.Reader, multipartUpload *pb.MultipartUpload, partNumber int64, upBytes int64) (*model.UploadPartResult, error)