hosts

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivityStream

func ActivityStream(c *gin.Context)

TODO: not complete

func AddHost

func AddHost(c *gin.Context)

AddHost creates a new project

func AllGroups

func AllGroups(c *gin.Context)

TODO: not implemented

func GetHost

func GetHost(c *gin.Context)

GetHost returns the hsot as a JSON object

func GetHosts

func GetHosts(c *gin.Context)

GetHosts returns a JSON array of projects

func Groups

func Groups(c *gin.Context)

TODO: not implemented

func Middleware

func Middleware(c *gin.Context)

Middleware takes host_id parameter from gin.Context and fetches host data from the database it set host data under key host in gin.Context

func PatchHost

func PatchHost(c *gin.Context)

Patch will patch a Host from request values

func RemoveHost

func RemoveHost(c *gin.Context)

func UpdateHost

func UpdateHost(c *gin.Context)

update will update a Host from request values

func VariableData

func VariableData(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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