cni

package
v1.8.0-crc0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultusHandler

type MultusHandler struct {
}

func (*MultusHandler) BuildKeys

func (m *MultusHandler) BuildKeys(flow config.GenericMap, rule *api.K8sRule, secNets []api.SecondaryNetwork) []SecondaryNetKey

func (*MultusHandler) GetPodUniqueKeys

func (m *MultusHandler) GetPodUniqueKeys(pod *v1.Pod, secNets []api.SecondaryNetwork) ([]string, error)

func (*MultusHandler) Manages

func (m *MultusHandler) Manages(indexKey string) bool

type NetStatItem

type NetStatItem struct {
	Name      string   `json:"name"`
	Interface string   `json:"interface"`
	IPs       []string `json:"ips"`
	MAC       string   `json:"mac"`
}

func (*NetStatItem) Keys

func (n *NetStatItem) Keys(snConfig api.SecondaryNetwork) []string

type OVNPlugin

type OVNPlugin struct {
	Plugin
}

func (*OVNPlugin) GetNodeIPs

func (o *OVNPlugin) GetNodeIPs(node *v1.Node) []string

type Plugin

type Plugin interface {
	GetNodeIPs(node *v1.Node) []string
}

type SecondaryNetKey

type SecondaryNetKey struct {
	NetworkName string
	Key         string
}

func UDNKey

func UDNKey(label, ip string) SecondaryNetKey

type UDNHandler

type UDNHandler struct {
}

func (*UDNHandler) BuildKeys

func (m *UDNHandler) BuildKeys(flow config.GenericMap, rule *api.K8sRule) []SecondaryNetKey

func (*UDNHandler) GetPodUniqueKeys

func (m *UDNHandler) GetPodUniqueKeys(pod *v1.Pod) ([]string, error)

func (*UDNHandler) Manages

func (m *UDNHandler) Manages(indexKey string) bool

Jump to

Keyboard shortcuts

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