types

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContainerLabelKeyPodName      = "io.kubernetes.pod.name"
	ContainerLabelKeyPodNamespace = "io.kubernetes.pod.namespace"
	ContainerLabelKeyPodUid       = "io.kubernetes.pod.uid"
)

Variables

This section is empty.

Functions

func ParseContainerLabels added in v0.10.0

func ParseContainerLabels(s string) map[string]string

func ParsePodAnnotations added in v0.11.0

func ParsePodAnnotations(s string) map[string]string

func ParsePodLabels added in v0.11.0

func ParsePodLabels(s string) map[string]string

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
}

func (Container) FormatLabels added in v0.10.0

func (c Container) FormatLabels() string

func (*Container) IsNull added in v0.13.0

func (c *Container) IsNull() bool

func (Container) IsSanbox added in v0.11.0

func (c Container) IsSanbox() bool

func (Container) TidyName added in v0.10.0

func (c Container) TidyName() string

type CountReport

type CountReport struct {
	Captured int
	Received int
	Dropped  int
}

type PacketContext added in v0.10.0

type PacketContext struct {
	Process
	Container
	Pod
}

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 (p Pod) FormatAnnotations() string

func (Pod) FormatLabels added in v0.11.0

func (p Pod) FormatLabels() string

func (*Pod) LoadFromContainer added in v0.11.0

func (p *Pod) LoadFromContainer(c Container)

type Process added in v0.10.0

type Process struct {
	Pid              int
	PidNamespaceId   int64
	MountNamespaceId int64
	NetNamespaceId   int64

	Cmd          string
	CmdTruncated bool

	Args          []string
	ArgsTruncated bool
}

func (Process) Comm added in v0.13.0

func (p Process) Comm() string

func (Process) FormatArgs added in v0.10.0

func (p Process) FormatArgs() string

func (Process) MatchComm added in v0.10.0

func (p Process) MatchComm(name string) bool

Jump to

Keyboard shortcuts

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