Documentation
¶
Index ¶
- func IsASCII(s string) bool
- func Validate(component *v2.ComponentDescriptor) error
- func ValidateComponentReference(fldPath *field.Path, cr v2.ComponentReference) field.ErrorList
- func ValidateComponentReferences(fldPath *field.Path, refs []v2.ComponentReference) field.ErrorList
- func ValidateIdentity(fldPath *field.Path, id v2.Identity) field.ErrorList
- func ValidateLabels(fldPath *field.Path, labels []v2.Label) field.ErrorList
- func ValidateList(list *v2.ComponentDescriptorList) error
- func ValidateObjectMeta(fldPath *field.Path, om v2.ObjectMetaAccessor) field.ErrorList
- func ValidateResource(fldPath *field.Path, res v2.Resource) field.ErrorList
- func ValidateResources(fldPath *field.Path, resources []v2.Resource, componentVersion string) field.ErrorList
- func ValidateSource(fldPath *field.Path, src v2.Source) field.ErrorList
- func ValidateSources(fldPath *field.Path, sources []v2.Source) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Validate ¶
func Validate(component *v2.ComponentDescriptor) error
Validate validates a parsed v2 component descriptor
func ValidateComponentReference ¶
ValidateComponentReference validates a component reference.
func ValidateComponentReferences ¶
ValidateComponentReferences validates a list of component references. It makes sure that no duplicate sources are present.
func ValidateIdentity ¶
ValidateIdentity validates the identity of object.
func ValidateLabels ¶
ValidateLabels validates a list of labels.
func ValidateList ¶
func ValidateList(list *v2.ComponentDescriptorList) error
Validate validates a parsed v2 component descriptor
func ValidateObjectMeta ¶
ValidateObjectMeta validate the metadata of an object.
func ValidateResource ¶
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 ¶
ValidateSource validates the a component's source object.
Types ¶
This section is empty.