imageverifier

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEngine

func NewEngine() *engine

func NewVerifier

func NewVerifier(rules v1alpha1.VerificationRules, count int) *imageVerifier

Types

type PolicyResponse added in v0.0.3

type PolicyResponse struct {
	Policy        v1alpha1.ImageVerificationPolicy
	RuleResponses []RuleResponse
}

type Request

type Request struct {
	Policies []*v1alpha1.ImageVerificationPolicy
	Resource interface{}
}

type Response added in v0.0.3

type Response struct {
	Resource        interface{}
	PolicyResponses []PolicyResponse
}

type RuleResponse added in v0.0.3

type RuleResponse struct {
	Rule               v1alpha1.ImageVerificationRule
	VerificationResult VerificationResult
}

type VerificationOutcome added in v0.0.3

type VerificationOutcome string
const (
	PASS  VerificationOutcome = "PASS"
	SKIP  VerificationOutcome = "SKIP"
	FAIL  VerificationOutcome = "FAIL"
	ERROR VerificationOutcome = "ERROR"
)

type VerificationResponse added in v0.0.3

type VerificationResponse struct {
	VerificationRule v1alpha1.VerificationRule
	Failures         []error
}

type VerificationResult added in v0.0.3

type VerificationResult struct {
	Image               string
	VerificationOutcome VerificationOutcome
	// Error is only populated for ERROR verification outcome
	Error                 error
	VerificationResponses []VerificationResponse
}

Jump to

Keyboard shortcuts

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