verifier

package
v2.0.0-alpha.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts NewOptions, globalScopes []string) (ratify.Verifier, error)

New creates a ratify.Verifier instance if it belongs to a registered type.

func NewVerifiers

func NewVerifiers(opts []NewOptions, globalScopes []string) ([]ratify.Verifier, error)

NewVerifiers creates a slice of ratify.Verifier instances based on the provided options.

func Register

func Register(verifierType string, create func(NewOptions, []string) (ratify.Verifier, error))

Register registers a verifier factory to the system.

Types

type NewOptions

type NewOptions struct {
	// Name is the unique identifier of a verifier instance. Required.
	Name string `json:"name"`

	// Type represents a specific implementation of a verifier. Required.
	// Note: there could be multiple verifiers of the same type with different
	//       names.
	Type string `json:"type"`

	// Parameters is additional parameters of the verifier. Optional.
	Parameters any `json:"parameters,omitempty"`
}

NewOptions holds the options to create a ratify.Verifier.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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