static

package
v0.15.17-hotfix.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNamespaceValidator

func NewNamespaceValidator(res ValidationResult) namespace.Validator

NewNamespaceValidator creates a new static namespace validator.

Types

type NamespaceValidatorConfiguration

type NamespaceValidatorConfiguration struct {
	ValidationResult ValidationResult `yaml:"validationResult"`
}

NamespaceValidatorConfiguration configures a static namespace validator.

func (*NamespaceValidatorConfiguration) NewNamespaceValidator

func (c *NamespaceValidatorConfiguration) NewNamespaceValidator() namespace.Validator

NewNamespaceValidator creates a new namespace validator.

type ValidationResult

type ValidationResult string

ValidationResult is the validation result.

const (
	Invalid ValidationResult = "invalid"
	Valid   ValidationResult = "valid"
)

A list of supported validation result.

func (*ValidationResult) UnmarshalYAML

func (t *ValidationResult) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML unmarshals YAML object into a validation result.

Jump to

Keyboard shortcuts

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