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
Click to show internal directories.
Click to hide internal directories.