cniutils

package
v0.14.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cniutils provides helper functions to parse CNI results.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterBySandbox

func FilterBySandbox(sandbox string, ifaces ...*types100.Interface) (in, out []*types100.Interface)

FilterBySandbox returns scans the provided list of interfaces and returns two lists: the first are a list of interfaces with the provided sandboxID, the second are the other interfaces not in that sandboxID.

func IfacesWithName

func IfacesWithName(name string, ifaces ...*types100.Interface) []*types100.Interface

IfacesWithName scans the provided list of ifaces and returns the ones with the provided name.

func VMTapPair

func VMTapPair(result *types100.Result, vmID string) (vmIface, tapIface *types100.Interface, err error)

VMTapPair takes a CNI result and returns the vm iface and the tap iface corresponding to the provided vmID. See the vmconf package docs for details on the expected vm and tap iface configurations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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