Documentation ¶
Index ¶
- Constants
- func ActivityStream(c *gin.Context)
- func AddOrganization(c *gin.Context)
- func GetAdmins(c *gin.Context)
- func GetCredentials(c *gin.Context)
- func GetInventories(c *gin.Context)
- func GetOrganization(c *gin.Context)
- func GetOrganizations(c *gin.Context)
- func GetProjects(c *gin.Context)
- func GetTeams(c *gin.Context)
- func GetUsers(c *gin.Context)
- func Middleware(c *gin.Context)
- func PatchOrganization(c *gin.Context)
- func RemoveOrganization(c *gin.Context)
- func UpdateOrganization(c *gin.Context)
Constants ¶
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 AddOrganization ¶
AddOrganization is a Gin handler function which creates a new organization using request payload. This accepts Organization model.
func GetCredentials ¶
GetCredentials returns credentials associated with an Organization
func GetInventories ¶
GetInventories returns all inventories an Organization
func GetOrganization ¶
GetOrganization is a Gin handler function which returns the organization as a JSON object
func GetOrganizations ¶
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 ¶
GetProjects returns all projects of an Organization
func Middleware ¶
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
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 ¶
RemoveOrganization is a Gin handler function which removes a organization object from the database
func UpdateOrganization ¶
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.