Skip to content

PackagerPlugins: TangoPackager

Manuel Peuster edited this page Jul 4, 2018 · 2 revisions

TangoPackager Module

The documentation of the TangoPackager plugin that can handle the 5GTANGO package format.

Unpackaging Procedure

  1. Extract ZIP file to a temporary working folder
  2. Collect all information about the package
    1. Validate NAPD.yaml against its schema (if available)
    2. Order of information gathering: TOSCA.meta overwritten by ETSI manifest (e.g.g mynsd.mf) overwritten by NAPD.yaml. This means that information in the NAPD.yaml has the highest priority and redundant information is overwritten by the content of the NAPD.yaml.
    3. Assert that a minimum set of meatdata is available. If not: Abort with malformed pkg error.
  3. Validate checksums (if enabled: abort on missmatch, if disabled: warn on missmatch)
  4. Call storage backend for all artifacts that should be returned
    1. Local storage backend will copy the files to args.output
    2. Catalogue backend will upload the files
  5. Generate result information (e.g. metadate containing links to artifacts)

Packaging Procedure

  1. find and load project.yml
  2. create NAPDR for the new package
  3. create a tmp. working directory
  4. generate package directory tree
  5. copy project files and artifacts to temp filder
  6. generate/write NAPD
  7. generate/write ETSI MF
  8. generate/write TOSCA meta data
  9. zip and write package