wadm_types

Module validation

Source
Expand description

Logic for model (Manifest) validation

Structs§

  • Failure detailing a validation failure, normally indicating a failure

Enums§

Traits§

Functions§

  • Check whether a manifest name matches requirements
  • Check whether a manifest version is valid requirements
  • 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.
  • 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.
  • 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
  • Validates link configs in a WADM application manifest.
  • Validate a WADM application manifest, returning a list of validation failures
  • Validate a lsit of bytes that represents a WADM application manifest
  • Validate a WADM application manifest, returning a list of validation failures
  • Check whether a manifest name matches requirements, returning all validation errors
  • Check whether a manifest version is valid, returning all validation errors