haagentimpl

package
v0.0.0-...-e70f483 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 20 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package haagentimpl implements the haagentimpl component interface

Package haagentimpl implements a component to generate the 'ha_agent_metadata' metadata payload for inventory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Payload

type Payload struct {
	Hostname  string           `json:"hostname"`
	Timestamp int64            `json:"timestamp"`
	Metadata  *haAgentMetadata `json:"ha_agent_metadata"`
}

Payload handles the JSON unmarshalling of the metadata payload

func (*Payload) MarshalJSON

func (p *Payload) MarshalJSON() ([]byte, error)

MarshalJSON serialization a Payload to JSON

type Provides

type Provides struct {
	Comp                 haagent.Component
	Provider             runnerdef.Provider
	FlareProvider        flaretypes.Provider
	StatusHeaderProvider status.HeaderInformationProvider
	Endpoint             api.AgentEndpointProvider
}

Provides defines the output of the haagentimpl component

func NewComponent

func NewComponent(reqs Requires) (Provides, error)

NewComponent creates a new haagentimpl component

type Requires

type Requires struct {
	Log        log.Component
	Config     config.Component
	Serializer serializer.MetricSerializer
	HaAgent    haagentcomp.Component
	Hostname   hostnameinterface.Component
}

Requires defines the dependencies for the haagentimpl component

Jump to

Keyboard shortcuts

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