acl

package
v0.9.25 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2018 License: BSD-2-Clause Imports: 1 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(str string) (r Rights)

func (*Acl) FormatDisplayAcl added in v0.9.5

func (a *Acl) FormatDisplayAcl(verbosity string) (i interface{})

func (*Acl) Set

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

func (*Acl) SetOwner

func (a *Acl) SetOwner(str string)

func (*Acl) UnSet

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

type DisplayAcl added in v0.9.5

type DisplayAcl 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"`
	Public publicAcl `bson:"public" json:"public"`
}

ACL struct that is returned to user for verbosity = minimal (default)

type DisplayVerboseAcl added in v0.9.5

type DisplayVerboseAcl struct {
	Owner  user.User   `bson:"owner" json:"owner"`
	Read   []user.User `bson:"read" json:"read"`
	Write  []user.User `bson:"write" json:"write"`
	Delete []user.User `bson:"delete" json:"delete"`
	Public publicAcl   `bson:"public" json:"public"`
}

ACL struct that is returned to user for verbosity = full

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