validator

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MPL-2.0 Imports: 11 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 hclog.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(job *api.Job) ([]error, error)

type OpaValidator

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

func NewOpaValidator

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

func (*OpaValidator) Name

func (v *OpaValidator) Name() string

Name

func (*OpaValidator) Validate

func (v *OpaValidator) Validate(job *api.Job) ([]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 hclog.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(job *api.Job) ([]error, error)

Jump to

Keyboard shortcuts

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