provider

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package provider owns the shared, cause-free classification for injected DKIM2 providers and authorizers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFailure

func NewFailure(class FailureClass) error

NewFailure constructs a cause-free typed provider failure.

Types

type FailureClass

type FailureClass string

FailureClass identifies one closed external dependency failure.

const (
	// FailureTemporary identifies retryable provider unavailability.
	FailureTemporary FailureClass = "temporary"
	// FailurePermanent identifies unrecoverable provider failure.
	FailurePermanent FailureClass = "permanent"
	// FailureContract identifies inconsistent or unclassified provider behavior.
	FailureContract FailureClass = "contract"
)

func ClassOf

func ClassOf(err error) FailureClass

ClassOf returns a known typed class without inspecting error text.

func (FailureClass) Known

func (c FailureClass) Known() bool

Known reports whether the class belongs to the closed provider vocabulary.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL