aws

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsAdapter

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

func Init

func Init(backend *backendpb.BackendDetail) *AwsAdapter

func (*AwsAdapter) AbortMultipartUpload

func (ad *AwsAdapter) AbortMultipartUpload(multipartUpload *pb.MultipartUpload, context context.Context) S3Error

func (*AwsAdapter) CompleteMultipartUpload

func (ad *AwsAdapter) CompleteMultipartUpload(
	multipartUpload *pb.MultipartUpload,
	completeUpload *model.CompleteMultipartUpload,
	context context.Context) (*model.CompleteMultipartUploadResult, S3Error)

func (*AwsAdapter) DELETE

func (ad *AwsAdapter) DELETE(object *pb.DeleteObjectInput, ctx context.Context) S3Error

func (*AwsAdapter) GET

func (ad *AwsAdapter) GET(object *pb.Object, context context.Context, start int64, end int64) (io.ReadCloser, S3Error)

func (*AwsAdapter) GetObjectInfo

func (ad *AwsAdapter) GetObjectInfo(bucketName string, key string, context context.Context) (*pb.Object, S3Error)

func (*AwsAdapter) InitMultipartUpload

func (ad *AwsAdapter) InitMultipartUpload(object *pb.Object, context context.Context) (*pb.MultipartUpload, S3Error)

func (*AwsAdapter) ListParts

func (ad *AwsAdapter) ListParts(listParts *pb.ListParts, context context.Context) (*model.ListPartsOutput, S3Error)

func (*AwsAdapter) PUT

func (ad *AwsAdapter) PUT(stream io.Reader, object *pb.Object, ctx context.Context) S3Error

func (*AwsAdapter) UploadPart

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

Jump to

Keyboard shortcuts

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