fs

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Path string `bson:"path" json:"path" yaml:"path"`
}

func (*Conf) Cast added in v1.6.0

func (c *Conf) Cast() error

type FS

type FS struct {
	// contains filtered or unexported fields
}

func New

func New(opts Conf) *FS

func (*FS) Copy added in v1.6.0

func (fs *FS) Copy(src, dst string) error

func (*FS) Delete

func (fs *FS) Delete(name string) error

Delete deletes given file from FS. It returns storage.ErrNotExist if a file isn't exists

func (*FS) FileStat added in v1.4.0

func (fs *FS) FileStat(name string) (inf storage.FileInfo, err error)

func (*FS) List added in v1.3.0

func (fs *FS) List(prefix, suffix string) ([]storage.FileInfo, error)

func (*FS) Save

func (fs *FS) Save(name string, data io.Reader, _ int) error

func (*FS) SourceReader

func (fs *FS) SourceReader(name string) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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