nodeinfo

package
v2.12.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package nodeinfo provides information about current node.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeInfo

type NodeInfo struct {
	Container bool
	Distro    string
	MachineID string

	// Public/external address that can be used for scraping by Prometheus.
	PublicAddress string
}

NodeInfo contains node information.

func Get

func Get() *NodeInfo

Get returns node information for current node.

Jump to

Keyboard shortcuts

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