validate

package
v0.0.0-...-59ba1d5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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