Module validation

Module validation 

Source
Expand description

Logic for model (Manifest) validation

Structs§

ValidationFailure
Failure detailing a validation failure, normally indicating a failure

Enums§

ValidationFailureLevel
Level of a failure related to validation

Traits§

ValidationOutput
Things that support output validation

Functions§

is_valid_dns_subdomain
is_valid_label_name
is_valid_manifest_name
Check whether a manifest name matches requirements
is_valid_manifest_version
Check whether a manifest version is valid requirements
valid_oam_label
This function validates that a key/value pair is a valid OAM label. It’s using fairly basic validation rules to ensure that the manifest isn’t doing anything horribly wrong. Keeping this function free of regex is intentional to keep this code functional but simple.
validate_component_properties
Ensure that all components in a manifest either specify an image reference or a shared component in a different manifest. Note that this does not validate that the image reference is valid or that the shared component is valid, only that one of the two properties is set.
validate_components_configs
Funtion to validate the component configs from 0.13.0 source_config is deprecated and replaced with source:config: this function validates the raw yaml to check for deprecated source_config and target_config
validate_link_configs
Validates link configs in a WADM application manifest.
validate_manifest
Validate a WADM application manifest, returning a list of validation failures
validate_manifest_bytes
Validate a lsit of bytes that represents a WADM application manifest
validate_manifest_file
Validate a WADM application manifest, returning a list of validation failures
validate_manifest_name
Check whether a manifest name matches requirements, returning all validation errors
validate_manifest_version
Check whether a manifest version is valid, returning all validation errors
validate_raw_yaml