Documentation
¶
Index ¶
- Constants
- func ActivityStream(c *gin.Context)
- func AddHost(c *gin.Context)
- func AllGroups(c *gin.Context)
- func GetHost(c *gin.Context)
- func GetHosts(c *gin.Context)
- func Groups(c *gin.Context)
- func Middleware(c *gin.Context)
- func PatchHost(c *gin.Context)
- func RemoveHost(c *gin.Context)
- func UpdateHost(c *gin.Context)
- func VariableData(c *gin.Context)
Constants ¶
const ( CTXHost = "host" CTXUser = "user" CTXHostID = "host_id" )
Keys for credential releated items stored in the Gin Context
Variables ¶
This section is empty.
Functions ¶
func ActivityStream ¶
ActivityStream is a Gin handler function which returns list of activities associated with credential object that is in the Gin Context TODO: not complete
func AddHost ¶
AddHost is a Gin handler function which creates a new host using request payload This accepts Host model.
func AllGroups ¶
AllGroups is a Gin handler function which returns parent groups of a host TODO: not implemented
func GetHosts ¶
GetHosts is Gin handler function which returns list of hosts This takes lookup parameters and order parameters to filter and sort output data
func Groups ¶
Groups is a Gin handler function which returns parent group of the host TODO: not implemented
func Middleware ¶
Middleware generates a middleware handler function that works inside of a Gin request. Middleware takes CTXHostID parameter from the Gin Context and fetches host data from the database it set host data under key CTXHost in the Gin Context
func PatchHost ¶ added in v0.0.3
PatchHost is a Gin handler function which partially updates a credential using request payload. This replaces specified fields in the database, empty "" fields will be removed from the database object. Unspecified fields will ignored.
func RemoveHost ¶
RemoveHost is a Gin handler function which removes a host object from the database
func UpdateHost ¶
UpdateHost is a handler function which updates a credential using request payload. This replaces all the fields in the database, empty "" fields and unspecified fields will be removed from the database object
func VariableData ¶
VariableData is a Gin Handler function which returns variables for the host as JSON formatted object.
Types ¶
This section is empty.