libpod

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKubernetesAPIBlackhole added in v1.3.0

func AddKubernetesAPIBlackhole(pods *v1.PodList, containerName string)

func DeleteKubernetesAPIBlackhole added in v1.3.0

func DeleteKubernetesAPIBlackhole(pods *v1.PodList, containerName string)

func ForwardPorts added in v1.3.0

func ForwardPorts(pod *k8sv1.Pod, ports []string, stop chan struct{}, readyTimeout time.Duration) error

func GetCertsForPods added in v1.3.0

func GetCertsForPods(labelSelector, namespace, port string) ([][]byte, error)

GetCertsForPods returns the used certificates for all pods matching the label selector

func GetPodByVirtualMachineInstance added in v1.3.0

func GetPodByVirtualMachineInstance(vmi *v1.VirtualMachineInstance, namespace string) (*k8sv1.Pod, error)

func GetRunningPodByLabel

func GetRunningPodByLabel(label, labelType, namespace, node string) (*k8sv1.Pod, error)

func LookupComputeContainer added in v1.3.0

func LookupComputeContainer(pod *v1.Pod) *v1.Container

func LookupComputeContainerFromVmi added in v1.3.0

func LookupComputeContainerFromVmi(vmi *virtv1.VirtualMachineInstance) (*v1.Container, error)

func LookupContainer added in v1.3.0

func LookupContainer(pod *v1.Pod, containerName string) *v1.Container

func RenderHostPathPod

func RenderHostPathPod(
	podName, dir string, hostPathType v1.HostPathType, mountPropagation v1.MountPropagationMode, cmd, args []string,
) *v1.Pod

func RenderPod

func RenderPod(name string, cmd, args []string) *v1.Pod

func RenderPrivilegedPod

func RenderPrivilegedPod(name string, cmd, args []string) *v1.Pod

func RenderTargetcliPod

func RenderTargetcliPod(name, disksPVC string) *v1.Pod

func Run added in v1.4.0

func Run(pod *k8sv1.Pod, namespace string) (*k8sv1.Pod, error)

func RunCommandOnVmiPod added in v1.4.0

func RunCommandOnVmiPod(vmi *v1.VirtualMachineInstance, command []string) string

RunCommandOnVmiPod runs specified command on the virt-launcher pod

Types

type PodsByCreationTimestamp

type PodsByCreationTimestamp []v1.Pod

PodsByCreationTimestamp sorts a list of Pods by creation timestamp, using their names as a tie breaker.

func (PodsByCreationTimestamp) Len

func (o PodsByCreationTimestamp) Len() int

func (PodsByCreationTimestamp) Less

func (o PodsByCreationTimestamp) Less(i, j int) bool

func (PodsByCreationTimestamp) Swap

func (o PodsByCreationTimestamp) Swap(i, j int)

Jump to

Keyboard shortcuts

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