policy

package
v1.8.10-rc Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	Name  string
	Rules []RuleWithSchema
}

func CreatePolicy

func CreatePolicy(policies *defaultPolicies.EvaluationPrerunPolicies, policyName string, registrationURL string, defaultRules *defaultRules.DefaultRulesDefinitions, isAnonymous bool) (Policy, error)

type RuleWithSchema

type RuleWithSchema struct {
	RuleIdentifier   string
	RuleName         string
	DocumentationUrl string
	Schema           interface{}
	MessageOnFailure string
}

Jump to

Keyboard shortcuts

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