hosts

package
v0.3.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
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

func ActivityStream(c *gin.Context)

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

func AddHost(c *gin.Context)

AddHost is a Gin handler function which creates a new host using request payload This accepts Host model.

func AllGroups

func AllGroups(c *gin.Context)

AllGroups is a Gin handler function which returns parent groups of a host TODO: not implemented

func GetHost

func GetHost(c *gin.Context)

GetHost is a Gin Handler function, returns the host as a JSON object

func GetHosts

func GetHosts(c *gin.Context)

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

func Groups(c *gin.Context)

Groups is a Gin handler function which returns parent group of the host TODO: not implemented

func Middleware

func Middleware(c *gin.Context)

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

func PatchHost(c *gin.Context)

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

func RemoveHost(c *gin.Context)

RemoveHost is a Gin handler function which removes a host object from the database

func UpdateHost

func UpdateHost(c *gin.Context)

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

func VariableData(c *gin.Context)

VariableData is a Gin Handler function which returns variables for the host as JSON formatted object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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