datastore

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exit

func Exit(backendType string)

Types

type DataStoreAdapter

type DataStoreAdapter interface {
	PUT(stream io.Reader, object *pb.Object, context context.Context) S3Error
	GET(object *pb.Object, context context.Context) (io.ReadCloser, S3Error)
	DELETE(object *pb.DeleteObjectInput, context context.Context) S3Error

	GetObjectInfo(bucketName string, key string, context context.Context) (*pb.Object, S3Error)
	InitMultipartUpload(object *pb.Object, context context.Context) (*pb.MultipartUpload, S3Error)
	UploadPart(stream io.Reader, multipartUpload *pb.MultipartUpload, partNumber int64, upBytes int64, context context.Context) (*model.UploadPartResult, S3Error)
	CompleteMultipartUpload(multipartUpload *pb.MultipartUpload, completeUpload *model.CompleteMultipartUpload, context context.Context) (*model.CompleteMultipartUploadResult, S3Error)
	AbortMultipartUpload(multipartUpload *pb.MultipartUpload, context context.Context) S3Error

	ListParts(listParts *pb.ListParts, context context.Context) (*model.ListPartsOutput, S3Error)
}

func Init

Init function can perform some initialization work of different datastore.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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