Documentation
¶
Index ¶
- Constants
- type Dir
- 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) Readdir(n int) ([]fs.FileInfo, 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 to Mkdir") ErrShortSeek = errRamstore("attempted negative seek") ErrSeekOver = errRamstore("attempted seek past end of file") ErrActiveStream = errRamstore("attempted to close a file with active streams") 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
TODO: Test allocations to see if we need to use something like sync.Pool
Click to show internal directories.
Click to hide internal directories.