Documentation ¶
Index ¶
- func CreateAttestationSignature(image string, pgpSigningKey *secrets.PGPSigningSecret) (string, error)
- func GetAttestationKeyFingerprint(pgpSigningKey *secrets.PGPSigningSecret) string
- func GetOrCreateAttestationNote(c metadata.ReadWriteClient, a *v1beta1.AttestationAuthority) (*grafeas.Note, error)
- func GetPgpAttestationFromOccurrence(occ *grafeas.Occurrence) metadata.PGPAttestation
- func GetResource(image string) *grafeas.Resource
- func GetResourceURL(containerImage string) string
- func GetVulnerabilityFromOccurrence(occ *grafeas.Occurrence) *metadata.Vulnerability
- func IsFixAvailable(pis []*vulnerability.PackageIssue) bool
- func RemoveGloballyAllowedImages(images []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAttestationSignature ¶
func CreateAttestationSignature(image string, pgpSigningKey *secrets.PGPSigningSecret) (string, error)
func GetAttestationKeyFingerprint ¶
func GetAttestationKeyFingerprint(pgpSigningKey *secrets.PGPSigningSecret) string
func GetOrCreateAttestationNote ¶
func GetOrCreateAttestationNote(c metadata.ReadWriteClient, a *v1beta1.AttestationAuthority) (*grafeas.Note, error)
GetOrCreateAttestationNote returns a note if exists and creates one if it does not exist.
func GetPgpAttestationFromOccurrence ¶
func GetPgpAttestationFromOccurrence(occ *grafeas.Occurrence) metadata.PGPAttestation
func GetResource ¶
func GetResourceURL ¶
func GetVulnerabilityFromOccurrence ¶
func GetVulnerabilityFromOccurrence(occ *grafeas.Occurrence) *metadata.Vulnerability
func IsFixAvailable ¶
func IsFixAvailable(pis []*vulnerability.PackageIssue) bool
func RemoveGloballyAllowedImages ¶
RemoveGloballyAllowedImages returns all images that aren't in a global allowlist
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.