validator

package
v0.8.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2025 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotationValidator added in v0.5.0

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

func NewNotationValidator added in v0.5.0

func NewNotationValidator(logger *slog.Logger, name string, verifier notation.ImageVerifier) *NotationValidator

func (*NotationValidator) Name added in v0.5.0

func (v *NotationValidator) Name() string

func (*NotationValidator) Validate added in v0.5.0

func (v *NotationValidator) Validate(payload *types.Payload) ([]error, error)

type OpaValidator

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

func NewOpaValidator

func NewOpaValidator(name, filename, query string, logger *slog.Logger, imageVerifier notation.ImageVerifier) (*OpaValidator, error)

func (*OpaValidator) Name

func (v *OpaValidator) Name() string

Name

func (*OpaValidator) Validate

func (v *OpaValidator) Validate(payload *types.Payload) ([]error, error)

type WebhookValidator added in v0.0.3

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

func NewWebhookValidator added in v0.0.3

func NewWebhookValidator(name string, endpoint string, method string, logger *slog.Logger) (*WebhookValidator, error)

func (*WebhookValidator) Name added in v0.0.3

func (w *WebhookValidator) Name() string

func (*WebhookValidator) Validate added in v0.0.3

func (w *WebhookValidator) Validate(payload *types.Payload) ([]error, error)

Jump to

Keyboard shortcuts

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