Documentation ¶
Index ¶
- Constants
- Variables
- func WithTranslator(t block.UploadIDTranslator) func(a *Adapter)
- type Adapter
- func (a *Adapter) AbortMultiPartUpload(obj block.ObjectPointer, uploadID string) error
- func (a *Adapter) BlockstoreType() string
- func (a *Adapter) CompleteMultiPartUpload(obj block.ObjectPointer, uploadID string, _ *block.MultipartUploadCompletion) (*string, int64, error)
- func (a *Adapter) Copy(sourceObj, destinationObj block.ObjectPointer) error
- func (a *Adapter) CreateMultiPartUpload(obj block.ObjectPointer, r *http.Request, opts block.CreateMultiPartUploadOpts) (string, error)
- func (a *Adapter) GenerateInventory(_ context.Context, _ logging.Logger, _ string, _ bool) (block.Inventory, error)
- func (a *Adapter) Get(obj block.ObjectPointer, expectedSize int64) (io.ReadCloser, error)
- func (a *Adapter) GetProperties(obj block.ObjectPointer) (block.Properties, error)
- func (a *Adapter) GetRange(obj block.ObjectPointer, startPosition int64, endPosition int64) (io.ReadCloser, error)
- func (a *Adapter) Put(obj block.ObjectPointer, sizeBytes int64, reader io.Reader, opts block.PutOpts) error
- func (a *Adapter) Remove(obj block.ObjectPointer) error
- func (a *Adapter) UploadPart(obj block.ObjectPointer, sizeBytes int64, reader io.Reader, uploadID string, ...) (string, error)
- func (a *Adapter) ValidateConfiguration(_ string) error
- func (a *Adapter) WithContext(ctx context.Context) block.Adapter
Constants ¶
View Source
const BlockstoreType = "mem"
Variables ¶
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 (a *Adapter) AbortMultiPartUpload(obj block.ObjectPointer, uploadID string) error
func (*Adapter) BlockstoreType ¶ added in v0.11.0
func (*Adapter) CompleteMultiPartUpload ¶
func (a *Adapter) CompleteMultiPartUpload(obj block.ObjectPointer, uploadID string, _ *block.MultipartUploadCompletion) (*string, int64, error)
func (*Adapter) Copy ¶ added in v0.14.0
func (a *Adapter) Copy(sourceObj, destinationObj block.ObjectPointer) error
func (*Adapter) CreateMultiPartUpload ¶
func (a *Adapter) CreateMultiPartUpload(obj block.ObjectPointer, r *http.Request, opts block.CreateMultiPartUploadOpts) (string, error)
func (*Adapter) GenerateInventory ¶
func (*Adapter) Get ¶
func (a *Adapter) Get(obj block.ObjectPointer, expectedSize int64) (io.ReadCloser, error)
func (*Adapter) GetProperties ¶
func (a *Adapter) GetProperties(obj block.ObjectPointer) (block.Properties, error)
func (*Adapter) GetRange ¶
func (a *Adapter) GetRange(obj block.ObjectPointer, startPosition int64, endPosition int64) (io.ReadCloser, error)
func (*Adapter) UploadPart ¶
func (*Adapter) ValidateConfiguration ¶
Click to show internal directories.
Click to hide internal directories.