common

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SupportedKMSProviders = []string{aws.ReferenceScheme, azure.ReferenceScheme, hashivault.ReferenceScheme, gcp.ReferenceScheme}

	// TODO: create constants in to cosign?
	ValidPredicateTypes = sets.NewString("custom", "slsaprovenance", "spdx",
		"spdxjson", "cyclonedx", "link", "vuln")

	// If a static matches, define the behaviour for it.
	ValidStaticRefTypes = sets.NewString("fail", "pass")

	// Valid modes for a policy
	ValidModes = sets.NewString("enforce", "warn")

	// ValidResourceNames for a policy match selector.
	// By default, this is empty, which should allow any resource name, however,
	// this can be populated with the set of resources to allow in the validating
	// webhook, which should match the set of resources.
	ValidResourceNames = sets.NewString()
)

Functions

func ValidateKMS added in v0.6.0

func ValidateKMS(kms string) *apis.FieldError

func ValidateOCI

func ValidateOCI(oci string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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