podnetwork

package
v0.0.0-...-5ec8c6b Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Status = "k8s.v1.cni.cncf.io/network-status"

Status is the name of the network status annotation

Variables

This section is empty.

Functions

This section is empty.

Types

type Network

type Network struct {
	Interface   string
	NetworkName string
}

Network represents the link between the pod, the interface name and the network attachment definition name

func Get

func Get(pod *corev1.Pod) ([]Network, error)

Get return a slice of Networks info taken from the network status annotation of the given pod.

Jump to

Keyboard shortcuts

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