Documentation ¶
Index ¶
- type Store
- func (s *Store) AssignRole(ctx context.Context, logger logx.Logger, roleName, id, namespace string) error
- func (s *Store) AssignRoleToGroup(ctx context.Context, logger logx.Logger, roleName, id string) error
- func (s *Store) CreateRole(ctx context.Context, logger logx.Logger, name string, ...) (perm.Role, error)
- func (s *Store) DeleteRole(ctx context.Context, logger logx.Logger, roleName string) error
- func (s *Store) HasPermission(ctx context.Context, logger logx.Logger, query repos.HasPermissionQuery) (bool, error)
- func (s *Store) HasRole(ctx context.Context, logger logx.Logger, query repos.HasRoleQuery) (bool, error)
- func (s *Store) HasRoleForGroup(ctx context.Context, logger logx.Logger, query repos.HasRoleForGroupQuery) (bool, error)
- func (s *Store) ListResourcePatterns(ctx context.Context, logger logx.Logger, query repos.ListResourcePatternsQuery) ([]string, error)
- func (s *Store) ListRolePermissions(ctx context.Context, logger logx.Logger, query repos.ListRolePermissionsQuery) ([]perm.Permission, error)
- func (s *Store) UnassignRole(ctx context.Context, logger logx.Logger, roleName, id, namespace string) error
- func (s *Store) UnassignRoleFromGroup(ctx context.Context, logger logx.Logger, roleName, groupID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) AssignRole ¶
func (*Store) AssignRoleToGroup ¶
func (*Store) CreateRole ¶
func (*Store) DeleteRole ¶
func (*Store) HasPermission ¶
func (*Store) HasRoleForGroup ¶
func (*Store) ListResourcePatterns ¶
func (*Store) ListRolePermissions ¶
func (s *Store) ListRolePermissions( ctx context.Context, logger logx.Logger, query repos.ListRolePermissionsQuery, ) ([]perm.Permission, error)
func (*Store) UnassignRole ¶
Click to show internal directories.
Click to hide internal directories.