roles

package
v0.0.0-...-88c5504 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(au models.User, body []byte) (int, []byte)

Create : responds to POST /roles/ by creating a role on the data store

func Delete

func Delete(au models.User, body []byte) (int, []byte)

Delete : responds to DELETE /roles/:id: by deleting an existing role

func DeleteByID

func DeleteByID(au models.User, id string) (int, []byte)

DeleteByID : responds to DELETE /roles/:id: by deleting an existing role

func Get

func Get(au models.User, id string) (int, []byte)

Get : responds to GET /roles/:name/ with the role details

func List

func List(au models.User) (int, []byte)

List : responds to GET /roles/ with a list of all roles

Types

This section is empty.

Jump to

Keyboard shortcuts

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