rules

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ALLOW_ALL_RULE = "*"
View Source
const NEGATED_RULE = "!"

Variables

This section is empty.

Functions

func Contains

func Contains(value string, rule string) bool

func Exact

func Exact(value string, rule string) bool

func IsNotIgnoredViolation

func IsNotIgnoredViolation(namespace string, entityType string, entityName string, vt vlib.ViolationType) bool

func IsValueMatchContainsRule

func IsValueMatchContainsRule(namespace string, entityType string, entityName string, value string, violationConfig []string) (bool, error)

func IsValueMatchExactRule

func IsValueMatchExactRule(namespace string, entityType string, entityName string, value string, violationConfig []string) (bool, error)

func IsValueMatchLikeRule

func IsValueMatchLikeRule(namespace string, entityType string, entityName string, value string, violationConfig []string) (bool, error)

func IsValuesMatchesRequiredRule

func IsValuesMatchesRequiredRule(namespace string, entityType string, entityName string, values map[string]string, violationConfig []string) (bool, string, error)

func Like

func Like(value string, rule string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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