local

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const BlockstoreType = "local"

Variables

This section is empty.

Functions

func NewAdapter

func NewAdapter(path string, opts ...func(a *Adapter)) (block.Adapter, error)

func WithTranslator

func WithTranslator(t block.UploadIDTranslator) func(a *Adapter)

Types

type Adapter

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

func (*Adapter) AbortMultiPartUpload

func (l *Adapter) AbortMultiPartUpload(obj block.ObjectPointer, uploadID string) error

func (*Adapter) CompleteMultiPartUpload

func (l *Adapter) CompleteMultiPartUpload(obj block.ObjectPointer, uploadID string, multipartList *block.MultipartUploadCompletion) (*string, int64, error)

func (*Adapter) CreateMultiPartUpload

func (l *Adapter) CreateMultiPartUpload(obj block.ObjectPointer, r *http.Request, opts block.CreateMultiPartUploadOpts) (string, error)

func (*Adapter) GenerateInventory

func (l *Adapter) GenerateInventory(_ context.Context, _ logging.Logger, _ string) (block.Inventory, error)

func (*Adapter) Get

func (l *Adapter) Get(obj block.ObjectPointer, _ int64) (reader io.ReadCloser, err error)

func (*Adapter) GetProperties

func (l *Adapter) GetProperties(obj block.ObjectPointer) (block.Properties, error)

func (*Adapter) GetRange

func (l *Adapter) GetRange(obj block.ObjectPointer, start int64, end int64) (io.ReadCloser, error)

func (*Adapter) Put

func (l *Adapter) Put(obj block.ObjectPointer, _ int64, reader io.Reader, _ block.PutOpts) error

func (*Adapter) Remove

func (l *Adapter) Remove(obj block.ObjectPointer) error

func (*Adapter) UploadPart

func (l *Adapter) UploadPart(obj block.ObjectPointer, sizeBytes int64, reader io.Reader, uploadId string, partNumber int64) (string, error)

func (*Adapter) ValidateConfiguration

func (l *Adapter) ValidateConfiguration(_ string) error

func (*Adapter) WithContext

func (l *Adapter) WithContext(ctx context.Context) block.Adapter

Jump to

Keyboard shortcuts

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