Documentation ¶
Index ¶
- func IsFullyQualifiedName(fldPath *field.Path, name string) field.ErrorList
- func ValidatePackage(pkg datapackaging.Package) field.ErrorList
- func ValidatePackageMetadata(pkgm datapackaging.PackageMetadata) field.ErrorList
- func ValidatePackageMetadataName(pkgmName string, fldPath *field.Path) field.ErrorList
- func ValidatePackageName(pkgName, pkgmName, pkgVersion string, fldPath *field.Path) field.ErrorList
- func ValidatePackageSpecPackageName(name string, fldPath *field.Path) field.ErrorList
- func ValidatePackageSpecVersion(version string, fldPath *field.Path) field.ErrorList
- func ValidatePackageVersionConstraints(constraints string, fldPath *field.Path) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFullyQualifiedName ¶
func ValidatePackage ¶
func ValidatePackage(pkg datapackaging.Package) field.ErrorList
func ValidatePackageMetadata ¶
func ValidatePackageMetadata(pkgm datapackaging.PackageMetadata) field.ErrorList
package validations
func ValidatePackageMetadataName ¶
validate name
func ValidatePackageName ¶
validate metdata.name = spec.RefName + spec.Version
func ValidatePackageSpecPackageName ¶
validate spec.RefName isnt empty
func ValidatePackageSpecVersion ¶
validate spec.version is not empty and is a valid semver
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.