fs

package
v0.0.0-...-40aff7f Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrStop = errors.New("stop iter")

Functions

This section is empty.

Types

type Dirs

type Dirs []string

func (Dirs) ForError

func (d Dirs) ForError(fn func(d string) error) error

type File

type File interface {
	Path() string
	Stat() FileInfo
	Move(newPath string) error
	Copy(newPath string) error
	Open() (io.ReadCloser, error)
	Update(in io.ReadCloser, metadata ...*HTTPOption) error
}

func ObjectWrapper

func ObjectWrapper(o fs.Object) File

type FileInfo

type FileInfo interface {
	Name() string
	Hash() string
	Size() int64
	ModTime() time.Time
}

type Files

type Files []File

func (Files) ForError

func (f Files) ForError(fn func(f File) error) error

type HTTPOption

type HTTPOption = fs.HTTPOption

Jump to

Keyboard shortcuts

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