Documentation ¶
Index ¶
- Constants
- Variables
- func ParseContainerLabels(s string) map[string]string
- func ParsePodAnnotations(s string) map[string]string
- func ParsePodLabels(s string) map[string]string
- type Container
- type CountReport
- type Device
- type Interfaces
- type NetNs
- type PacketContext
- type Pod
- type Process
- type ProcessBase
- type ProcessExec
- type ProcessNamespace
Constants ¶
View Source
const ( ContainerLabelKeyPodName = "io.kubernetes.pod.name" ContainerLabelKeyPodNamespace = "io.kubernetes.pod.namespace" ContainerLabelKeyPodUid = "io.kubernetes.pod.uid" )
Variables ¶
View Source
var ErrDeviceNotFound = errors.New("device not found")
Functions ¶
func ParseContainerLabels ¶ added in v0.10.0
func ParsePodAnnotations ¶ added in v0.11.0
func ParsePodLabels ¶ added in v0.11.0
Types ¶
type Container ¶ added in v0.10.0
type Container struct { Id string Name string Labels map[string]string RootPid int PidNamespace int64 MountNamespace int64 NetworkNamespace int64 Image string ImageDigest string // contains filtered or unexported fields }
func (Container) FormatLabels ¶ added in v0.10.0
type CountReport ¶
type Interfaces ¶ added in v0.25.0
type Interfaces struct {
// contains filtered or unexported fields
}
func NewInterfaces ¶ added in v0.25.0
func NewInterfaces() *Interfaces
func (*Interfaces) Add ¶ added in v0.25.0
func (i *Interfaces) Add(dev Device)
func (*Interfaces) Devs ¶ added in v0.25.0
func (i *Interfaces) Devs() []Device
func (*Interfaces) GetByIfindex ¶ added in v0.25.0
func (i *Interfaces) GetByIfindex(index int) Device
func (*Interfaces) Merge ¶ added in v0.25.0
func (i *Interfaces) Merge(b *Interfaces)
type NetNs ¶ added in v0.25.0
type NetNs struct {
// contains filtered or unexported fields
}
func NewNetNsWithInode ¶ added in v0.25.0
type PacketContext ¶ added in v0.10.0
func (*PacketContext) FromPacketComments ¶ added in v0.11.0
func (c *PacketContext) FromPacketComments(comments []string)
type Pod ¶ added in v0.11.0
type Pod struct { Name string Namespace string Uid string Labels map[string]string Annotations map[string]string }
func (Pod) FormatAnnotations ¶ added in v0.11.0
func (Pod) FormatLabels ¶ added in v0.11.0
func (*Pod) LoadFromContainer ¶ added in v0.11.0
type Process ¶ added in v0.10.0
type Process struct { Parent ProcessBase ProcessBase ProcessNamespace }
type ProcessBase ¶ added in v0.18.0
func (ProcessBase) Comm ¶ added in v0.18.0
func (p ProcessBase) Comm() string
func (ProcessBase) FormatArgs ¶ added in v0.18.0
func (p ProcessBase) FormatArgs() string
func (ProcessBase) MatchComm ¶ added in v0.18.0
func (p ProcessBase) MatchComm(name string) bool
type ProcessExec ¶ added in v0.25.0
type ProcessExec struct { PPid int Pid int Filename string FilenameTruncated bool Args []string ArgsTruncated bool PidNs int64 MntNs int64 Netns int64 CgroupName string }
func (ProcessExec) ArgsStr ¶ added in v0.25.0
func (p ProcessExec) ArgsStr() string
func (ProcessExec) FilenameStr ¶ added in v0.25.0
func (p ProcessExec) FilenameStr() string
func (ProcessExec) MatchComm ¶ added in v0.25.0
func (p ProcessExec) MatchComm(name string) bool
type ProcessNamespace ¶ added in v0.18.0
Click to show internal directories.
Click to hide internal directories.