inventories

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
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 AccessList(c *gin.Context)

func ActivityStream

func ActivityStream(c *gin.Context)

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

func AddInventory(c *gin.Context)

AddInventory is a Gin handler function which creates a new inventory using request payload. This accepts Inventory model.

func GetInventories

func GetInventories(c *gin.Context)

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

func GetInventory(c *gin.Context)

GetInventory is a Gin handler function which returns the project as a JSON object

func Groups

func Groups(c *gin.Context)

Groups is a Gin Handler function which returns all the groups of an Inventory.

func Hosts

func Hosts(c *gin.Context)

Hosts is a Gin handler function which returns all hosts associated with the inventory.

func JobTemplates

func JobTemplates(c *gin.Context)

JobTemplates is a Gin Handler function which returns list of Job Templates that includes the inventory.

func Middleware

func Middleware(c *gin.Context)

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

func PatchInventory(c *gin.Context)

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

func RemoveInventory(c *gin.Context)

RemoveInventory is a Gin handler function which removes a inventory object from the database

func RootGroups

func RootGroups(c *gin.Context)

RootGroups is a Gin handler function which returns list of root groups of the inventory.

func Script

func Script(c *gin.Context)

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

func Tree(c *gin.Context)

Tree is a Gin handler function which generete a json tree of the inventory. TODO: complete

func UpdateInventory

func UpdateInventory(c *gin.Context)

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

func VariableData(c *gin.Context)

VariableData is a Gin Handler function which returns variable data for the inventory.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL