acl

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2014 License: BSD-2-Clause Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acl

type Acl struct {
	Owner  string   `bson:"owner" json:"owner"`
	Read   []string `bson:"read" json:"read"`
	Write  []string `bson:"write" json:"write"`
	Delete []string `bson:"delete" json:"delete"`
}

Node.Acl struct

func (*Acl) Check

func (a *Acl) Check(uuid string) (r Rights)

func (*Acl) Set

func (a *Acl) Set(uuid string, r Rights)

func (*Acl) SetOwner

func (a *Acl) SetOwner(uuid string)

func (*Acl) UnSet

func (a *Acl) UnSet(uuid string, r Rights)

type Rights

type Rights map[string]bool

Jump to

Keyboard shortcuts

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