vmispec

package
v1.0.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InfoSourceDomain       string = "domain"
	InfoSourceGuestAgent   string = "guest-agent"
	InfoSourceMultusStatus string = "multus-status"
	InfoSourceDomainAndGA  string = InfoSourceDomain + ", " + InfoSourceGuestAgent
)

Variables

This section is empty.

Functions

func AddInfoSource added in v1.0.0

func AddInfoSource(infoSourceData, name string) string

func ContainsInfoSource added in v1.0.0

func ContainsInfoSource(infoSourceData, name string) bool

func FilterInterfacesSpec added in v0.51.0

func FilterInterfacesSpec(ifaces []v1.Interface, predicate func(i v1.Interface) bool) []v1.Interface

func FilterMultusNonDefaultNetworks added in v0.55.2

func FilterMultusNonDefaultNetworks(networks []v1.Network) []v1.Network

func FilterSRIOVInterfaces

func FilterSRIOVInterfaces(ifaces []v1.Interface) []v1.Interface

func FilterStatusInterfacesByNames added in v0.50.0

func FilterStatusInterfacesByNames(interfaces []v1.VirtualMachineInstanceNetworkInterface, names []string) []v1.VirtualMachineInstanceNetworkInterface

FilterStatusInterfacesByNames returns filtered slice of interfaces by the given slice of names. Matching by the interface 'Name' attribute.

func IndexInterfaceSpecByMac added in v0.50.0

func IndexInterfaceSpecByMac(interfaces []v1.Interface) map[string]v1.Interface

func IndexInterfaceSpecByName added in v0.50.0

func IndexInterfaceSpecByName(interfaces []v1.Interface) map[string]v1.Interface

func IndexNetworkSpecByName added in v1.0.0

func IndexNetworkSpecByName(networks []v1.Network) map[string]v1.Network

func InterfacesNames added in v0.50.0

func InterfacesNames(interfaces []v1.Interface) []string

InterfacesNames returns slice with the names of the given interfaces.

func IsPodNetworkWithBridgeBindingInterface added in v1.0.0

func IsPodNetworkWithBridgeBindingInterface(networks []v1.Network, ifaces []v1.Interface) bool

func IsPodNetworkWithMasqueradeBindingInterface

func IsPodNetworkWithMasqueradeBindingInterface(networks []v1.Network, ifaces []v1.Interface) bool

func IsSecondaryMultusNetwork added in v0.55.2

func IsSecondaryMultusNetwork(net v1.Network) bool

func LookUpDefaultNetwork added in v0.55.2

func LookUpDefaultNetwork(networks []v1.Network) *v1.Network

func LookupInterfaceByNetwork added in v0.50.0

func LookupInterfaceByNetwork(ifaces []v1.Interface, network *v1.Network) *v1.Interface

func LookupInterfaceStatusByMac added in v0.49.1

func LookupInterfaceStatusByMac(interfaces []v1.VirtualMachineInstanceNetworkInterface, macAddress string) *v1.VirtualMachineInstanceNetworkInterface

func LookupInterfaceStatusByName added in v0.50.0

func LookupInterfaceStatusByName(interfaces []v1.VirtualMachineInstanceNetworkInterface, name string) *v1.VirtualMachineInstanceNetworkInterface

func LookupPodNetwork added in v0.57.0

func LookupPodNetwork(networks []v1.Network) *v1.Network

func NetworksToHotplug added in v1.0.0

func NetworksToHotplug(networks []v1.Network, interfaceStatus []v1.VirtualMachineInstanceNetworkInterface) []v1.Network

func NetworksToHotplugWhosePodIfacesAreReady added in v1.0.0

func NetworksToHotplugWhosePodIfacesAreReady(vmi *v1.VirtualMachineInstance) []v1.Network

func NewInfoSource added in v1.0.0

func NewInfoSource(names ...string) string

func SRIOVInterfaceExist added in v0.55.2

func SRIOVInterfaceExist(ifaces []v1.Interface) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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