useragent

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 23

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) (string, error)

Types

type AgentManagementMode added in v0.21.1

type AgentManagementMode int
const (
	// AgentManagementModeManaged indicates that the beat is managed by Fleet.
	AgentManagementModeManaged AgentManagementMode = iota
	// AgentManagementModeStandalone indicates that the beat is running in standalone mode.
	AgentManagementModeStandalone
)

func (AgentManagementMode) String added in v0.21.1

func (m AgentManagementMode) String() string

type AgentUnprivilegedMode added in v0.21.1

type AgentUnprivilegedMode bool

AgentUnprivilegedMode indicates whether the beat is running in unprivileged mode.

const (
	// AgentUnprivilegedModeUnprivileged indicates that the beat is running in unprivileged mode.
	AgentUnprivilegedModeUnprivileged AgentUnprivilegedMode = true
	// AgentUnprivilegedModePrivileged indicates that the beat is running in privileged mode.
	AgentUnprivilegedModePrivileged AgentUnprivilegedMode = false
)

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