util

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 GetResource(image string) *grafeas.Resource

func GetResourceURL

func GetResourceURL(containerImage string) string

func GetVulnerabilityFromOccurrence

func GetVulnerabilityFromOccurrence(occ *grafeas.Occurrence) *metadata.Vulnerability

func IsFixAvailable

func IsFixAvailable(pis []*vulnerability.PackageIssue) bool

func RemoveGloballyAllowedImages

func RemoveGloballyAllowedImages(images []string) []string

RemoveGloballyAllowedImages returns all images that aren't in a global allowlist

Types

This section is empty.

Jump to

Keyboard shortcuts

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