Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Objects is the bucket that contains all Objects. Objects db.Bucket = "object-objects" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Object ¶
type Object struct { // Json contains arbitrary text. JSON string `json:"json,omitempty"` // Perms defines the permissions for the object. Perms util.Permissions `json:"perms,omitempty"` }
Object is an object containing its own permissions.
func (*Object) ReadAuthorized ¶
ReadAuthorized determines if a user is authorized to use an object.
func (*Object) WriteAuthorized ¶
WriteAuthorized determines if a user is authorized to write an object.
Click to show internal directories.
Click to hide internal directories.