Versions in this module Expand all Collapse all v1 v1.0.0 Jul 24, 2026 Changes in this version + const UncataloguedProblemID + func RegisterGenerics(registry *Registry) error + func TypeURI(portal ErrorPortal, version, id string) (string, error) + type Catalog struct + func NewCatalog(portal ErrorPortal, entries ...CatalogEntry) *Catalog + func (c *Catalog) Add(entry CatalogEntry) + func (c *Catalog) AddGenerics() error + func (c *Catalog) AddType(problemType Type, endpoints ...CatalogEndpoint) error + func (c *Catalog) Entries() []CatalogEntry + func (c *Catalog) Lookup(id string) (CatalogEntry, bool) + func (c *Catalog) Portal() ErrorPortal + func (c *Catalog) ToCRDContent() []map[string]any + type CatalogEndpoint struct + Method string + Path string + func (e CatalogEndpoint) ToContent() map[string]any + type CatalogEntry struct + DataSchema map[string]any + Endpoints []CatalogEndpoint + ID string + Recoverable bool + Status int + Title string + TypeURI string + func (e CatalogEntry) ToCRDContent() map[string]any + type DuplicateTypeError struct + ID string + func (e *DuplicateTypeError) Error() string + type Error struct + Problem Problem + func NewError(problem Problem) *Error + func WrapError(problem Problem, cause error) *Error + func (e *Error) Error() string + func (e *Error) Unwrap() error + type ErrorPortal struct + Host string + Landscape string + Module string + Platform string + Scheme string + Service string + func LocalErrorPortal() ErrorPortal + type ErrorSink interface + Capture func(ctx context.Context, problem Problem) error + type InvalidSegmentError struct + Name string + Value string + func (e *InvalidSegmentError) Error() string + type LocalError struct + Portal ErrorPortal + Sink ErrorSink + func NewLocalError(sink ErrorSink) LocalError + func NewLocalErrorWithPortal(sink ErrorSink, portal ErrorPortal) LocalError + func (local LocalError) Wrap(ctx context.Context, cause error, stack string) (Problem, error) + type NoopErrorSink struct + func (NoopErrorSink) Capture(_ context.Context, _ Problem) error + type Problem struct + Data map[string]any + Detail *string + Instance *string + Recoverable bool + Status int + Title string + Type string + func FromObject(value any, options TransformOptions) Problem + func (p *Problem) UnmarshalJSON(data []byte) error + func (p Problem) Equal(other Problem) bool + func (p Problem) MarshalJSON() ([]byte, error) + func (p Problem) String() string + type Registry struct + func NewRegistry(portal ErrorPortal, types ...Type) (*Registry, error) + func (r *Registry) Entries() []Type + func (r *Registry) Lookup(id string) (Type, bool) + func (r *Registry) Portal() ErrorPortal + func (r *Registry) Register(problemType Type) error + func (r *Registry) Require(id string) (Type, error) + func (r *Registry) TypeURIFor(problemType Type) (string, error) + type TransformOptions struct + DefaultStatus int + DefaultVersion string + Portal ErrorPortal + Registry *Registry + func DefaultTransformOptions() TransformOptions + type Type struct + DataSchema map[string]any + ID string + Recoverable bool + Status int + Title string + Version string + func Conflict() Type + func EntityNotFound() Type + func GenericProblems() []Type + func InvalidJSON() Type + func Unauthenticated() Type + func Unauthorized() Type + func ValidationError() Type + type UnknownTypeError struct + ID string + func (e *UnknownTypeError) Error() string