nodeinfo

package
v4.2.507+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

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

func NewNodeInfo(k8sNode corev1.Node) (NodeInfo, error)

NewNodeInfo creates node from k8s node

func (NodeInfo) DatahubNode

func (n NodeInfo) DatahubNode() datahub_resources.Node

DatahubNode converts nodeInfo to Datahub Node

Jump to

Keyboard shortcuts

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