opa

package
v0.76.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Namespace      = "gatekeeper-system"
	WebhookService = "gatekeeper-webhook"
)

Variables

This section is empty.

Functions

func Install

func Install(p *platform.Platform) error

func Test

func Test(p *platform.Platform, test *console.TestResults)

Types

type AuditResource added in v0.20.0

type AuditResource struct {
	Status AuditResourceStatus `yaml:"status,omitempty"`
}

type AuditResourceStatus added in v0.20.0

type AuditResourceStatus struct {
	Violations []AuditResourceViolation `yaml:"violations,omitempty"`
}

type AuditResourceViolation added in v0.20.0

type AuditResourceViolation struct {
	Kind      string `yaml:"kind,omitempty"`
	Name      string `yaml:"name,omitempty"`
	Namespace string `yaml:"namespace,omitempty"`
	Message   string `yaml:"message,omitempty"`
}

type Error added in v0.17.15

type Error struct {
	Status string `json:"status"`
	Error  struct {
		Code    string `json:"code"`
		Message string `json:"message"`
		Errors  []struct {
			Code     string `json:"code"`
			Message  string `json:"message"`
			Location struct {
				File string `json:"file"`
				Row  int    `json:"row"`
				Col  int    `json:"col"`
			} `json:"location"`
		} `json:"errors"`
	} `json:"error"`
}

func (Error) String added in v0.17.15

func (e Error) String() string

type Fixture added in v0.20.0

type Fixture struct {
	Kind     string            `yaml:"kind,omitempty"`
	Metadata metav1.ObjectMeta `yaml:"metadata,omitemoty"`
}

type Violation added in v0.20.0

type Violation struct {
	Kind    string `yaml:"kind,omitempty"`
	Name    string `yaml:"name,omitempty"`
	Message string `yaml:"message,omitempty"`
}

type ViolationConfig added in v0.20.0

type ViolationConfig struct {
	Violations []Violation `yaml:"violations,omitempty"`
}

Jump to

Keyboard shortcuts

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