Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain interface { AddRoleBinding(ctx context.Context, rb entities.RoleBinding) (*entities.RoleBinding, error) RemoveRoleBinding(ctx context.Context, userId repos.ID, resourceRef string) error RemoveRoleBindingsForResource(ctx context.Context, resourceRef string) error UpdateRoleBinding(ctx context.Context, rb entities.RoleBinding) (*entities.RoleBinding, error) GetRoleBinding(ctx context.Context, userId repos.ID, resourceRef string) (*entities.RoleBinding, error) ListRoleBindingsForResource(ctx context.Context, resourceType t.ResourceType, resourceRef string) ([]*entities.RoleBinding, error) ListRoleBindingsForUser(ctx context.Context, userId repos.ID, resourceType *t.ResourceType) ([]*entities.RoleBinding, error) Can(ctx context.Context, userId repos.ID, resourceRefs []string, action t.Action) (bool, error) }
type UnAuthorizedError ¶
type UnAuthorizedError struct {
// contains filtered or unexported fields
}
func (UnAuthorizedError) Error ¶
func (e UnAuthorizedError) Error() string
Click to show internal directories.
Click to hide internal directories.