sriov

package
v0.0.0-...-6402844 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractNetworkNames

func ExtractNetworkNames(jsonData string) ([]string, error)

ExtractNetworkNames returns the name of the networks based on the pods network status annotations.

func ListNetworksByDeviceType

func ListNetworksByDeviceType(
	apiClient *clients.Settings,
	deviceType string,
) ([]string, error)

ListNetworksByDeviceType returns a list of sriov networks matching the policies device type.

Types

type NetworkInfo

type NetworkInfo struct {
	Name string `json:"name"`
}

NetworkInfo structure to store pod network information.

Jump to

Keyboard shortcuts

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