Documentation
¶
Index ¶
- type Config
- type ModelRow
- type PolicyRow
- type Store
- func (store *Store) Build(options permissions.StoreOptions) (err error)
- func (store *Store) Close() (err error)
- func (store *Store) RemoveRole(ctx context.Context, name string) (err error)
- func (store *Store) Role(ctx context.Context, name string) (role *permissions.Role, err error)
- func (store *Store) Roles(ctx context.Context) (roles []*permissions.Role, err error)
- func (store *Store) SaveRole(ctx context.Context, role *permissions.Role) (err error)
- func (store *Store) UserBindRoles(ctx context.Context, userId string, roleNames ...string) (err error)
- func (store *Store) UserRoles(ctx context.Context, userId string) (roles []*permissions.Role, err error)
- func (store *Store) UserUnbindRoles(ctx context.Context, userId string, roleNames ...string) (err error)
- type TableName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModelRow ¶
type PolicyRow ¶
type Store ¶
func (*Store) Build ¶
func (store *Store) Build(options permissions.StoreOptions) (err error)
func (*Store) RemoveRole ¶
func (*Store) UserBindRoles ¶
Click to show internal directories.
Click to hide internal directories.