os_r

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: GPL-3.0, LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chdir

func Chdir(dir string) result.ResultVoid

func Chmod

func Chmod(name string, mode os.FileMode) result.ResultVoid

func Chown

func Chown(name string, uid, gid int) result.ResultVoid

func Chtimes

func Chtimes(name string, atime time.Time, mtime time.Time) result.ResultVoid

func Create

func Create(fname string) result.Result[*os.File]

func Executable

func Executable() result.Result[string]

func Getgroups

func Getgroups() result.Result[[]int]

func Getwd

func Getwd() result.Result[string]

func Hostname

func Hostname() result.Result[string]

func Lchown

func Lchown(name string, uid, gid int) result.ResultVoid
func Link(oldname, newname string) result.ResultVoid

func LookupEnv

func LookupEnv(key string) option.Option[string]

func Mkdir

func Mkdir(name string, perm os.FileMode) result.ResultVoid

func MkdirAll

func MkdirAll(path string, perm os.FileMode) result.ResultVoid

func MkdirTemp

func MkdirTemp(dir, pattern string) result.Result[string]

func Open

func Open(fname string) result.Result[*os.File]

func OpenFile

func OpenFile(fname string, flag int, perm fs.FileMode) result.Result[*os.File]

func ReadFile

func ReadFile(name string) result.Result[[]byte]
func Readlink(name string) result.Result[string]

func Remove

func Remove(name string) result.ResultVoid

func RemoveAll

func RemoveAll(path string) result.ResultVoid

func Rename

func Rename(oldpath, newpath string) result.ResultVoid

func Setenv

func Setenv(key, value string) result.ResultVoid
func Symlink(oldname, newname string) result.ResultVoid

func Truncate

func Truncate(name string, size int64) result.ResultVoid

func Unsetenv

func Unsetenv(key string) result.ResultVoid

func UserCacheDir

func UserCacheDir() result.Result[string]

func UserConfigDir

func UserConfigDir() result.Result[string]

func UserHomeDir

func UserHomeDir() result.Result[string]

func WriteFile

func WriteFile(name string, data []byte, perm os.FileMode) result.ResultVoid

Types

This section is empty.

Jump to

Keyboard shortcuts

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