pod

package
v0.0.0-...-984f6f0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerCtx

type ContainerCtx struct {
	Name   string
	ID     string
	Pid    string
	NSPath string
	State  criv1.ContainerState
}

type Manager

type Manager interface {
	UpsertPod(nsn types.NamespacedName, pod *corev1.Pod)
	DeletePod(nsn types.NamespacedName)
	GetPod(nsn types.NamespacedName) (*PodCtx, error)
	ListPods() map[string]PodCtx
	UpsertContainer(nsn types.NamespacedName, containerName string, c *ContainerCtx)
}

func NewManager

func NewManager() Manager

type PodCtx

type PodCtx struct {
	HostIP           string
	HostConnectivity invv1alpha1.HostConnectivity
	Containers       map[string]ContainerCtx
}

Jump to

Keyboard shortcuts

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