darwin

package
v1.67.3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Rendered for darwin/amd64

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownCommand = errors.New("unknown command")

Functions

func NewHostinfoPlugin

func NewHostinfoPlugin(ctx agent.AgentContext, hostInfo common.HostInfo) agent.Plugin

func TestData added in v0.1.0

func TestData(t *testing.T)

Types

type HostInfoDarwin added in v1.67.3

type HostInfoDarwin struct {
	Distro        string `json:"distro"`
	KernelVersion string `json:"kernel_version"`

	AgentMode           string `json:"agent_mode"`
	ProductUuid         string `json:"product_uuid"`
	common.HostInfoData `mapstructure:",squash"`
}

HostInfoDarwin is the structure returned to the backend by HostinfoPlugin.

func (*HostInfoDarwin) SortKey added in v1.67.3

func (hip *HostInfoDarwin) SortKey() string

type HostinfoPlugin

type HostinfoPlugin struct {
	agent.PluginCommon
	common.HostInfo
	// contains filtered or unexported fields
}

HostinfoPlugin returns metadata of the host.

func (*HostinfoPlugin) Data

Data collects the hostinfo.

func (*HostinfoPlugin) Run

func (hip *HostinfoPlugin) Run()

Run the HostinfoPlugin.

Jump to

Keyboard shortcuts

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