teams

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
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 AccessList(c *gin.Context)

func ActivityStream

func ActivityStream(c *gin.Context)

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 AddTeam

func AddTeam(c *gin.Context)

AddTeam creates a new team

func Credentials

func Credentials(c *gin.Context)

Credentials is Gin handler function which returns credentials associated with a team

func GetTeam

func GetTeam(c *gin.Context)

GetTeam is a Gin handler function which returns the team as a JSON object

func GetTeams

func GetTeams(c *gin.Context)

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

func Middleware(c *gin.Context)

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

func PatchTeam(c *gin.Context)

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 Projects

func Projects(c *gin.Context)

Projects is a Gin handler function which returns projects associated with a team

func RemoveTeam

func RemoveTeam(c *gin.Context)

RemoveTeam is a Gin handler function which removes a team object from the database

func UpdateTeam

func UpdateTeam(c *gin.Context)

UpdateTeam will update the Job Template

func Users

func Users(c *gin.Context)

Users is a Gin handler function which returns users associated with a team

Types

This section is empty.

Jump to

Keyboard shortcuts

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