useragent

package
v0.47.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 6 modules, 23 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserAgent

func UserAgent(binaryNameCapitalized string, version, commit, buildTime string, additionalComments ...string) string

UserAgent takes the capitalized name of the current beat and returns an RFC compliant user agent string for that beat.

func UserAgentWithBeatTelemetry added in v0.21.1

func UserAgentWithBeatTelemetry(
	binaryNameCapitalized string,
	version string,
	mode AgentManagementMode,
	unprivileged AgentUnprivilegedMode,
	isFIPSDistribution bool,
	additionalComments ...string,
) string

Types

type AgentManagementMode added in v0.21.1

type AgentManagementMode int
const (
	// AgentManagementModeUnknown indicates that the management mode is unknown.
	AgentManagementModeUnknown AgentManagementMode = iota
	// AgentManagementModeStandalone indicates that the beat is not running under agent.
	AgentManagementModeStandalone
	// AgentManagementModeUnmanaged indicates that the beat is running under agent but not managed by Fleet.
	AgentManagementModeUnmanaged
	// AgentManagementModeManaged indicates that the beat is running under agent and managed by Fleet.
	AgentManagementModeManaged
)

func (AgentManagementMode) String added in v0.21.1

func (m AgentManagementMode) String() string

type AgentUnprivilegedMode added in v0.21.1

type AgentUnprivilegedMode int8

AgentUnprivilegedMode indicates whether the beat is running in unprivileged mode.

const (
	// AgentUnprivilegedModeUnknown indicates privilege mode is unknown.
	AgentUnprivilegedModeUnknown AgentUnprivilegedMode = iota
	// AgentUnprivilegedModeUnprivileged indicates that the beat is running in unprivileged mode.
	AgentUnprivilegedModeUnprivileged
	// AgentUnprivilegedModePrivileged indicates that the beat is running in privileged mode.
	AgentUnprivilegedModePrivileged
)

func (AgentUnprivilegedMode) String added in v0.21.1

func (m AgentUnprivilegedMode) String() string

Jump to

Keyboard shortcuts

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