Documentation ¶
Index ¶
Constants ¶
View Source
const ( JSONReport string = "json" YAMLReport string = "yaml" )
Variables ¶
This section is empty.
Functions ¶
func ValidateDefinition ¶
func ValidateDefinition(ctx context.Context, fpath string, sources []source.PolicySource, namespace []string) (*output.Output, error)
ValidatePipeline calls NewPipelineEvaluator to obtain an PipelineEvaluator. It then executes the associated TestRunner which tests the associated pipeline file(s) against the associated policies, and displays the output.
Types ¶
type Report ¶
type Report struct { Definitions []ReportItem `json:"definitions"` Success bool `json:"success"` EcVersion string `json:"ec-version"` }
type ReportFormat ¶
type ReportFormat string
Click to show internal directories.
Click to hide internal directories.