Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CrioRuntime ¶
type CrioRuntime struct {
// contains filtered or unexported fields
}
CrioRuntime runtime object
func NewCrioRuntime ¶
func NewCrioRuntime(endpoint string, timeOut time.Duration) (*CrioRuntime, error)
NewCrioRuntime instantiate a crio runtime object
func (*CrioRuntime) GetNetNS ¶
func (cr *CrioRuntime) GetNetNS(podSandboxID string) (string, error)
GetNetNS returns the network namespace of the given containerID. The ID supplied is typically the ID of a pod sandbox. This getter doesn't try to map non-sandbox IDs to their respective sandboxes.
func (*CrioRuntime) GetSandboxID ¶
func (cr *CrioRuntime) GetSandboxID(containerID string) (string, error)
GetSandboxID returns kubernete's crio sandbox container ID
type NameSpaceInfo ¶
type NamespacesInfo ¶
type NamespacesInfo struct {
NameSpaces []NameSpaceInfo
}
type PodStatusResponseInfo ¶
type PodStatusResponseInfo struct { SandboxId string RunTimeSpec RuneTimeSpecInfo }
type RuneTimeSpecInfo ¶
type RuneTimeSpecInfo struct {
Linux NamespacesInfo
}
Click to show internal directories.
Click to hide internal directories.