report

package
v1.24.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Passed is the constant value for the Result field of a passed check
	Passed string = "PASSED"
	// Failed is the constant value for the Result field of a failed check
	Failed string = "FAILED"
	// Skipped is the constant value for the Result field of a skipped check
	Skipped string = "SKIPPED"
)
View Source
const (
	//JSONOutput is the constant value for output type JSON
	JSONOutput string = "json"
)

Variables

This section is empty.

Functions

func JsonReport

func JsonReport(report *Report) (string, error)

Types

type Check

type Check struct {
	Name    string `json:"name"`
	Message string `json:"message"`
	Result  string `json:"result"`
}

Check represents the result of a check

type Report

type Report struct {
	Resources []*Resource `json:"resources"`
}

Report represents the final output of the analyzer

type Resource

type Resource struct {
	Kind      string   `json:"kind"`
	Namespace string   `json:"namespace"`
	Name      string   `json:"name"`
	Checks    []*Check `json:"checks"`
}

Resource represents the a resource of the cluster and all the checks done on it

Jump to

Keyboard shortcuts

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