Documentation ¶
Index ¶
- Variables
- func Annotation(key, value string) error
- func Annotations(annotations map[string]string) []error
- func ExtendedResource(key, value string) error
- func ExtendedResources(extendedResources map[string]string) []error
- func Label(key, value string) error
- func Labels(labels map[string]string) []error
- func MatchAny(matchAny []nfdv1alpha1.MatchAnyElem) []error
- func MatchFeatures(matchFeature nfdv1alpha1.FeatureMatcher) []error
- func Taint(taint *corev1.Taint) error
- func Taints(taints []corev1.Taint) []error
- func Template(labelsTemplate string) []error
Constants ¶
This section is empty.
Variables ¶
var ( // Default error message for invalid label/annotation keys ErrNSNotAllowed = fmt.Errorf("namespace is not allowed") // Default error message for invalid label/annotation keys ErrUnprefixedKeysNotAllowed = fmt.Errorf("unprefixed keys are not allowed") // Default error for invalid taint effect ErrInvalidTaintEffect = fmt.Errorf("invalid taint effect") // Default error for empty taint effect ErrEmptyTaintEffect = fmt.Errorf("empty taint effect") )
Functions ¶
func Annotation ¶
Annotation validates an annotation key and value and returns an error if the key or value is invalid.
func Annotations ¶
Annotations validates a map of annotations and returns a slice of errors if any of the annotations are invalid.
func ExtendedResource ¶
ExtendedResource validates an extended resource key and value and returns an error if the key or value is invalid.
func ExtendedResources ¶
ExtendedResources validates a map of extended resources and returns a slice of errors if any of the extended resources are invalid.
func Label ¶
Label validates a label key and value and returns an error if the key or value is invalid.
func Labels ¶
Labels validates a map of labels and returns a slice of errors if any of the labels are invalid.
func MatchAny ¶
func MatchAny(matchAny []nfdv1alpha1.MatchAnyElem) []error
MatchAny validates a slice of MatchAnyElem and returns a slice of errors if any of the MatchAnyElem are invalid.
func MatchFeatures ¶
func MatchFeatures(matchFeature nfdv1alpha1.FeatureMatcher) []error
MatchFeatures validates a slice of FeatureMatcher and returns a slice of errors if any of the FeatureMatcher are invalid.
func Taint ¶
Taint validates a taint key and value and returns an error if the key or value is invalid.
Types ¶
This section is empty.