Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CertFile = "/certs/tls.crt" KeyFile = "/certs/tls.key" ENV_DEFAULT_TRUST_POLICY = "DEFAULT_TRUST_POLICY" )
Functions ¶
This section is empty.
Types ¶
type ImageInfo ¶
type ImageInfo struct { imageutils.ImageInfo // Pointer is the path to the image object in the resource Pointer string `json:"jsonPointer"` }
type ImageInfos ¶
type ImageInfos struct { // InitContainers is a map of init containers image data from the AdmissionReview request, key is the container name InitContainers map[string]ImageInfo `json:"initContainers,omitempty"` // Containers is a map of containers image data from the AdmissionReview request, key is the container name Containers map[string]ImageInfo `json:"containers,omitempty"` // EphemeralContainers is a map of ephemeral containers image data from the AdmissionReview request, key is the container name EphemeralContainers map[string]ImageInfo `json:"ephemeralContainers,omitempty"` }
type RequestData ¶
type RequestData struct { Images ImageInfos `json:"images"` TrustPolicy string `json:"trustPolicy"` }
Data format of request body for HandleCheckImages
type ResponseData ¶
type ResponseData struct { // Verified is true when all the images are verified. Verified bool `json:"verified"` // ErrorMessage contains the error recieved when verification fails // ErrorMessage is empty when verification succeeds ErrorMessage string `json:"message,omitempty"` // Results contains the list of containers in JSONPatch format // Results is empty when verification fails Results []Result `json:"results"` }
Data format of response body for HandleCheckImages
Click to show internal directories.
Click to hide internal directories.