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.
Click to show internal directories.
Click to hide internal directories.