localfs

package
v0.2.16 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 17 Imported by: 9 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// AuthFileSystem Authentication Method
	AuthFileSystem cloudstorage.AuthMethod = "localfiles"

	// StoreType name of our Local Storage provider = "localfs"
	StoreType = "localfs"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalStore

type LocalStore struct {
	Id string
	// contains filtered or unexported fields
}

LocalStore is client to local-filesystem store.

func NewLocalStore

func NewLocalStore(bucket, storepath, cachepath string) (*LocalStore, error)

NewLocalStore create local store from storage path on local filesystem, and cachepath.

func (*LocalStore) Client

func (l *LocalStore) Client() interface{}

func (*LocalStore) Delete

func (l *LocalStore) Delete(ctx context.Context, obj string) error

Delete the object from underlying store.

func (*LocalStore) Folders

func (l *LocalStore) Folders(ctx context.Context, csq cloudstorage.Query) ([]string, error)

Folders list of folders for given path query.

func (*LocalStore) Get

func (*LocalStore) List

List objects at Query location.

func (*LocalStore) NewObject

func (l *LocalStore) NewObject(objectname string) (cloudstorage.Object, error)

NewObject create new object of given name.

func (*LocalStore) NewReader

func (l *LocalStore) NewReader(o string) (io.ReadCloser, error)

NewReader create local file-system store reader.

func (*LocalStore) NewReaderWithContext

func (l *LocalStore) NewReaderWithContext(ctx context.Context, o string) (io.ReadCloser, error)

func (*LocalStore) NewWriter

func (l *LocalStore) NewWriter(o string, metadata map[string]string) (io.WriteCloser, error)

func (*LocalStore) NewWriterWithContext

func (l *LocalStore) NewWriterWithContext(ctx context.Context, o string, metadata map[string]string, opts ...cloudstorage.Opts) (io.WriteCloser, error)

func (*LocalStore) Objects

Objects returns an iterator over the objects in the local folder that match the Query q. If q is nil, no filtering is done.

func (*LocalStore) String

func (l *LocalStore) String() string

func (*LocalStore) Type

func (l *LocalStore) Type() string

Type is store type = "localfs"

Jump to

Keyboard shortcuts

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