azure

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: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxTimeForSingleHttpRequest = 50 * time.Minute

TryTimeout indicates the maximum time allowed for any single try of an HTTP request.

Functions

This section is empty.

Types

type AzureAdapter

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

func (*AzureAdapter) AbortMultipartUpload

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

func (*AzureAdapter) BackendCheck added in v1.2.0

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

func (*AzureAdapter) Base64ToInt64

func (ad *AzureAdapter) Base64ToInt64(base64ID string) int64

func (*AzureAdapter) BinaryToBase64

func (ad *AzureAdapter) BinaryToBase64(binaryID []byte) string

func (*AzureAdapter) BucketCreate added in v1.2.2

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

func (*AzureAdapter) BucketDelete added in v1.2.2

func (ad *AzureAdapter) BucketDelete(ctx context.Context, input *pb.Bucket) error

func (*AzureAdapter) ChangeStorageClass

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

func (*AzureAdapter) Close

func (ad *AzureAdapter) Close() error

func (*AzureAdapter) CompleteMultipartUpload

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

func (*AzureAdapter) Copy

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

func (*AzureAdapter) Delete

func (ad *AzureAdapter) Delete(ctx context.Context, input *pb.DeleteObjectInput) error

func (*AzureAdapter) Get

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

func (*AzureAdapter) GetObjectInfo

func (ad *AzureAdapter) GetObjectInfo(bucketName string, key string, context context.Context) (*pb.Object, error)

func (*AzureAdapter) InitMultipartUpload

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

func (*AzureAdapter) Int64ToBase64

func (ad *AzureAdapter) Int64ToBase64(blockID int64) string

func (*AzureAdapter) ListParts

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

func (*AzureAdapter) Put

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

func (*AzureAdapter) Restore added in v1.2.0

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

func (*AzureAdapter) UploadPart

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

type AzureBlobDriverFactory

type AzureBlobDriverFactory struct {
}

func (*AzureBlobDriverFactory) CreateDriver

func (factory *AzureBlobDriverFactory) 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