validation

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsASCII

func IsASCII(s string) bool

IsAscii checks whether a string only contains ascii characters

func Validate

func Validate(component *v2.ComponentDescriptor) error

Validate validates a parsed v2 component descriptor

func ValidateComponentReference

func ValidateComponentReference(fldPath *field.Path, cr v2.ComponentReference) field.ErrorList

ValidateComponentReference validates a component reference.

func ValidateComponentReferences

func ValidateComponentReferences(fldPath *field.Path, refs []v2.ComponentReference) field.ErrorList

ValidateComponentReferences validates a list of component references. It makes sure that no duplicate sources are present.

func ValidateIdentity

func ValidateIdentity(fldPath *field.Path, id v2.Identity) field.ErrorList

ValidateIdentity validates the identity of object.

func ValidateLabels

func ValidateLabels(fldPath *field.Path, labels []v2.Label) field.ErrorList

ValidateLabels validates a list of labels.

func ValidateList

func ValidateList(list *v2.ComponentDescriptorList) error

Validate validates a parsed v2 component descriptor

func ValidateObjectMeta

func ValidateObjectMeta(fldPath *field.Path, om v2.ObjectMetaAccessor) field.ErrorList

ValidateObjectMeta validate the metadata of an object.

func ValidateResource

func ValidateResource(fldPath *field.Path, res v2.Resource) field.ErrorList

ValidateResource validates a components resource

func ValidateResources

func ValidateResources(fldPath *field.Path, resources []v2.Resource, componentVersion string) field.ErrorList

ValidateResources validates a list of resources. It makes sure that no duplicate sources are present.

func ValidateSource

func ValidateSource(fldPath *field.Path, src v2.Source) field.ErrorList

ValidateSource validates the a component's source object.

func ValidateSources

func ValidateSources(fldPath *field.Path, sources []v2.Source) field.ErrorList

ValidateSources validates a list of sources. It makes sure that no duplicate sources are present.

Types

This section is empty.

Jump to

Keyboard shortcuts

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