Documentation ¶
Index ¶
- Constants
- type DirEntry
- type File
- func (f *File) Chdir() error
- func (f *File) Chmod(mode os.FileMode) error
- func (f *File) Chown(uid int, gid int) error
- func (f *File) Close() error
- func (f *File) Name() string
- func (f *File) Read(b []byte) (int, error)
- func (f *File) ReadAt(b []byte, off int64) (int, error)
- func (f *File) ReadDir(n int) ([]DirEntry, error)
- func (f *File) Seek(offset int64, whence int) (ret int64, err error)
- func (f *File) Truncate(size int64) error
- func (f *File) Write(b []byte) (int, error)
- func (f *File) WriteAt(b []byte, offset int64) (int, error)
- func (f *File) WriteString(s string) (int, error)
- type FileOption
- func WithAppendOnly(appendOnly bool) FileOption
- func WithCreate() FileOption
- func WithCreateIfNotExist() FileOption
- func WithFlags(flags int) FileOption
- func WithForceSync(sync bool) FileOption
- func WithHashing(h hash.Hash) FileOption
- func WithQuorum(n int) FileOption
- func WithVolumes(volumes ...string) FileOption
Constants ¶
View Source
const ( QFError = iota QFWriteFirst QFWriteLast QFOrderFirst QFOrderLast QFLongest QFShortest QFShortestNonZero )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileOption ¶
func WithAppendOnly ¶
func WithAppendOnly(appendOnly bool) FileOption
func WithCreate ¶
func WithCreate() FileOption
func WithCreateIfNotExist ¶
func WithCreateIfNotExist() FileOption
func WithFlags ¶
func WithFlags(flags int) FileOption
func WithForceSync ¶
func WithForceSync(sync bool) FileOption
func WithHashing ¶
func WithHashing(h hash.Hash) FileOption
func WithQuorum ¶
func WithQuorum(n int) FileOption
func WithVolumes ¶
func WithVolumes(volumes ...string) FileOption
Click to show internal directories.
Click to hide internal directories.