Documentation ¶
Index ¶
- Constants
- func AccessList(c *gin.Context)
- func ActivityStream(c *gin.Context)
- func AddProject(c *gin.Context)
- func GetProject(c *gin.Context)
- func GetProjects(c *gin.Context)
- func Middleware(c *gin.Context)
- func PatchProject(c *gin.Context)
- func Playbooks(c *gin.Context)
- func ProjectUpdates(c *gin.Context)
- func RemoveProject(c *gin.Context)
- func SCMUpdate(c *gin.Context)
- func SCMUpdateInfo(c *gin.Context)
- func Teams(c *gin.Context)
- func UpdateProject(c *gin.Context)
Constants ¶
const ( CTXProject = "project" CTXUser = "user" CTXProjectID = "project_id" )
Keys for project releated items stored in the Gin Context
Variables ¶
This section is empty.
Functions ¶
func AccessList ¶
AccessList returns the list of teams and users that is able to access current project object in the gin context
func ActivityStream ¶
ActivityStream returns list of activities associated with project object that is in the gin.Context TODO: not complete
func AddProject ¶
AddProject is a Gin handler function which creates a new project using request payload. This accepts Project model.
func Middleware ¶
Middleware generates a middleware handler function that works inside of a Gin request. This function takes CTXProjectID from Gin Context and retrieves project data from the collection and store credential data under key CTXProject in Gin Context
func PatchProject ¶ added in v0.0.3
PatchProject partially updates a project this only updates given files in the request playload
func ProjectUpdates ¶
ProjectUpdates is a Gin handler function which returns project update jobs
func RemoveProject ¶
RemoveProject is a Gin handler function which removes a project object from the database
func SCMUpdateInfo ¶ added in v0.0.4
SCMUpdateInfo returns whether a project can be updated or not
func Teams ¶
Teams returns the list of teams that has permission to access project object in the gin.Context
func UpdateProject ¶
UpdateProject is a Gin handler function which updates a project 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.