Documentation
¶
Index ¶
- Constants
- func AccessList(c *gin.Context)
- func ActivityStream(c *gin.Context)
- func AddTeam(c *gin.Context)
- func Credentials(c *gin.Context)
- func GetTeam(c *gin.Context)
- func GetTeams(c *gin.Context)
- func Middleware(c *gin.Context)
- func PatchTeam(c *gin.Context)
- func Projects(c *gin.Context)
- func RemoveTeam(c *gin.Context)
- func UpdateTeam(c *gin.Context)
- func Users(c *gin.Context)
Constants ¶
const ( CTXTeam = "team" CTXUser = "user" CTXTeamID = "team_id" )
Keys for credential releated items stored in the Gin Context
Variables ¶
This section is empty.
Functions ¶
func AccessList ¶
func ActivityStream ¶
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 Credentials ¶
Credentials is Gin handler function which returns credentials associated with a team
func GetTeams ¶
GetTeams is a Gin handler function which returns list of teams This takes lookup parameters and order parameters to filter and sort output data
func Middleware ¶
Middleware generates a middleware handler function that works inside of a Gin request. This function takes CTXCCTXTeamIDredentialID from Gin Context and retrieves team data from the collection and store team data under key CTXTeam in Gin Context
func PatchTeam ¶
PatchTeam is a Gin handler function which partially updates a team 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 RemoveTeam ¶
RemoveTeam is a Gin handler function which removes a team object from the database
Types ¶
This section is empty.