Versions in this module Expand all Collapse all v1 v1.0.1 Jun 10, 2024 v1.0.0 Jun 7, 2024 Changes in this version + const SharedLevelsStart + func ShouldCreateShared(strategy CreateOnSharedStrategy, level int) bool + type CreateOnSharedStrategy int + const CreateOnSharedAll + const CreateOnSharedLower + const CreateOnSharedNone + type Locator string + type ObjectReader interface + Close func() error + ReadAt func(ctx context.Context, p []byte, offset int64) error + type Storage interface + CreateObject func(objName string) (io.WriteCloser, error) + Delete func(objName string) error + IsNotExistError func(err error) bool + List func(prefix, delimiter string) ([]string, error) + ReadObject func(ctx context.Context, objName string) (_ ObjectReader, objSize int64, _ error) + Size func(objName string) (int64, error) + func NewInMem() Storage + func NewLocalFS(dirname string, fs vfs.FS) Storage + func WithLogging(wrapped Storage, logf func(fmt string, args ...interface{})) Storage + type StorageFactory interface + CreateStorage func(locator Locator) (Storage, error) + func MakeSimpleFactory(m map[Locator]Storage) StorageFactory