Documentation ¶
Index ¶
- func Access(handler miruken.Handler, action any, constraints ...any) (bool, *promise.Promise[bool], error)
- type AccessDeniedError
- type Builder
- type It
- type Options
- type Required
- func (r *Required) AppliesTo(callback miruken.Callback) bool
- func (r *Required) Filters(binding miruken.Binding, callback any, composer miruken.Handler) ([]miruken.Filter, error)
- func (r *Required) InitWithTag(tag reflect.StructTag) error
- func (r *Required) Policy() any
- func (r *Required) Required() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessDeniedError ¶ added in v0.30.6
type AccessDeniedError struct {
Action any
}
AccessDeniedError indicates authorization failed.
func (*AccessDeniedError) Error ¶ added in v0.30.6
func (e *AccessDeniedError) Error() string
type Builder ¶
type Builder struct { miruken.CallbackBuilder // contains filtered or unexported fields }
Builder builds It callbacks.
type It ¶
type It struct { miruken.CallbackBase // contains filtered or unexported fields }
It authorizes callbacks contravariantly.
type Options ¶
type Options struct {
RequirePolicy bool
}
Options control the authorization process.
Click to show internal directories.
Click to hide internal directories.