# Functions
NewAckCmd creates a new api command.
NewAuthWithConfig returns a Kibana client that will:
- Send the API Key on every HTTP request.
NewCheckinCmd creates a new api command.
NewEnrollCmd creates a new EnrollCmd.
NewFleetAuthRoundTripper wrap an existing http.RoundTripper and adds the API in the header.
NewFleetUserAgentRoundTripper returns a FleetUserAgentRoundTripper that actually wrap the existing UserAgentRoundTripper with a specific string.
NewWithConfig takes a Kibana configuration and create a kibana.client with the appropriate tripper.
NewWithRawConfig create a non authenticated clients.
# Constants
PermanentEnroll is default enrollment type, by default an Agent is permanently enroll to Agent.
# Variables
ErrInvalidAPIKey is returned when authentication fail to fleet.
ErrTooManyRequests is received when the remote server is overloaded.
# Structs
AckCmd is a fleet API command.
AckEvent is an event sent in an ACK request.
AckRequest consists of multiple actions acked to fleet ui.
AckResponse is the response send back from the server.
ActionConfigChange is a request to apply a new.
ActionUnenroll is a request for agent to unhook from fleet.
ActionUnknown is an action that is not know by the current version of the Agent and we don't want to return an error at parsing time but at execution time we can report or ignore.
CheckinCmd is a fleet API command.
CheckinRequest consists of multiple events reported to fleet ui.
CheckinResponse is the response send back from the server which contains all the action that need to be executed or proxy to running processes.
EnrollCmd is the command to be executed to enroll an elastic-agent into Fleet.
EnrollItemResponse item response.
EnrollRequest is the data required to enroll the elastic-agent into Fleet.
EnrollResponse is the data received after enrolling an Agent into fleet.
FleetAuthRoundTripper allow all calls to be authenticated using the api key.
FleetUserAgentRoundTripper adds the Fleet user agent.
Metadata is a all the metadata send or received from the elastic-agent.
# Interfaces
Action base interface for all the implemented action from the fleet API.
SerializableEvent is a representation of the event to be send to the Fleet API via the checkin endpoint, we are liberal into what we accept to be send you only need a type and be able to be serialized into JSON.
# Type aliases
Actions is a list of Actions to executes and allow to unmarshal heterogenous action type.
EnrollType is the type of enrollment to do with the elastic-agent.
Time is a custom time that impose the serialization format.