Documentation ¶
Overview ¶
Package securityagentimpl implements the securityagent metadata providers interface
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 map[string]interface{} `json:"security_agent_metadata"` }
Payload handles the JSON unmarshalling of the metadata payload
func (*Payload) MarshalJSON ¶
MarshalJSON serialization a Payload to JSON
func (*Payload) SplitPayload ¶
func (p *Payload) SplitPayload(_ int) ([]marshaler.AbstractMarshaler, error)
SplitPayload implements marshaler.AbstractMarshaler#SplitPayload.
In this case, the payload can't be split any further.
type Provides ¶
type Provides struct { Comp securityagent.Component MetadataProvider runnerimpl.Provider FlareProvider flaretypes.Provider Endpoint api.AgentEndpointProvider }
Provides defines the output of the securityagent metadata component
func NewComponent ¶
NewComponent creates a new securityagent metadata Component
type Requires ¶
type Requires struct { Log log.Component Config config.Component Serializer serializer.MetricSerializer // We need the authtoken to be created so we requires the comp. It will be used by configFetcher. AuthToken authtoken.Component }
Requires defines the dependencies for the securityagent metadata component
Click to show internal directories.
Click to hide internal directories.