This PR is a refactoring that abstracts the get_oci_metadata function a little bit. Before it was implicit to use the cname to generate a file list that then in turn is used to fill the oci_metadata for every file. This list is then used in later steps to create layers and to form a index manifest. With this PR the get_oci_metadata function is altered a little bit so that it takes a file list now, the rest of the process remains the same. This approach allows to use multiple ways to create the file list of which two are used now:
via feature expansion (old method)
via extraction of a tarball (new, additional method)
This PR is a refactoring that abstracts the get_oci_metadata function a little bit. Before it was implicit to use the cname to generate a file list that then in turn is used to fill the oci_metadata for every file. This list is then used in later steps to create layers and to form a index manifest. With this PR the get_oci_metadata function is altered a little bit so that it takes a file list now, the rest of the process remains the same. This approach allows to use multiple ways to create the file list of which two are used now:
via feature expansion (old method) via extraction of a tarball (new, additional method)