Documentation ¶
Index ¶
- type FSStorage
- func (st *FSStorage) DeleteObject(obj *storage.Object) error
- func (st *FSStorage) GetObjectACL(obj *storage.Object) error
- func (st *FSStorage) GetObjectContent(obj *storage.Object) error
- func (st *FSStorage) GetObjectMeta(obj *storage.Object) error
- func (st *FSStorage) List(output chan<- *storage.Object) error
- func (st *FSStorage) PutObject(obj *storage.Object) error
- func (st *FSStorage) WithContext(ctx context.Context)
- func (st *FSStorage) WithRateLimit(limit int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FSStorage ¶
type FSStorage struct {
// contains filtered or unexported fields
}
FSStorage configuration.
func NewFSStorage ¶
func NewFSStorage(dir string, filePerm, dirPerm os.FileMode, bufSize int, extendedMeta bool, listErrorMode storage.ErrHandlingMask, atomicWrite bool) *FSStorage
NewFSStorage return new configured FS storage.
You should always create new storage with this constructor.
func (*FSStorage) DeleteObject ¶
DeleteObject remove object from FS.
func (*FSStorage) GetObjectContent ¶
GetObjectContent read object content and metadata from FS.
func (*FSStorage) GetObjectMeta ¶
GetObjectMeta update object metadata from FS.
func (*FSStorage) WithContext ¶
WithContext add's context to storage.
func (*FSStorage) WithRateLimit ¶
WithRateLimit set rate limit (bytes/sec) for storage.
Click to show internal directories.
Click to hide internal directories.