util

package
v0.0.0-...-8e01d1d Latest Latest
Warning

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

Go to latest
Published: May 14, 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 GetResource

func GetResource(image string) *grafeas.Resource

func GetResourceURL

func GetResourceURL(containerImage string) string

func SplitGapAllowedImages

func SplitGapAllowedImages(images []string, allowlist []string) ([]string, []string)

SplitGapAllowedImages returns: -- list of all images that aren't in gap allowlists -- list of images that are in gap allowlists

func SplitGloballyAllowedImages

func SplitGloballyAllowedImages(images []string) ([]string, []string)

SplitGloballyAllowedImages returns: -- list of all images that aren't in a global allowlist -- list of images that are 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