Documentation ¶
Index ¶
- func Create(t PidType) error
- func CreateVmmUser() (string, error)
- func EnsureDir(path string, mode os.FileMode) error
- func FirstValidExecutable(paths []string) (string, error)
- func GzipAccepted(header http.Header) bool
- func RemoveVmmUser(user string) error
- func RunCommand(args []string) (string, error)
- func RunCommandFull(args []string, includeStderr bool) (string, error)
- func SetGaugeVecNetDev(gv *prometheus.GaugeVec, v procfs.NetDevLine)
- func SetGaugeVecProcIO(gv *prometheus.GaugeVec, ioStat procfs.ProcIO)
- func SetGaugeVecProcStat(gv *prometheus.GaugeVec, procStat procfs.ProcStat)
- func SetGaugeVecProcStatus(gv *prometheus.GaugeVec, procStatus procfs.ProcStatus)
- func ShareFrom(pid uint64, t PidType) error
- func String2Pointer(s string) *string
- type PidType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateVmmUser ¶
CreateVmmUser create a temp user for running Kata Containers under rootless mode.
func FirstValidExecutable ¶
func GzipAccepted ¶
GzipAccepted returns whether the client will accept gzip-encoded content.
func RemoveVmmUser ¶
RemoveVmmUser delete user created by CreateVmmUser.
func RunCommand ¶
RunCommand returns the commands space-trimmed standard output on success
func RunCommandFull ¶
RunCommandFull returns the commands space-trimmed standard output and error on success. Note that if the command fails, the requested output will still be returned, along with an error.
func SetGaugeVecNetDev ¶
func SetGaugeVecNetDev(gv *prometheus.GaugeVec, v procfs.NetDevLine)
SetGaugeVecNetDev set gauge for NetDevLine
func SetGaugeVecProcIO ¶
func SetGaugeVecProcIO(gv *prometheus.GaugeVec, ioStat procfs.ProcIO)
SetGaugeVecProcIO set gauge for ProcIO
func SetGaugeVecProcStat ¶
func SetGaugeVecProcStat(gv *prometheus.GaugeVec, procStat procfs.ProcStat)
SetGaugeVecProcStat set gauge for ProcStat
func SetGaugeVecProcStatus ¶
func SetGaugeVecProcStatus(gv *prometheus.GaugeVec, procStatus procfs.ProcStatus)
SetGaugeVecProcStatus set gauge for ProcStatus
func String2Pointer ¶
String2Pointer make a string to a pointer to string