types

package
v0.0.0-...-347984d Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 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 Response

type Response struct {
	Trace   *string
	Input   *string
	Target  string
	Results []*Result
}

func (*Response) TraceDump

func (r *Response) TraceDump() string

type Responses

type Responses struct {
	ByTarget map[string]*Response
	Handled  map[string]bool
}

func NewResponses

func NewResponses() *Responses

func (*Responses) HandledCount

func (r *Responses) HandledCount() int

func (*Responses) Results

func (r *Responses) Results() []*Result

func (*Responses) TraceDump

func (r *Responses) TraceDump() string

type Result

type Result struct {
	Msg string `json:"msg,omitempty"`

	// Metadata includes the contents of `details` from the Rego rule signature
	Metadata map[string]interface{} `json:"metadata,omitempty"`

	// The constraint that was violated
	Constraint *unstructured.Unstructured `json:"constraint,omitempty"`

	// The violating review
	Review interface{} `json:"review,omitempty"`

	// The violating Resource, filled out by the Target
	Resource interface{}
}

Jump to

Keyboard shortcuts

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