shared

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIVersion = "aquasecurity.github.io/v1alpha1"
)

Variables

This section is empty.

Functions

func CreateObjectReference added in v0.3.1

func CreateObjectReference(namespace string, owners []v1.OwnerReference, labels map[string]string) *corev1.ObjectReference

func MapResult

func MapResult(severity v1alpha1.Severity) v1alpha2.PolicyResult

func MapServerity

func MapServerity(severity v1alpha1.Severity) v1alpha2.PolicySeverity

Types

type LabelMapper

type LabelMapper struct {
	// contains filtered or unexported fields
}

func NewLabelMapper

func NewLabelMapper(applyLabels []string) LabelMapper

func (*LabelMapper) CreateLabels

func (m *LabelMapper) CreateLabels(labels map[string]string, defaultLabels map[string]string) map[string]string

Jump to

Keyboard shortcuts

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