signvalidator

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, config *Config) (*validator, func() error, error)

New creates a new Verifier instance. The caller's Config is never mutated.

Types

type Config

type Config struct {
	// ClockSkewTolerance is the maximum future drift allowed for the `created`
	// field. nil means use the spec default (5 s). Set to a zero-value pointer
	// (&0) to enforce strict same-second validation. NFOs may override this
	// per-subnet via the plugin config key "clockSkewToleranceSeconds".
	// The `expires` field always uses zero tolerance regardless of this value.
	ClockSkewTolerance *time.Duration
}

Config struct for Verifier.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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