fs

package
v0.0.0-...-88587b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

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

func (st *FSStorage) DeleteObject(obj *storage.Object) error

DeleteObject remove object from FS.

func (*FSStorage) GetObjectACL

func (st *FSStorage) GetObjectACL(obj *storage.Object) error

func (*FSStorage) GetObjectContent

func (st *FSStorage) GetObjectContent(obj *storage.Object) error

GetObjectContent read object content and metadata from FS.

func (*FSStorage) GetObjectMeta

func (st *FSStorage) GetObjectMeta(obj *storage.Object) error

GetObjectMeta update object metadata from FS.

func (*FSStorage) List

func (st *FSStorage) List(output chan<- *storage.Object) error

List FS and send founded objects to chan.

func (*FSStorage) PutObject

func (st *FSStorage) PutObject(obj *storage.Object) error

PutObject saves object to FS.

func (*FSStorage) WithContext

func (st *FSStorage) WithContext(ctx context.Context)

WithContext add's context to storage.

func (*FSStorage) WithRateLimit

func (st *FSStorage) WithRateLimit(limit int) error

WithRateLimit set rate limit (bytes/sec) for storage.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL