osutil

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2015 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cp

func Cp(from, to string) error

func DropCapabilities

func DropCapabilities(keepCaps map[uint]bool) error

func Execv

func Execv(cmd string, args []string, env []string) error

func ExistsDir

func ExistsDir(dir string) bool

func ExistsFile

func ExistsFile(file string) bool

func GetMountsByRoot

func GetMountsByRoot(rootDir string) ([]*mount.Info, error)

func IsDirEmpty

func IsDirEmpty(dir string) (bool, error)

func LookupGroup

func LookupGroup(id string) (int, error)

func LookupUser

func LookupUser(id string) (int, error)

func Mknod

func Mknod(path string, mode uint32, dev int) error

Mknod unless path does not exists.

func RunCmd

func RunCmd(name string, arg ...string) error

func Setgid added in v0.2.2

func Setgid(id int) error

func Setuid added in v0.2.2

func Setuid(id int) error
func Symlink(oldname, newname string) error

Symlink, but ignore already exists file.

func UmountRoot

func UmountRoot(rootDir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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