haraqafs

package module
v0.0.0-...-93d824d Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 DirEntry

type DirEntry = fs.DirEntry

type File

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

func New

func New(name string, opts ...FileOption) (*File, error)

func (*File) Chdir

func (f *File) Chdir() error

func (*File) Chmod

func (f *File) Chmod(mode os.FileMode) error

func (*File) Chown

func (f *File) Chown(uid int, gid int) error

func (*File) Close

func (f *File) Close() error

func (*File) Name

func (f *File) Name() string

func (*File) Read

func (f *File) Read(b []byte) (int, error)

func (*File) ReadAt

func (f *File) ReadAt(b []byte, off int64) (int, error)

func (*File) ReadDir

func (f *File) ReadDir(n int) ([]DirEntry, error)

func (*File) Seek

func (f *File) Seek(offset int64, whence int) (ret int64, err error)

func (*File) Truncate

func (f *File) Truncate(size int64) error

func (*File) Write

func (f *File) Write(b []byte) (int, error)

func (*File) WriteAt

func (f *File) WriteAt(b []byte, offset int64) (int, error)

func (*File) WriteString

func (f *File) WriteString(s string) (int, error)

type FileOption

type FileOption func(f *File) error

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

Jump to

Keyboard shortcuts

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