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.
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.
Click to show internal directories.
Click to hide internal directories.