acl

package
v0.9.70-dev Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: BSD-2-Clause Imports: 0 Imported by: 0

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"`
}

Acl struct

func (*Acl) Check

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

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 Rights

type Rights map[string]bool

Jump to

Keyboard shortcuts

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