info

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package info implements static information display.

Index

Constants

View Source
const (
	Name        = "info"
	Description = "Provides static information about the host (e.g., labels, IDs)."
)
View Source
const (
	StateNameDaemon = "daemon"

	StateKeyDaemonVersion = "daemon_version"
	StateKeyMacAddress    = "mac_address"

	StateNameAnnotations = "annotations"
)

Variables

View Source
var Tags = []string{"info"}

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