validator

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 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

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

func NewNotationValidator

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

func (*NotationValidator) Name

func (v *NotationValidator) Name() string

func (*NotationValidator) Validate

func (v *NotationValidator) Validate(ctx context.Context, 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(ctx context.Context, payload *types.Payload) ([]error, error)

type WebhookValidator

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

func NewWebhookValidator

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

func (*WebhookValidator) Name

func (w *WebhookValidator) Name() string

func (*WebhookValidator) Validate

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

Jump to

Keyboard shortcuts

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