fs

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: Apache-2.0 Imports: 6 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"`
}

type FS

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

func New

func New(opts Conf) *FS

func (*FS) Delete

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

func (*FS) FilesList

func (fs *FS) FilesList(suffix string) ([][]byte, error)

func (*FS) Save

func (fs *FS) Save(name string, data io.Reader) 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