Documentation ¶
Index ¶
- type FieldValidator
- func (f FieldValidator) ErrIfInvalidKey(s string) error
- func (f FieldValidator) IsEnvVarName(k string) error
- func (f FieldValidator) MakeAnnotationNameValidator() func([]string) error
- func (f FieldValidator) MakeAnnotationValidator() func(map[string]string) error
- func (f FieldValidator) MakeLabelNameValidator() func([]string) error
- func (f FieldValidator) MakeLabelValidator() func(map[string]string) error
- func (f FieldValidator) ValidateNamespace(s string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldValidator ¶
type FieldValidator struct { }
FieldValidator implements ifc.Validator to check the values of various KRM string fields, e.g. labels, annotations, names, namespaces.
TODO: Have this use kyaml/yaml/internal/k8sgen/pkg/labels
which has label and annotation validation code, but is internal so this impl would need to move to kyaml (a fine idea).
func NewFieldValidator ¶
func NewFieldValidator() *FieldValidator
func (FieldValidator) ErrIfInvalidKey ¶
func (f FieldValidator) ErrIfInvalidKey(s string) error
TODO(#FieldValidator): implement ErrIfInvalidKey
func (FieldValidator) IsEnvVarName ¶
func (f FieldValidator) IsEnvVarName(k string) error
TODO(#FieldValidator): implement IsEnvVarName
func (FieldValidator) MakeAnnotationNameValidator ¶
func (f FieldValidator) MakeAnnotationNameValidator() func([]string) error
TODO(#FieldValidator): implement MakeAnnotationNameValidator
func (FieldValidator) MakeAnnotationValidator ¶
func (f FieldValidator) MakeAnnotationValidator() func(map[string]string) error
TODO(#FieldValidator): implement MakeAnnotationValidator
func (FieldValidator) MakeLabelNameValidator ¶
func (f FieldValidator) MakeLabelNameValidator() func([]string) error
TODO(#FieldValidator): implement MakeLabelNameValidator
func (FieldValidator) MakeLabelValidator ¶
func (f FieldValidator) MakeLabelValidator() func(map[string]string) error
TODO(#FieldValidator): implement MakeLabelValidator
func (FieldValidator) ValidateNamespace ¶
func (f FieldValidator) ValidateNamespace(s string) []string
TODO(#FieldValidator): implement ValidateNamespace
Click to show internal directories.
Click to hide internal directories.