Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventsAPI ¶
type EventsAPI struct {
// contains filtered or unexported fields
}
EventsAPI handles requests to the /events path
func NewEventsAPI ¶
NewEventsAPI provisions an events API with its required resources
type InstallAPI ¶
type InstallAPI struct {
// contains filtered or unexported fields
}
InstallAPI handles requests to the /install path for sensor installation
func NewInstallAPI ¶
func NewInstallAPI(tokenProcessor token.Processor, eventOutput output.Output, verifiers []auth.Verifier) (InstallAPI, error)
NewInstallAPI provisions a sensor API with its required resources
func (InstallAPI) Handle ¶
func (installAPI InstallAPI) Handle(responseWriter http.ResponseWriter, request *http.Request)
Handle validates and processes install requests
type InstallRequest ¶
InstallRequest is what the sensor sends in the HTTP body to request installation
Click to show internal directories.
Click to hide internal directories.