info

package
v0.0.1-alpha4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: Apache-2.0 Imports: 8 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"

	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