acl

package
v0.9.22 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: BSD-2-Clause Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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