internal

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close added in v0.5.0

func Close(closer io.Closer) (err error)

Close closes closer but ignores select errors.

func ReadFullAt added in v0.3.0

func ReadFullAt(r io.ReaderAt, buf []byte, off int64) (n int, err error)

ReadFullAt is an implementation of io.ReadFull() but for io.ReaderAt.

func Sync

func Sync(path string) error

Sync performs an fsync on the given path. Typically used for directories.

Types

type SystemOS added in v0.5.6

type SystemOS struct{}

SystemOS represents an implementation of OS that simply calls the os package functions.

func (*SystemOS) Create added in v0.5.6

func (*SystemOS) Create(op, name string) (*os.File, error)

func (*SystemOS) Mkdir added in v0.5.6

func (*SystemOS) Mkdir(op, path string, perm os.FileMode) error

func (*SystemOS) MkdirAll added in v0.5.6

func (*SystemOS) MkdirAll(op, path string, perm os.FileMode) error

func (*SystemOS) Open added in v0.5.6

func (*SystemOS) Open(op, name string) (*os.File, error)

func (*SystemOS) OpenFile added in v0.5.6

func (*SystemOS) OpenFile(op, name string, flag int, perm os.FileMode) (*os.File, error)

func (*SystemOS) ReadDir added in v0.5.6

func (*SystemOS) ReadDir(op, name string) ([]os.DirEntry, error)

func (*SystemOS) ReadFile added in v0.5.6

func (*SystemOS) ReadFile(op, name string) ([]byte, error)

func (*SystemOS) Remove added in v0.5.6

func (*SystemOS) Remove(op, name string) error

func (*SystemOS) RemoveAll added in v0.5.6

func (*SystemOS) RemoveAll(op, name string) error

func (*SystemOS) Rename added in v0.5.6

func (*SystemOS) Rename(op, oldpath, newpath string) error

func (*SystemOS) Stat added in v0.5.6

func (*SystemOS) Stat(op, name string) (os.FileInfo, error)

func (*SystemOS) Truncate added in v0.5.6

func (*SystemOS) Truncate(op, name string, size int64) error

func (*SystemOS) WriteFile added in v0.5.6

func (*SystemOS) WriteFile(op, name string, data []byte, perm os.FileMode) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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