Documentation
¶
Index ¶
- Constants
- func AccessList(c *gin.Context)
- func ActivityStream(c *gin.Context)
- func AddInventory(c *gin.Context)
- func GetInventories(c *gin.Context)
- func GetInventory(c *gin.Context)
- func Groups(c *gin.Context)
- func Hosts(c *gin.Context)
- func JobTemplates(c *gin.Context)
- func Middleware(c *gin.Context)
- func PatchInventory(c *gin.Context)
- func RemoveInventory(c *gin.Context)
- func RootGroups(c *gin.Context)
- func Script(c *gin.Context)
- func Tree(c *gin.Context)
- func UpdateInventory(c *gin.Context)
- func VariableData(c *gin.Context)
Constants ¶
const ( CTXInventory = "inventory" CTXUser = "user" CTXInventoryID = "inventory_id" )
Keys for credential releated items stored in the Gin Context
Variables ¶
This section is empty.
Functions ¶
func AccessList ¶
func ActivityStream ¶
ActivityStream is a Gin handler function which returns list of activities associated with inventory object that is in the Gin Context. TODO: not complete
func AddInventory ¶
AddInventory is a Gin handler function which creates a new inventory using request payload. This accepts Inventory model.
func GetInventories ¶
GetInventories is a Gin handler function which returns list of inventories This takes lookup parameters and order parameters to filter and sort output data.
func GetInventory ¶
GetInventory is a Gin handler function which returns the project as a JSON object
func JobTemplates ¶
JobTemplates is a Gin Handler function which returns list of Job Templates that includes the inventory.
func Middleware ¶
Middleware generates a middleware handler function that works inside of a Gin request. This function takes project_id parameter from Gin Context and fetches project data from the database this set project data under key project in Gin Context.
func PatchInventory ¶ added in v0.0.3
PatchInventory is a Gin handler function which partially updates a inventory using request payload. This replaces specified fields in the data, empty "" fields will be removed from the database object. unspecified fields will be ignored.
func RemoveInventory ¶
RemoveInventory is a Gin handler function which removes a inventory object from the database
func RootGroups ¶
RootGroups is a Gin handler function which returns list of root groups of the inventory.
func Script ¶
Script is a Gin Handler function which generates a ansible compatible inventory output note: we are not using var varname []string specially because output json must include [] for each array and {} for each object
func Tree ¶
Tree is a Gin handler function which generete a json tree of the inventory. TODO: complete
func UpdateInventory ¶
UpdateInventory is a Gin handler function which updates a credential using request payload. This replaces all the fields in the database, empty "" fiels and unspecified fields will be removed from the database.
func VariableData ¶
VariableData is a Gin Handler function which returns variable data for the inventory.
Types ¶
This section is empty.