Documentation
¶
Index ¶
- func CreateMacvlanNetworkAttachmentDefinition(name string, namespace string) netattdefv1.NetworkAttachmentDefinition
- func CreateSriovNetwork(clientSet *testclient.ClientSet, intf *sriovv1.InterfaceExt, name string, ...) error
- func CreateSriovPolicy(clientSet *testclient.ClientSet, generatedName string, ...) (*sriovv1.SriovNetworkNodePolicy, error)
- func GetNicsByPrefix(pod *k8sv1.Pod, ifcPrefix string) ([]string, error)
- func GetSriovNicIPs(pod *k8sv1.Pod, ifcName string) ([]string, error)
- type Network
- type SriovNetworkOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMacvlanNetworkAttachmentDefinition ¶
func CreateMacvlanNetworkAttachmentDefinition(name string, namespace string) netattdefv1.NetworkAttachmentDefinition
Return a definition of a macvlan NetworkAttachmentDefinition name name namespace namespace
func CreateSriovNetwork ¶
func CreateSriovNetwork(clientSet *testclient.ClientSet, intf *sriovv1.InterfaceExt, name string, namespace string, operatorNamespace string, resourceName string, ipam string, options ...SriovNetworkOptions) error
func CreateSriovPolicy ¶
func CreateSriovPolicy(clientSet *testclient.ClientSet, generatedName string, operatorNamespace string, sriovDevice string, testNode string, numVfs int, resourceName string, deviceType string, options ...func(*sriovv1.SriovNetworkNodePolicy)) (*sriovv1.SriovNetworkNodePolicy, error)
CreateSriovPolicy creates a SriovNetworkNodePolicy and returns it
func GetNicsByPrefix ¶
GetNicsByPrefix returns a list of pod nic names, filtered by the given nic name prefix ifcPrefix
Types ¶
type SriovNetworkOptions ¶
type SriovNetworkOptions func(*sriovv1.SriovNetwork)
Click to show internal directories.
Click to hide internal directories.