Documentation
¶
Index ¶
Constants ¶
const ( // ProviderKubelet is a constant to distinguish that topology hint comes // from parameters passed to CRI create/update requests from Kubelet. ProviderKubelet = "kubelet" )
Variables ¶
This section is empty.
Functions ¶
func FindGivenSysFsDevice ¶
FindGivenSysFsDevice returns the physical device with the given device type, major, and minor numbers.
func FindSysFsDevice ¶
FindSysFsDevice for given argument returns physical device where it is linked to. For device nodes it will return path for device itself. For regular files or directories this function returns physical device where this inode resides (storage device). If result device is a virtual one (e.g. tmpfs), error will be returned. For non-existing path, no error returned and path is empty.
Types ¶
type Hints ¶
Hints represents set of hints collected from multiple providers.
func MergeTopologyHints ¶
MergeTopologyHints combines org and hints.
func NewTopologyHints ¶
NewTopologyHints return array of hints for the main device and its depended devices (e.g. RAID).
func (Hints) ResolvePartialHints ¶
ResolvePartialHints resolves NUMA-only hints to CPU hints using the given function.