authresults

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 authresults owns the bounded local Authentication-Results profile. Reports are untrusted outside their issuing administrative domain. Comments are diagnostic only and must never become a policy or reputation input.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	// contains filtered or unexported fields
}

Report is an immutable, validated local report without message identifiers.

func New

func New(authority, result, reason string) (Report, bool)

New admits a canonical authority, a closed result, and an optional closed reason. The result none reports the Draft-09 Section 14.1 NONE state of a message without any DKIM2 header field (draft-gondwana-dkim2-authres Section 3.1); like pass it never carries a diagnostic reason.

func Parse

func Parse(value string) (Report, bool)

Parse admits only the canonical local profile, including legacy bare results.

func (Report) Authority

func (r Report) Authority() string

Authority returns the validated administrative identity for wire validation.

func (Report) Matches

func (r Report) Matches(authority, result string) bool

Matches binds a parsed report to the configured authority and final outcome.

func (Report) MatchesReason

func (r Report) MatchesReason(reason string) bool

MatchesReason rejects contradictory diagnostics while admitting legacy reports.

func (Report) Value

func (r Report) Value() string

Value returns the canonical field value; the zero value is not a report.

Jump to

Keyboard shortcuts

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