builtin

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: Apache-2.0 Imports: 28 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddrArguments added in v1.2.0

type AddrArguments struct {
	LinkArguments
	IP string `json:"ip"`
}

type BridgeArguments added in v1.2.0

type BridgeArguments struct {
	LinkArguments
	HwAddress string `json:"hwaddr"`
}

type BridgeInfArguments added in v1.2.0

type BridgeInfArguments struct {
	LinkArguments
	Inf string `json:"inf"`
}

type CPUStats added in v1.2.0

type CPUStats struct {
	GuestNice float64 `json:"guestnice"`
	Idle      float64 `json:"idle"`
	IoWait    float64 `json:"iowait"`
	Irq       float64 `json:"irq"`
	Nice      float64 `json:"nice"`
	SoftIrq   float64 `json:"softirq"`
	Steal     float64 `json:"steal"`
	Stolen    float64 `json:"stolen"`
	System    float64 `json:"system"`
	User      float64 `json:"user"`
}

type FSChmodArgs

type FSChmodArgs struct {
	FSPathArgs
	Mode      os.FileMode `json:"mode"`
	Recursive bool        `json:"recursive"`
}

type FSChownArgs

type FSChownArgs struct {
	FSPathArgs
	User      string `json:"user"`
	Group     string `json:"group"`
	Recursive bool   `json:"recursive"`
}

type FSEntry

type FSEntry struct {
	Name  string      `json:"name"`   // base name of the file
	Size  int64       `json:"size"`   // length in bytes for regular files; system-dependent for others
	Mode  os.FileMode `json:"mode"`   // file mode bits
	IsDir bool        `json:"is_dir"` // abbreviation for Mode().IsDir()
}

type FSFileDescriptorArgs

type FSFileDescriptorArgs struct {
	FD string `json:"fd"`
}

type FSMoveArgs

type FSMoveArgs struct {
	FSPathArgs
	Destination string `json:"destination"`
}

type FSOpenArgs

type FSOpenArgs struct {
	File string `json:"file"`
	Mode string `json:"mode"`
	Perm uint32 `json:"perm"`
}

type FSPathArgs

type FSPathArgs struct {
	Path string `json:"path"`
}

type FSWriteArgs

type FSWriteArgs struct {
	FSFileDescriptorArgs
	Block string `json:"block"`
}
type Link struct {
	Name   string `json:"name"`
	Type   string `json:"type"`
	HwAddr string `json:"hwaddr"`
	Master string `json:"master"`
	Up     bool   `json:"up"`
	MTU    int    `json:"mtu"`
}

type LinkArguments added in v1.2.0

type LinkArguments struct {
	Name string `json:"name"`
}

type LinkMTUArguments added in v1.3.0

type LinkMTUArguments struct {
	LinkArguments
	MTU int `json:"mtu"`
}

type LinkNameArguments added in v1.2.0

type LinkNameArguments struct {
	LinkArguments
	New string `json:"new"`
}

type NicInfo added in v1.2.0

type NicInfo struct {
	net.InterfaceStat
	Speed uint32 `json:"speed"`
}

type Port added in v1.2.0

type Port struct {
	Network string   `json:"network"`
	Port    uint16   `json:"port,omitempty"`
	Unix    string   `json:"unix,omitempty"`
	IP      gonet.IP `json:"ip,omitempty"`
	PID     uint64   `json:"pid"`
	// contains filtered or unexported fields
}

type Process added in v1.2.0

type Process struct {
	PID        int32                `json:"pid"`
	PPID       int32                `json:"ppid"`
	Cmdline    string               `json:"cmdline"`
	Name       string               `json:"name"`
	CreateTime int64                `json:"createtime"`
	Cpu        CPUStats             `json:"cpu"`
	RSS        uint64               `json:"rss"`
	VMS        uint64               `json:"vms"`
	Swap       uint64               `json:"swap"`
	RLimit     []process.RlimitStat `json:"rlimit"`
	OFD        int32                `json:"ofd"`
}

type Route added in v1.2.0

type Route struct {
	Dev string `json:"dev"`
	Dst string `json:"dst"`
	Gw  string `json:"gw"`
}

type Version added in v1.2.0

type Version struct {
	Branch   string `json:"branch"`
	Revision string `json:"revision"`
	Dirty    bool   `json:"dirty"`
}

Jump to

Keyboard shortcuts

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