webhooks

package
v0.0.0-...-1f14666 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGenericValidator

func NewGenericValidator(c client.Client, log logr.Logger, cfg *config.Config) admission.Handler

Types

type Operator

type Operator = string
const (
	// for string and equality in genral (==)
	OperatorIs    Operator = "Is"
	OperatorIsNot Operator = "IsNot"
	// for string
	OperatorIn    Operator = "In"
	OperatorNotIn Operator = "NotIn"
	// for numeric
	// >
	OperatorGreaterThan Operator = "GreaterThan"
	OperatorMoreThan    Operator = "MoreThan"
	// <
	OperatorSmallerThan Operator = "SmallerThan"
	OperatorLessThan    Operator = "LessThan"
	// >=
	OperatorEqualOrGreaterThan Operator = "EqualOrGreaterThan"
	OperatorEqualOrMoreThan    Operator = "EqualOrMoreThan"
	// <=
	OperatorEqualOrSmallerThan Operator = "EqualOrSmallerThan"
	OperatorEqualOrLessThan    Operator = "EqualOrLessThan"
)

type ValueType

type ValueType = string
const (
	ValueTypeString  ValueType = "string"
	ValueTypeBool    ValueType = "bool"
	ValueTypeInt     ValueType = "int"
	ValueTypeInt64   ValueType = "int64"
	ValueTypeFloat   ValueType = "float"
	ValueTypeFloat64 ValueType = "float64"
)

Jump to

Keyboard shortcuts

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