Documentation
¶
Index ¶
- Constants
- func NewFS(cfgMap map[string]interface{}, opts ...Option) (qfs.Filesystem, error)
- func NewFilesystem(_ context.Context, cfgMap map[string]interface{}) (qfs.Filesystem, error)
- type FS
- func (lfs *FS) Delete(ctx context.Context, path string) (err error)
- func (lfs *FS) Get(ctx context.Context, path string) (qfs.File, error)
- func (lfs *FS) Has(ctx context.Context, path string) (bool, error)
- func (lfs *FS) Put(ctx context.Context, file qfs.File) (resultPath string, err error)
- func (lfs *FS) Type() string
- type FSConfig
- type LocalFile
- type Option
Constants ¶
View Source
const FilestoreType = "local"
FilestoreType uniquely identifies this filestore
Variables ¶
This section is empty.
Functions ¶
func NewFS ¶
func NewFS(cfgMap map[string]interface{}, opts ...Option) (qfs.Filesystem, error)
NewFS creates a new local filesytem PathResolver
func NewFilesystem ¶ added in v0.4.2
NewFilesystem creates a new local filesystem Pathresolver with no options
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS is a implementation of qfs.PathResolver that uses the local filesystem
type FSConfig ¶
type FSConfig struct {
PWD string // working directory. defaults to system root
}
FSConfig adjusts the behaviour of an FS instance
func DefaultFSConfig ¶
func DefaultFSConfig() *FSConfig
DefaultFSConfig is the configuration state with no additional options consumers of this package typically don't need to use this
type LocalFile ¶
LocalFile implements qfs.File with a filesystem file
func (*LocalFile) IsDirectory ¶
IsDirectory satisfies the qfs.File interface
Click to show internal directories.
Click to hide internal directories.