notary

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateLayout = "2006-01-02"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	WarnDate string `json:"WarnDate"`
	DenyDate string `json:"DenyDate"`
	Policy   string `json:"Policy"`
}

type PolicyWrapper

type PolicyWrapper struct {
	PolicyType types.PolicyType `json:"PolicyType"`
	Policies   []Policy         `json:"Policies"`
}

func (PolicyWrapper) Evaluate

func (n PolicyWrapper) Evaluate(_ match.Matches, _ string, imageReference string, certsPEM string) (bool, types.PolicyEvaluationResult)

func (PolicyWrapper) GetPolicyType

func (n PolicyWrapper) GetPolicyType() types.PolicyType

Jump to

Keyboard shortcuts

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