Documentation
¶
Index ¶
- Constants
- type Dir
- func (d *Dir) Close() error
- func (d *Dir) Delete(name string) error
- func (d *Dir) Info() (fs.FileInfo, error)
- func (d *Dir) List() []string
- func (d *Dir) Mkdir(name string) error
- func (d *Dir) Open(name string) (*File, error)
- func (d *Dir) Readdir(n int) ([]fs.FileInfo, error)
- func (d *Dir) Root(buffer string) (*Dir, error)
- func (d *Dir) Walk(name string) (any, error)
- type DirInfo
- type File
- func (f *File) Close() error
- func (f *File) Name() string
- func (f *File) Read(b []byte) (n int, err error)
- func (f *File) Seek(offset int64, whence int) (int64, error)
- func (f *File) Stat() (fs.FileInfo, error)
- func (f *File) Truncate(cap int64) error
- func (f *File) Write(p []byte) (n int, err error)
- type FileInfo
Constants ¶
View Source
const ( ErrInvalidTrunc = errRamstore("truncation invalid") ErrInvalidPath = errRamstore("invalid path supplied") ErrInvalidDir = errRamstore("invalid directory supplied") ErrShortSeek = errRamstore("attempted negative seek") ErrSeekOver = errRamstore("attempted seek past end of file") ErrDirExists = errRamstore("directory exists") ErrFileClosed = errRamstore("invalid action on closed file") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶ added in v0.2.2
type Dir struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.