Documentation ¶
Index ¶
Constants ¶
View Source
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 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.
func GetTopologyInfo ¶
func GetTopologyInfo(devs []string) (*pluginapi.TopologyInfo, error)
GetTopologyInfo returns topology information for the list of device nodes.
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 dependend devices (e.g. RAID).
Click to show internal directories.
Click to hide internal directories.