Add class to repository scope

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan
2016-11-15 17:14:31 -08:00
parent e10634f8c3
commit 01509db714
3 changed files with 10 additions and 3 deletions

View File

@@ -66,8 +66,9 @@ type UserInfo struct {
// Resource describes a resource by type and name.
type Resource struct {
Type string
Name string
Type string
Class string
Name string
}
// Access describes a specific action that is

View File

@@ -34,6 +34,7 @@ var (
// ResourceActions stores allowed actions on a named and typed resource.
type ResourceActions struct {
Type string `json:"type"`
Class string `json:"class"`
Name string `json:"name"`
Actions []string `json:"actions"`
}