organizations

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CTXOrganization   = "organization"
	CTXOrganizationID = "organization_id"
	CTXUser           = "user"
)

Keys for credential releated items stored in the Gin Context

Variables

This section is empty.

Functions

func ActivityStream

func ActivityStream(c *gin.Context)

TODO: not complete

func AddOrganization

func AddOrganization(c *gin.Context)

AddOrganization is a Gin handler function which creates a new organization using request payload. This accepts Organization model.

func GetAdmins

func GetAdmins(c *gin.Context)

GetAdmins returns an Organization admins

func GetCredentials

func GetCredentials(c *gin.Context)

GetCredentials returns credentials associated with an Organization

func GetInventories

func GetInventories(c *gin.Context)

GetInventories returns all inventories an Organization

func GetOrganization

func GetOrganization(c *gin.Context)

GetOrganization is a Gin handler function which returns the organization as a JSON object

func GetOrganizations

func GetOrganizations(c *gin.Context)

GetOrganizations is a Gin handler function which returns list of organization This takes lookup parameters and order parameters to filter and sort output data

func GetProjects

func GetProjects(c *gin.Context)

GetProjects returns all projects of an Organization

func GetTeams

func GetTeams(c *gin.Context)

GetTeams will return an Organization Teams

func GetUsers

func GetUsers(c *gin.Context)

GetUsers Returns all Organization users

func Middleware

func Middleware(c *gin.Context)

Middleware generates a middleware handler function that works inside of a Gin request. This function takes CTXOrganizationID from Gin Context and retrieves organization data from the collection and store organization data under key CTXOrganization in Gin Context

func PatchOrganization added in v0.0.3

func PatchOrganization(c *gin.Context)

PatchOrganization is a Gin handler function which partially updates a organization using request payload. This replaces specifed fields in the data, empty "" fields will be removed from the database object. Unspecified fields will be ignored.

func RemoveOrganization

func RemoveOrganization(c *gin.Context)

RemoveOrganization is a Gin handler function which removes a organization object from the database

func UpdateOrganization

func UpdateOrganization(c *gin.Context)

UpdateOrganization is a Gin handler function which updates a organization using request payload. This replaces all the fields in the database, empty "" fields and unspecified fields will be removed from the database object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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