Documentation ¶
Index ¶
- Constants
- Variables
- func WithRemoveEmptyDir(b bool) func(a *Adapter)
- func WithTranslator(t block.UploadIDTranslator) func(a *Adapter)
- type Adapter
- func (l *Adapter) AbortMultiPartUpload(_ context.Context, obj block.ObjectPointer, uploadID string) error
- func (l *Adapter) BlockstoreType() string
- func (l *Adapter) CompleteMultiPartUpload(_ context.Context, obj block.ObjectPointer, uploadID string, ...) (*string, int64, error)
- func (l *Adapter) Copy(_ context.Context, sourceObj, destinationObj block.ObjectPointer) error
- func (l *Adapter) CreateMultiPartUpload(_ context.Context, obj block.ObjectPointer, _ *http.Request, ...) (string, error)
- func (l *Adapter) Exists(_ context.Context, obj block.ObjectPointer) (bool, error)
- func (l *Adapter) GenerateInventory(_ context.Context, _ logging.Logger, _ string, _ bool, _ []string) (block.Inventory, error)
- func (l *Adapter) Get(_ context.Context, obj block.ObjectPointer, _ int64) (reader io.ReadCloser, err error)
- func (l *Adapter) GetProperties(_ context.Context, obj block.ObjectPointer) (block.Properties, error)
- func (l *Adapter) GetRange(_ context.Context, obj block.ObjectPointer, start int64, end int64) (io.ReadCloser, error)
- func (l *Adapter) GetStorageNamespaceInfo() block.StorageNamespaceInfo
- func (l *Adapter) Path() string
- func (l *Adapter) Put(_ context.Context, obj block.ObjectPointer, _ int64, reader io.Reader, ...) error
- func (l *Adapter) Remove(_ context.Context, obj block.ObjectPointer) error
- func (l *Adapter) UploadCopyPart(ctx context.Context, sourceObj, destinationObj block.ObjectPointer, ...) (string, error)
- func (l *Adapter) UploadCopyPartRange(ctx context.Context, sourceObj, destinationObj block.ObjectPointer, ...) (string, error)
- func (l *Adapter) UploadPart(ctx context.Context, obj block.ObjectPointer, _ int64, reader io.Reader, ...) (string, error)
- func (l *Adapter) ValidateConfiguration(_ context.Context, _ string) error
- func (l *Adapter) Walk(_ context.Context, walkOpt block.WalkOpts, walkFn block.WalkFunc) error
Constants ¶
View Source
const BlockstoreType = "local"
Variables ¶
Functions ¶
func WithRemoveEmptyDir ¶
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 (l *Adapter) Get(_ context.Context, obj block.ObjectPointer, _ int64) (reader io.ReadCloser, err error)
func (*Adapter) GetProperties ¶
func (l *Adapter) GetProperties(_ context.Context, obj block.ObjectPointer) (block.Properties, error)
func (*Adapter) GetRange ¶
func (l *Adapter) GetRange(_ context.Context, obj block.ObjectPointer, start int64, end int64) (io.ReadCloser, error)
func (*Adapter) GetStorageNamespaceInfo ¶
func (l *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.