Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Endpoints = api.Endpoints{ api.Endpoint{ Name: `CMDB Authenticator`, Path: `/v2/cmdb/authenticate/{host}`, Method: `GET`, HandlerFunc: SetAuthToken, Protected: false, }, api.Endpoint{ Name: `CMDB Event Logger`, Path: `/v2/cmdb/event/create/{host}`, Method: `POST`, HandlerFunc: CreateEvent, Protected: false, }, }
Endpoints is a collection of URL path-to-handler-function mappings.
Functions ¶
func CreateEvent ¶
func CreateEvent(w http.ResponseWriter, r *http.Request)
CreateEvent writes an event to the datastore event log.
func SetAuthToken ¶
func SetAuthToken(w http.ResponseWriter, r *http.Request)
SetauthToken authenticates client using basic authentication and issues a token for API authentication if successful.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.