danmep

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddIpvlanInterface

func AddIpvlanInterface(dnet *danmtypes.DanmNet, ep danmtypes.DanmEp) error

func ArePodsConnectedToNetwork

func ArePodsConnectedToNetwork(client danmclientset.Interface, dnet *danmtypes.DanmNet) (bool, danmtypes.DanmEp, error)

ArePodsConnectedToNetwork checks if there are any Pods currently in the system using the particular network. If there is at least, it returns true, and the spec of the first matching DanmEp.

func CidsByHost

func CidsByHost(client danmclientset.Interface, host string) (map[string]danmtypes.DanmEp, error)

CidsByHost returns a map of Eps The Eps in the map are indexed with the name of the K8s host their Pods are running on

func DeleteIpvlanInterface

func DeleteIpvlanInterface(ep danmtypes.DanmEp) error

DeleteIpvlanInterface deletes a Pod's IPVLAN network interface based on the related DanmEp

func DetermineHostDeviceName

func DetermineHostDeviceName(dnet *danmtypes.DanmNet) string

func FindByCid

func FindByCid(client danmclientset.Interface, cid string) ([]danmtypes.DanmEp, error)

FindByCid returns a map of Eps which belong to the same Pod

func PostProcessInterface

func PostProcessInterface(ep danmtypes.DanmEp, dnet *danmtypes.DanmNet) error

func PutDanmEp

func PutDanmEp(danmClient danmclientset.Interface, ep danmtypes.DanmEp) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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