osutil

package
v0.18.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const SigInt = Signal(syscall.SIGINT)

SigInt is the value of SIGINT.

View Source
const SigKill = Signal(syscall.SIGKILL)

SigKill is the value of SIGKILL.

View Source
const UnixPathMax = 108

UnixPathMax is the value of UNIX_PATH_MAX.

Variables

This section is empty.

Functions

func DNSAddresses added in v0.6.3

func DNSAddresses() ([]string, error)

func Ftruncate added in v0.17.0

func Ftruncate(fd int, length int64) (err error)

func IsBeingRosettaTranslated added in v0.15.0

func IsBeingRosettaTranslated() bool

func LimaUser added in v0.6.4

func LimaUser(warn bool) (*user.User, error)

func MachineID

func MachineID() string

func ProxySettings added in v0.7.0

func ProxySettings() (map[string]string, error)

func SysKill added in v0.11.2

func SysKill(pid int, sig Signal) error

Types

type Group added in v0.7.0

type Group struct {
	Name string
	Gid  uint32 //nolint:revive
}

func LookupGroup added in v0.7.0

func LookupGroup(name string) (Group, error)

type Signal added in v0.11.2

type Signal syscall.Signal

type Stat added in v0.11.2

type Stat struct {
	Uid uint32 //nolint:revive
	Gid uint32 //nolint:revive
}

Stat is a selection of syscall.Stat_t

func SysStat added in v0.11.2

func SysStat(fi fs.FileInfo) (Stat, bool)

type User added in v0.7.0

type User struct {
	User  string
	Uid   uint32 //nolint:revive
	Group string
	Gid   uint32 //nolint:revive
	Home  string
}

func LookupUser added in v0.7.0

func LookupUser(name string) (User, error)

Jump to

Keyboard shortcuts

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