fs

package
v0.0.0-...-55670f9 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *Config) filestorage.FileStorager

Types

type Config

type Config struct {
	BaseDir string
}

type FS

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

func (*FS) Copy

func (f *FS) Copy(from, to string) error

func (*FS) Delete

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

func (*FS) Exists

func (f *FS) Exists(name string) (bool, error)

func (*FS) Get

func (f *FS) Get(name string) ([]byte, error)

func (*FS) List

func (f *FS) List(name string) ([]*filestorage.FileStats, error)

func (*FS) Save

func (f *FS) Save(name string, data []byte) error

func (*FS) Stats

func (f *FS) Stats(name string) (*filestorage.FileStats, error)

Jump to

Keyboard shortcuts

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