mongo

package
v0.0.0-...-f09bce2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2014 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoStore

type MongoStore struct {
	*mgo.Session
	// contains filtered or unexported fields
}

func DialMongoStore

func DialMongoStore(url string, dbname string) (*MongoStore, error)

func NewMongoStore

func NewMongoStore(session *mgo.Session, dbname string) (*MongoStore, error)

func (*MongoStore) AddGroup

func (s *MongoStore) AddGroup(group string) error

func (*MongoStore) AddMember

func (s *MongoStore) AddMember(group, member string) error

func (*MongoStore) GroupsOf

func (s *MongoStore) GroupsOf(principal string, transitive bool) ([]string, error)

func (*MongoStore) HasGrant

func (s *MongoStore) HasGrant(principal, role, resource string, transitive bool) (bool, error)

func (*MongoStore) InsertGrant

func (s *MongoStore) InsertGrant(principal, role, resource string) error

func (*MongoStore) PrincipalGrants

func (s *MongoStore) PrincipalGrants(principal string, transitive bool) (roles, resources []string, err error)

func (*MongoStore) RemoveGrant

func (s *MongoStore) RemoveGrant(principal, role, resource string) error

func (*MongoStore) RemoveGroup

func (s *MongoStore) RemoveGroup(group string) error

func (*MongoStore) RemoveMember

func (s *MongoStore) RemoveMember(group, member string) error

func (*MongoStore) ResourceGrants

func (s *MongoStore) ResourceGrants(resource string) (principals, roles []string, err error)

func (*MongoStore) RoleGrants

func (s *MongoStore) RoleGrants(principal, resource string, transitive bool) (roles []string, err error)

Jump to

Keyboard shortcuts

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