Documentation ¶
Index ¶
- Constants
- func NewAdapter(path string, opts ...func(a *Adapter)) (block.Adapter, error)
- func WithTranslator(t block.UploadIDTranslator) func(a *Adapter)
- type Adapter
- func (l *Adapter) AbortMultiPartUpload(obj block.ObjectPointer, uploadID string) error
- func (l *Adapter) CompleteMultiPartUpload(obj block.ObjectPointer, uploadID string, ...) (*string, int64, error)
- func (l *Adapter) CreateMultiPartUpload(obj block.ObjectPointer, r *http.Request, opts block.CreateMultiPartUploadOpts) (string, error)
- func (l *Adapter) GenerateInventory(_ context.Context, _ logging.Logger, _ string) (block.Inventory, error)
- func (l *Adapter) Get(obj block.ObjectPointer, _ int64) (reader io.ReadCloser, err error)
- func (l *Adapter) GetProperties(obj block.ObjectPointer) (block.Properties, error)
- func (l *Adapter) GetRange(obj block.ObjectPointer, start int64, end int64) (io.ReadCloser, error)
- func (l *Adapter) Put(obj block.ObjectPointer, _ int64, reader io.Reader, _ block.PutOpts) error
- func (l *Adapter) Remove(obj block.ObjectPointer) error
- func (l *Adapter) UploadPart(obj block.ObjectPointer, sizeBytes int64, reader io.Reader, uploadId string, ...) (string, error)
- func (l *Adapter) ValidateConfiguration(_ string) error
- func (l *Adapter) WithContext(ctx context.Context) block.Adapter
Constants ¶
View Source
const BlockstoreType = "local"
Variables ¶
This section is empty.
Functions ¶
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 (*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) UploadPart ¶
func (*Adapter) ValidateConfiguration ¶
Click to show internal directories.
Click to hide internal directories.