Documentation
¶
Index ¶
- func CreateSymlink(target, newPath string) error
- func DirExists(path string) bool
- func ErrorToRc(err error) (uint8, string)
- func FileExists(path string) bool
- func Killall()
- func MachineType() (string, error)
- func MajorMinor(path string) (int, int, error)
- func Mknod(path, devtype string, fmode uint32, major, minor int) error
- func RandStr(n int) string
- func SetSysctl(name string, value string) error
- func ToBool(s string) bool
- func UserHome(uid int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSymlink ¶
CreateSymlink creates a symbolic link. An existing newPath will be removed. target path must be absolute.
func FileExists ¶
FileExists returns whether the given regular file exists.
func MachineType ¶
MachineType returns the s390x machine type z13 : 2965 z14 : 3906 z15 : 8561 (T01) or 8562 (T02)
func MajorMinor ¶
MajorMinor returns major and minor device number for a given dev file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.