Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeInfo ¶
type NodeInfo struct { Name string CreatedTime int64 Namespace string Kind string Role string Region string Zone string Size string InstanceType string OS string Provider string InstanceID string StorageSize int64 CPUCores int64 MemoryBytes int64 }
NodeInfo flats the k8s node information from labels, spec and status
func NewNodeInfo ¶
NewNodeInfo creates node from k8s node
func (NodeInfo) DatahubNode ¶
func (n NodeInfo) DatahubNode(clusterUID string) datahub_resources.Node
DatahubNode converts nodeInfo to Datahub Node
Click to show internal directories.
Click to hide internal directories.