info

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 10 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"
)

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)

Directories

Path Synopsis
Package id contains the ID for the info component.
Package id contains the ID for the info component.

Jump to

Keyboard shortcuts

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