info

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package info provides static information about the host (e.g., labels, IDs).

Index

Constants

View Source
const (
	StateNameDaemon = "daemon"

	StateKeyDaemonVersion = "daemon_version"
	StateKeyMacAddress    = "mac_address"
	StateKeyPackages      = "packages"

	StateNameAnnotations = "annotations"
)
View Source
const Name = "info"

Variables

This section is empty.

Functions

func New

func New(annotations map[string]string) components.Component

Types

type Output

type Output struct {
	DaemonVersion string `json:"daemon_version"`
	MacAddress    string `json:"mac_address"`
}

func ParseOutputJSON

func ParseOutputJSON(data []byte) (*Output, error)

func (*Output) JSON

func (o *Output) JSON() ([]byte, error)

Jump to

Keyboard shortcuts

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