shield

package
v0.0.0-...-73c46f4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTypeAnnotationKey       = "integrityshield.io/eventType"
	EventResultAnnotationKey     = "integrityshield.io/eventResult"
	EventTypeValueVerifyResult   = "verify-result"
	EventTypeAnnotationValueDeny = "deny"
)
View Source
const AnnotationKeyDomain = "integrityshield.io"
View Source
const ImageRefAnnotationKeyShield = "integrityshield.io/signature"
View Source
const SignatureAnnotationTypeShield = "IntegrityShield"

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageCheckProfile

type ImageCheckProfile struct {
	Key                string `json:"key"`
	KeyNamespace       string `json:"keyNamespace"`
	CommonName         string `json:"commonName"`
	Image              string `json:"image"`
	CosignExperimental bool   `json:"cosignExperimental"`
}

type ImageToVerify

type ImageToVerify struct {
	Image              string            `json:"image"`
	Profile            ImageCheckProfile `json:"profile"`
	Result             ImageVerifyResult `json:"result"`
	ProfileCheckResult bool              `json:"profileCheckResult"`
}

type ImageVerifyResult

type ImageVerifyResult struct {
	Error       error    `json:"error"`
	Allowed     bool     `json:"allowed"`
	Reason      string   `json:"reason"`
	Digest      string   `json:"digest"`
	CommonNames []string `json:"commonNames"`
}

type ResultFromRequestHandler

type ResultFromRequestHandler struct {
	Allow   bool   `json:"allow"`
	Message string `json:"message"`
	Profile string `json:"profile,omitempty"`
}

type SigCheckImages

type SigCheckImages struct {
	ImagesToVerify []ImageToVerify `json:"imagesToVefiry"`
}

Jump to

Keyboard shortcuts

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