crioruntime

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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 NameSpaceInfo struct {
	Type string
	Path string
}

type NamespacesInfo

type NamespacesInfo struct {
	NameSpaces []NameSpaceInfo
}

type PodStatusResponseInfo

type PodStatusResponseInfo struct {
	SandboxId   string
	RunTimeSpec RuneTimeSpecInfo
}

type RuneTimeSpecInfo

type RuneTimeSpecInfo struct {
	Linux NamespacesInfo
}

Jump to

Keyboard shortcuts

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