Documentation ¶
Index ¶
- Constants
- Variables
- func WithTranslator(t block.UploadIDTranslator) func(a *Adapter)
- type Adapter
- func (a *Adapter) AbortMultiPartUpload(_ context.Context, obj block.ObjectPointer, uploadID string) error
- func (a *Adapter) BlockstoreType() string
- func (a *Adapter) CompleteMultiPartUpload(_ context.Context, obj block.ObjectPointer, uploadID string, ...) (*string, int64, error)
- func (a *Adapter) Copy(_ context.Context, sourceObj, destinationObj block.ObjectPointer) error
- func (a *Adapter) CreateMultiPartUpload(_ context.Context, obj block.ObjectPointer, r *http.Request, ...) (string, error)
- func (a *Adapter) Exists(_ context.Context, obj block.ObjectPointer) (bool, error)
- func (a *Adapter) GenerateInventory(_ context.Context, _ logging.Logger, _ string, _ bool, _ []string) (block.Inventory, error)
- func (a *Adapter) Get(_ context.Context, obj block.ObjectPointer, expectedSize int64) (io.ReadCloser, error)
- func (a *Adapter) GetProperties(_ context.Context, obj block.ObjectPointer) (block.Properties, error)
- func (a *Adapter) GetRange(_ context.Context, obj block.ObjectPointer, startPosition int64, ...) (io.ReadCloser, error)
- func (a *Adapter) GetStorageNamespaceInfo() block.StorageNamespaceInfo
- func (a *Adapter) Put(_ context.Context, obj block.ObjectPointer, sizeBytes int64, reader io.Reader, ...) error
- func (a *Adapter) Remove(_ context.Context, obj block.ObjectPointer) error
- func (a *Adapter) UploadCopyPart(ctx context.Context, sourceObj, destinationObj block.ObjectPointer, ...) (string, error)
- func (a *Adapter) UploadCopyPartRange(_ context.Context, sourceObj, _ block.ObjectPointer, uploadID string, ...) (string, error)
- func (a *Adapter) UploadPart(_ context.Context, obj block.ObjectPointer, sizeBytes int64, reader io.Reader, ...) (string, error)
- func (a *Adapter) ValidateConfiguration(_ context.Context, _ string) error
- func (a *Adapter) Walk(_ context.Context, walkOpt block.WalkOpts, walkFn block.WalkFunc) error
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 (*Adapter) BlockstoreType ¶
func (*Adapter) CompleteMultiPartUpload ¶
func (*Adapter) CreateMultiPartUpload ¶
func (*Adapter) GenerateInventory ¶
func (*Adapter) Get ¶
func (a *Adapter) Get(_ context.Context, obj block.ObjectPointer, expectedSize int64) (io.ReadCloser, error)
func (*Adapter) GetProperties ¶
func (a *Adapter) GetProperties(_ context.Context, obj block.ObjectPointer) (block.Properties, error)
func (*Adapter) GetRange ¶
func (a *Adapter) GetRange(_ context.Context, obj block.ObjectPointer, startPosition int64, endPosition int64) (io.ReadCloser, error)
func (*Adapter) GetStorageNamespaceInfo ¶
func (a *Adapter) GetStorageNamespaceInfo() block.StorageNamespaceInfo
func (*Adapter) UploadCopyPart ¶
func (*Adapter) UploadCopyPartRange ¶
func (*Adapter) UploadPart ¶
func (*Adapter) ValidateConfiguration ¶
Click to show internal directories.
Click to hide internal directories.