Documentation ¶
Index ¶
- type MongoStore
- func (s *MongoStore) AddGroup(group string) error
- func (s *MongoStore) AddMember(group, member string) error
- func (s *MongoStore) GroupsOf(principal string, transitive bool) ([]string, error)
- func (s *MongoStore) HasGrant(principal, role, resource string, transitive bool) (bool, error)
- func (s *MongoStore) InsertGrant(principal, role, resource string) error
- func (s *MongoStore) PrincipalGrants(principal string, transitive bool) (roles, resources []string, err error)
- func (s *MongoStore) RemoveGrant(principal, role, resource string) error
- func (s *MongoStore) RemoveGroup(group string) error
- func (s *MongoStore) RemoveMember(group, member string) error
- func (s *MongoStore) ResourceGrants(resource string) (principals, roles []string, err error)
- func (s *MongoStore) RoleGrants(principal, resource string, transitive bool) (roles []string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoStore ¶
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)
Click to show internal directories.
Click to hide internal directories.