Documentation ¶
Index ¶
- Constants
- func ParseContainerID(cID string) (r, id string, err error)
- func ParseContainerInfo(containerStr string) (ns, podName, containerName string, err error)
- func ParseDeploymentInfo(str string) (nodeName, nodeIP string, err error)
- func ParseNodeInfo(nodeStr string) (nodeName, nodeIP string, err error)
- func ParsePodInfo(podStr string) (ns, podName string, err error)
- type AtomicObject
- type ContainerInfo
- type ContainerObject
- type DaemonSetObject
- type DeploymentObject
- type NamespaceObject
- type NodeObject
- type PodObject
- type SubExpInfo
Constants ¶
View Source
const ( TimeFormat = "2006-01-02 15:04:05" DockerRuntime = "docker" )
View Source
const (
ObjectNameSplit = "/"
)
Variables ¶
This section is empty.
Functions ¶
func ParseContainerID ¶
func ParseContainerInfo ¶
func ParseDeploymentInfo ¶
func ParseNodeInfo ¶
func ParsePodInfo ¶
Types ¶
type AtomicObject ¶
type AtomicObject interface {
GetObjectName() string
}
type ContainerInfo ¶
type ContainerObject ¶
type ContainerObject struct { Namespace string PodName string PodUID string PodIP string NodeName string NodeIP string ContainerRuntime string ContainerId string ContainerName string }
func (*ContainerObject) GetObjectName ¶
func (c *ContainerObject) GetObjectName() string
type DaemonSetObject ¶
func (*DaemonSetObject) GetObjectName ¶
func (d *DaemonSetObject) GetObjectName() string
type DeploymentObject ¶
func (*DeploymentObject) GetObjectName ¶
func (d *DeploymentObject) GetObjectName() string
type NamespaceObject ¶
type NamespaceObject struct {
Namespace string
}
func (*NamespaceObject) GetObjectName ¶
func (p *NamespaceObject) GetObjectName() string
type NodeObject ¶
type NodeObject struct { NodeName string NodeInternalIP string HostName string ContainerID string ContainerRuntime string }
func (*NodeObject) GetObjectName ¶
func (n *NodeObject) GetObjectName() string
type PodObject ¶
type PodObject struct { Namespace string PodName string PodUID string PodIP string NodeName string NodeIP string Containers []ContainerInfo }
func (*PodObject) GetObjectName ¶
func (*PodObject) GetSubObjects ¶
func (p *PodObject) GetSubObjects() []ContainerObject
type SubExpInfo ¶
Click to show internal directories.
Click to hide internal directories.