-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathobject.go
More file actions
24 lines (20 loc) · 840 Bytes
/
object.go
File metadata and controls
24 lines (20 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Package rbac For a system that implements RBAC, the objects ANSI INCITS 359-2004
// can represent information containers (e.g., files, directories, in an operating system,
// and/or columns, rows, tables, and views within a database management system)
package rbac
import (
"github.com/flannel-dev-lab/RBAC/database"
"github.com/flannel-dev-lab/RBAC/vars"
)
// RBACObject Exposes the RBAC object methods
type RBACObject struct {
DBService database.DatabaseService
}
// CreateObject Create an Object
func (rbacObject *RBACObject) CreateObject(name, description string) (vars.Object, error) {
return rbacObject.DBService.CreateObject(name, description)
}
// RemoveObject Remove an existing Object
func (rbacObject *RBACObject) RemoveObject(objectName string) (bool, error) {
return rbacObject.DBService.RemoveObject(objectName)
}