defaultPolicies

package
v1.9.19 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPoliciesFileContent string

Functions

This section is empty.

Types

type CustomRule

type CustomRule struct {
	Identifier              string      `json:"identifier"`
	Name                    string      `json:"name"`
	DefaultMessageOnFailure string      `json:"defaultMessageOnFailure"`
	Schema                  interface{} `json:"schema"`
	JsonSchema              string      `json:"jsonSchema"`
}

type EvaluationPrerunPolicies

type EvaluationPrerunPolicies struct {
	ApiVersion  string        `json:"apiVersion"`
	CustomRules []*CustomRule `json:"customRules"`
	Policies    []*Policy     `json:"policies"`
}

func GetDefaultPoliciesStruct

func GetDefaultPoliciesStruct() *EvaluationPrerunPolicies

type Policy

type Policy struct {
	Name      string `json:"name"`
	IsDefault bool   `json:"isDefault,omitempty"`
	Rules     []Rule `json:"rules"`
}

type Rule

type Rule struct {
	Identifier       string `json:"identifier"`
	MessageOnFailure string `json:"messageOnFailure"`
}

Jump to

Keyboard shortcuts

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