engine

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func New

func New() (*Engine, error)

func (*Engine) Evaluate

func (e *Engine) Evaluate(input Input) ([]Result, error)

type Input

type Input struct {
	Kind      string                 `json:"kind"`
	PodSpec   map[string]interface{} `json:"podSpec"`
	Container map[string]interface{} `json:"container"`
}

type Result

type Result struct {
	Allowed bool   `json:"allowed"`
	RuleID  string `json:"rule_id,omitempty"`
	Message string `json:"message,omitempty"`
}

Jump to

Keyboard shortcuts

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