policies

package
v0.0.0-...-91313ad Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

type Evaluator interface {
	Evaluate(ur *k8s.UnstructuredResources) ([]Issue, error)
}

type Incident

type Incident struct {
	Message   string `json:"message"`
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
	Group     string `json:"group"`
	Version   string `json:"version"`
	Kind      string `json:"kind"`
}

type Issue

type Issue struct {
	PolicySet string     `json:"policySet"`
	Name      string     `json:"name"`
	Incidents []Incident `json:"incidents"`
	Severity  string     `json:"severity"`
	ID        string     `json:"id"`
}

type PolicySet

type PolicySet struct {
	Name              string
	Path              string
	ExcludeSubstrings []string
	Query             string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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