credentials

package
v0.3.3 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 (
	CTXCredential   = "credential"
	CTXCredentialID = "credential_id"
	CTXUser         = "user"
)

Keys for credential releated items stored in the Gin Context

Variables

This section is empty.

Functions

func AccessList

func AccessList(c *gin.Context)

AccessList is a Gin handler function, returns access list for specifed credential object

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 AddCredential

func AddCredential(c *gin.Context)

AddCredential is a Gin handler function which creates a new credential using request payload. This accepts Credential model.

func GetCredential

func GetCredential(c *gin.Context)

GetCredential is a Gin handler function which returns the credential as a JSON object

func GetCredentials

func GetCredentials(c *gin.Context)

GetCredentials is a Gin handler function which returns list of credentials 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 CTXCredentialID from Gin Context and retrieves credential data from the collection and store credential data under key CTXCredential in Gin Context

func OwnerTeams

func OwnerTeams(c *gin.Context)

OwnerTeams is a Gin hander function which returns the access control list of Teams that has permissions to access specifed credential object.

func OwnerUsers

func OwnerUsers(c *gin.Context)

OwnerUsers is a Gin handler function which returns the access control list of Users that has access to specifed credential object.

func PatchCredential

func PatchCredential(c *gin.Context)

PatchCredential is a Gin handler function which partially updates a credential 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 RemoveCredential

func RemoveCredential(c *gin.Context)

RemoveCredential is a Gin handler function which removes a credential object from the database

func UpdateCredential

func UpdateCredential(c *gin.Context)

UpdateCredential is a Gin handler function which updates a credential 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