Documentation
¶
Index ¶
- Constants
- func AccessList(c *gin.Context)
- func ActivityStream(c *gin.Context)
- func AddCredential(c *gin.Context)
- func GetCredential(c *gin.Context)
- func GetCredentials(c *gin.Context)
- func Middleware(c *gin.Context)
- func OwnerTeams(c *gin.Context)
- func OwnerUsers(c *gin.Context)
- func PatchCredential(c *gin.Context)
- func RemoveCredential(c *gin.Context)
- func UpdateCredential(c *gin.Context)
Constants ¶
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 ¶
AccessList is a Gin handler function, returns access list for specifed credential object
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 AddCredential ¶
AddCredential is a Gin handler function which creates a new credential using request payload. This accepts Credential model.
func GetCredential ¶
GetCredential is a Gin handler function which returns the credential as a JSON object
func GetCredentials ¶
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 ¶
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 ¶
OwnerTeams is a Gin hander function which returns the access control list of Teams that has permissions to access specifed credential object.
func OwnerUsers ¶
OwnerUsers is a Gin handler function which returns the access control list of Users that has access to specifed credential object.
func PatchCredential ¶
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 ¶
RemoveCredential is a Gin handler function which removes a credential object from the database
func UpdateCredential ¶
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.