types

package
v0.0.0-...-3d2ccb6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

View Source
const (
	INTERFACE_TYPE_HOST    = "host"
	INTERFACE_TYPE_SRIOV   = "sr-iov"
	INTERFACE_TYPE_UNKNOWN = "unknown"
	INTERFACE_TYPE_INVALID = "invalid"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CPUResponse

type CPUResponse struct {
	CPUSet string `json:"cpuset,omitempty"`
}

type HugepagesData

type HugepagesData struct {
	ContainerName string
	Request       int64
	Limit         int64
	Request1G     int64
	Limit1G       int64
	Request2M     int64
	Limit2M       int64
}

type HugepagesResponse

type HugepagesResponse struct {
	MyContainerName string
	Hugepages       []*HugepagesData
}

type InterfaceData

type InterfaceData struct {
	// DeviceType is similar to NetworkStatus.DeviceInfo.Type except:
	// - Don't need to check for "NetworkStatus.DeviceInfo != nil" before using
	// - Internally could be "unknown" or "invalid" while data is being processed
	// - Not all DPs/CNIs support Device-Info-Spec, so NetworkStatus.DeviceInfo may be nil
	// - For NetworkStatus.DeviceInfo.Type of "pci", DeviceType may be "host" or "sriov"
	DeviceType    string                 `json:"device-type,omitempty"`
	NetworkStatus nettypes.NetworkStatus `json:"network-status,omitempty"`
}

type InterfaceResponse

type InterfaceResponse struct {
	Interface []*InterfaceData
}

Jump to

Keyboard shortcuts

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