nodeutil

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package nodeutil provides util for machine (vm) info, i.e. uid, net addr

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeInfo

func GetNodeInfo(cfg pb.NodeConfig, bindAddr string) (*pb.NodeInfo, error)

GetNode returns node id, capacity, start & boot time that is needed when register agent and heartbeat

func Hostname

func Hostname() string

func NewUID

func NewUID() string

func StartTime

func StartTime() time.Time

StartTime is the process start time

func UID

func UID() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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