├── .dockerignore ├── .github ├── CODEOWNERS ├── config │ ├── golangci.yaml │ ├── goreleaser.yaml │ ├── labeler.yml │ ├── latest.yml │ ├── markdown-link-check.json │ ├── markdownignore │ ├── markdownlint.yml │ ├── release.yml │ ├── spellcheck.yml │ └── wordlist.txt ├── dependabot.yml ├── secret_scanning.yml ├── settings.yml └── workflows │ ├── auto-label-issues.yaml │ ├── check_diff_action.yaml │ ├── codeql.yml │ ├── components.yaml │ ├── flake_vendorhash.yaml │ ├── integration-test.yaml │ ├── lint_and_test.yaml │ ├── milestone.yaml │ ├── publish-latest.yaml │ ├── publish-to-other-than-github.yaml │ ├── pull-request.yaml │ ├── purge-branch-caches.yaml │ ├── release-branch.yaml │ ├── release-bump-version.yaml │ ├── release-drafter.yaml │ ├── release-version.yaml │ ├── release.yaml │ ├── retrigger-publish-to-other.yaml │ ├── reuse_helper_tool.yaml │ ├── stale.yaml │ ├── trigger-blackduck-scan.yaml │ └── verify-md.yml ├── .gitignore ├── .gitvote.yml ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── LICENSES ├── Apache-2.0.txt └── MIT.txt ├── Makefile ├── NOTICE ├── README.md ├── RELEASE_PROCESS.md ├── REUSE.toml ├── VERSION ├── api ├── cli │ ├── builder.go │ ├── config │ │ ├── config_test.go │ │ ├── suite_test.go │ │ └── type.go │ ├── interface.go │ └── internal │ │ ├── builder.go │ │ └── context.go ├── config │ ├── README.md │ ├── builder.go │ ├── configutils │ │ └── configure.go │ ├── context_test.go │ ├── cpi │ │ ├── README.md │ │ ├── config.go │ │ ├── content.go │ │ └── interface.go │ ├── dummy_test.go │ ├── extensions │ │ └── config │ │ │ ├── context_test.go │ │ │ ├── dummy_test.go │ │ │ ├── suite_test.go │ │ │ ├── testdata │ │ │ ├── config.yaml │ │ │ └── nested.yaml │ │ │ ├── type.go │ │ │ └── utils.go │ ├── gc_test.go │ ├── init.go │ ├── interface.go │ ├── internal │ │ ├── builder.go │ │ ├── builder_test.go │ │ ├── config.go │ │ ├── configtypes.go │ │ ├── context.go │ │ ├── errors.go │ │ ├── logging.go │ │ ├── setup_test.go │ │ ├── store.go │ │ ├── suite_test.go │ │ └── updater.go │ ├── logging.go │ ├── plugin │ │ └── type.go │ └── suite_test.go ├── credentials │ ├── area_test.go │ ├── builder.go │ ├── builtin │ │ ├── doc.go │ │ ├── github │ │ │ ├── ghcr.go │ │ │ └── github.go │ │ └── init.go │ ├── config │ │ ├── config_test.go │ │ ├── suite_test.go │ │ └── type.go │ ├── const.go │ ├── cpi │ │ ├── README.md │ │ ├── builtin.go │ │ ├── const.go │ │ ├── interface.go │ │ └── repotypes.go │ ├── doc.go │ ├── extensions │ │ └── repositories │ │ │ ├── aliases │ │ │ ├── cache.go │ │ │ ├── repo_test.go │ │ │ ├── repository.go │ │ │ ├── suite_test.go │ │ │ └── type.go │ │ │ ├── directcreds │ │ │ ├── a_usage.go │ │ │ ├── credentials.go │ │ │ ├── repo_test.go │ │ │ ├── repository.go │ │ │ ├── suite_test.go │ │ │ └── type.go │ │ │ ├── dockerconfig │ │ │ ├── a_usage.go │ │ │ ├── cache.go │ │ │ ├── credentials.go │ │ │ ├── default.go │ │ │ ├── logging.go │ │ │ ├── provider.go │ │ │ ├── repo_test.go │ │ │ ├── repository.go │ │ │ ├── suite_test.go │ │ │ ├── testdata │ │ │ │ └── dockerconfig.json │ │ │ └── type.go │ │ │ ├── gardenerconfig │ │ │ ├── README.md │ │ │ ├── cache.go │ │ │ ├── cpi │ │ │ │ └── interface.go │ │ │ ├── credentials.go │ │ │ ├── handler │ │ │ │ └── container_registry │ │ │ │ │ ├── credentials.go │ │ │ │ │ └── handler.go │ │ │ ├── identity │ │ │ │ └── identity.go │ │ │ ├── init.go │ │ │ ├── repo_test.go │ │ │ ├── repository.go │ │ │ ├── suite_test.go │ │ │ └── type.go │ │ │ ├── init.go │ │ │ ├── memory │ │ │ ├── cache.go │ │ │ ├── config │ │ │ │ ├── config_test.go │ │ │ │ ├── suite_test.go │ │ │ │ ├── testdata │ │ │ │ │ └── creds.yaml │ │ │ │ └── type.go │ │ │ ├── repo_test.go │ │ │ ├── repository.go │ │ │ ├── suite_test.go │ │ │ └── type.go │ │ │ ├── npm │ │ │ ├── a_usage.go │ │ │ ├── cache.go │ │ │ ├── config.go │ │ │ ├── config_test.go │ │ │ ├── default.go │ │ │ ├── provider.go │ │ │ ├── repository.go │ │ │ ├── repository_test.go │ │ │ ├── suite_test.go │ │ │ ├── testdata │ │ │ │ └── .npmrc │ │ │ └── type.go │ │ │ └── vault │ │ │ ├── a_usage.go │ │ │ ├── auth.go │ │ │ ├── cache.go │ │ │ ├── identity │ │ │ └── identity.go │ │ │ ├── logging.go │ │ │ ├── options.go │ │ │ ├── provider.go │ │ │ ├── repo_int_test.go │ │ │ ├── repo_test.go │ │ │ ├── repository.go │ │ │ ├── suite_test.go │ │ │ └── type.go │ ├── gc_test.go │ ├── identity │ │ └── hostpath │ │ │ ├── id_test.go │ │ │ ├── identity.go │ │ │ └── suite_test.go │ ├── init.go │ ├── interface.go │ ├── internal │ │ ├── builder.go │ │ ├── builder_test.go │ │ ├── builtin.go │ │ ├── const.go │ │ ├── consumers.go │ │ ├── context.go │ │ ├── cred_test.go │ │ ├── credentials.go │ │ ├── credentialsspec.go │ │ ├── errors.go │ │ ├── identity.go │ │ ├── identity_test.go │ │ ├── logging.go │ │ ├── repository.go │ │ ├── repotypes.go │ │ ├── suite_test.go │ │ └── utils.go │ ├── suite_test.go │ ├── usage.go │ └── utils.go ├── datacontext │ ├── action │ │ ├── api │ │ │ ├── action_test.go │ │ │ ├── interface.go │ │ │ ├── options.go │ │ │ ├── registry.go │ │ │ ├── registry_test.go │ │ │ ├── suite_test.go │ │ │ └── utils.go │ │ ├── handlers │ │ │ ├── options.go │ │ │ └── registry.go │ │ └── type.go │ ├── attrs.go │ ├── attrs │ │ ├── clicfgattr │ │ │ └── attr.go │ │ ├── init.go │ │ ├── logforward │ │ │ └── attr.go │ │ ├── rootcertsattr │ │ │ ├── attr.go │ │ │ ├── attr_test.go │ │ │ ├── config.go │ │ │ └── suite_test.go │ │ ├── tmpcache │ │ │ └── attr.go │ │ └── vfsattr │ │ │ └── attr.go │ ├── builder.go │ ├── config │ │ ├── attrs │ │ │ ├── config_test.go │ │ │ ├── suite_test.go │ │ │ └── type.go │ │ ├── init.go │ │ └── logging │ │ │ ├── config_test.go │ │ │ ├── suite_test.go │ │ │ └── type.go │ ├── context-refcount-model.png │ ├── context.go │ ├── context_test.go │ ├── cpi.go │ ├── gc_test.go │ ├── logging.go │ ├── session.go │ ├── setup.go │ ├── suite_test.go │ └── util.go ├── helper │ ├── builder │ │ ├── blob.go │ │ ├── builder.go │ │ ├── builder_test.go │ │ ├── oci_anno.go │ │ ├── oci_artifact.go │ │ ├── oci_artifactset.go │ │ ├── oci_config.go │ │ ├── oci_ctf.go │ │ ├── oci_layer.go │ │ ├── oci_namespace.go │ │ ├── oci_platform.go │ │ ├── oci_repo.go │ │ ├── oci_tags.go │ │ ├── ocm_access.go │ │ ├── ocm_comparch.go │ │ ├── ocm_component.go │ │ ├── ocm_composition.go │ │ ├── ocm_ctf.go │ │ ├── ocm_identity.go │ │ ├── ocm_label.go │ │ ├── ocm_provider.go │ │ ├── ocm_reference.go │ │ ├── ocm_repo.go │ │ ├── ocm_resource.go │ │ ├── ocm_source.go │ │ ├── ocm_version.go │ │ ├── ocm_version_test.go │ │ ├── rsa_keypair.go │ │ └── suite_test.go │ └── env │ │ ├── env.go │ │ ├── env_test.go │ │ ├── keypair.go │ │ ├── suite_test.go │ │ └── testdata │ │ └── testfile.txt ├── oci │ ├── action_test.go │ ├── annotations │ │ └── annotations.go │ ├── art_test.go │ ├── artdesc │ │ ├── artifact.go │ │ ├── config.go │ │ ├── helper │ │ │ └── generic.go │ │ ├── index.go │ │ ├── manifest.go │ │ ├── suite_test.go │ │ ├── utils.go │ │ └── utils_test.go │ ├── builder.go │ ├── config │ │ ├── config_test.go │ │ ├── suite_test.go │ │ └── type.go │ ├── cpi │ │ ├── README.md │ │ ├── interface.go │ │ ├── mod.go │ │ ├── repotypes.go │ │ ├── state.go │ │ ├── suite_test.go │ │ ├── support │ │ │ ├── artifact.go │ │ │ ├── artifactsetblobaccess.go │ │ │ ├── base.go │ │ │ ├── flavor_index.go │ │ │ ├── flavor_manifest.go │ │ │ └── namespace.go │ │ ├── utils.go │ │ ├── utils_test.go │ │ └── view.go │ ├── extensions │ │ ├── actions │ │ │ ├── init.go │ │ │ └── oci-repository-prepare │ │ │ │ ├── exec.go │ │ │ │ └── type.go │ │ ├── attrs │ │ │ ├── cacheattr │ │ │ │ ├── attr.go │ │ │ │ ├── attr_test.go │ │ │ │ └── suite_test.go │ │ │ └── init.go │ │ └── repositories │ │ │ ├── artifactset │ │ │ ├── artifactset.go │ │ │ ├── artifactset_test.go │ │ │ ├── error.go │ │ │ ├── filesystemaccess.go │ │ │ ├── format.go │ │ │ ├── options.go │ │ │ ├── repo_test.go │ │ │ ├── repository.go │ │ │ ├── state.go │ │ │ ├── suite_test.go │ │ │ ├── testhelper │ │ │ │ └── formats.go │ │ │ ├── type.go │ │ │ ├── uniform.go │ │ │ └── utils_synthesis.go │ │ │ ├── ctf │ │ │ ├── README.md │ │ │ ├── ctf_test.go │ │ │ ├── format.go │ │ │ ├── format │ │ │ │ └── const.go │ │ │ ├── formatspec.md │ │ │ ├── index │ │ │ │ ├── ctfindex.go │ │ │ │ ├── index.go │ │ │ │ ├── index_test.go │ │ │ │ └── suite_test.go │ │ │ ├── namespace.go │ │ │ ├── repository.go │ │ │ ├── state.go │ │ │ ├── suite_test.go │ │ │ ├── synthesis_test.go │ │ │ ├── testhelper │ │ │ │ └── fill.go │ │ │ ├── type.go │ │ │ └── uniform.go │ │ │ ├── docker │ │ │ ├── README.md │ │ │ ├── artifact.go │ │ │ ├── client.go │ │ │ ├── convert.go │ │ │ ├── docker_test.go │ │ │ ├── logging.go │ │ │ ├── namespace.go │ │ │ ├── repository.go │ │ │ ├── suite_test.go │ │ │ ├── type.go │ │ │ ├── uniform.go │ │ │ └── utils.go │ │ │ ├── empty │ │ │ ├── repository.go │ │ │ ├── type.go │ │ │ └── uniform.go │ │ │ ├── init.go │ │ │ └── ocireg │ │ │ ├── README.md │ │ │ ├── blobs.go │ │ │ ├── logging.go │ │ │ ├── namespace.go │ │ │ ├── repository.go │ │ │ ├── type.go │ │ │ ├── uniform.go │ │ │ └── utils.go │ ├── gc_test.go │ ├── grammar │ │ ├── grammar.go │ │ └── grammar_test.go │ ├── init.go │ ├── interface.go │ ├── internal │ │ ├── builder.go │ │ ├── builder_test.go │ │ ├── context.go │ │ ├── errors.go │ │ ├── repository.go │ │ ├── repotypes.go │ │ ├── suite_test.go │ │ └── uniform.go │ ├── ociutils │ │ ├── handler.go │ │ ├── helm │ │ │ ├── art_test.go │ │ │ ├── artifact.go │ │ │ ├── ignore │ │ │ │ ├── doc.go │ │ │ │ ├── rules.go │ │ │ │ ├── rules_test.go │ │ │ │ └── testdata │ │ │ │ │ ├── .helmignore │ │ │ │ │ ├── .joonix │ │ │ │ │ ├── a.txt │ │ │ │ │ ├── cargo │ │ │ │ │ ├── a.txt │ │ │ │ │ ├── b.txt │ │ │ │ │ └── c.txt │ │ │ │ │ ├── helm.txt │ │ │ │ │ ├── mast │ │ │ │ │ ├── a.txt │ │ │ │ │ ├── b.txt │ │ │ │ │ └── c.txt │ │ │ │ │ ├── rudder.txt │ │ │ │ │ ├── templates │ │ │ │ │ └── .dotfile │ │ │ │ │ └── tiller.txt │ │ │ ├── suite_test.go │ │ │ ├── sympath │ │ │ │ ├── walk.go │ │ │ │ └── walk_test.go │ │ │ └── testdata │ │ │ │ ├── testchart.prov │ │ │ │ └── testchart │ │ │ │ ├── .helmignore │ │ │ │ ├── Chart.yaml │ │ │ │ ├── templates │ │ │ │ ├── NOTES.txt │ │ │ │ ├── _helpers.tpl │ │ │ │ ├── deployment.yaml │ │ │ │ ├── hpa.yaml │ │ │ │ ├── ingress.yaml │ │ │ │ ├── service.yaml │ │ │ │ ├── serviceaccount.yaml │ │ │ │ └── tests │ │ │ │ │ └── test-connection.yaml │ │ │ │ └── values.yaml │ │ ├── info.go │ │ ├── print.go │ │ ├── ref.go │ │ ├── ref_test.go │ │ └── suite_test.go │ ├── ref.go │ ├── ref_test.go │ ├── session.go │ ├── suite_test.go │ ├── testhelper │ │ ├── manifests.go │ │ └── oci.go │ ├── tools │ │ └── transfer │ │ │ ├── filters │ │ │ └── filter.go │ │ │ ├── suite_test.go │ │ │ ├── transfer.go │ │ │ └── transfer_test.go │ ├── types │ │ └── interface.go │ └── utils.go ├── ocm │ ├── add_test.go │ ├── bind_test.go │ ├── builder.go │ ├── compdesc │ │ ├── accessors.go │ │ ├── codecs.go │ │ ├── compdesc_test.go │ │ ├── componentdescriptor.go │ │ ├── copy_test.go │ │ ├── default.go │ │ ├── equal.go │ │ ├── equal_test.go │ │ ├── equivalent │ │ │ ├── equal.go │ │ │ └── testhelper │ │ │ │ └── helper.go │ │ ├── generic.go │ │ ├── helper.go │ │ ├── init.go │ │ ├── logging.go │ │ ├── logging_test.go │ │ ├── meta.go │ │ ├── meta │ │ │ └── v1 │ │ │ │ ├── identity.go │ │ │ │ ├── identity_test.go │ │ │ │ ├── labels.go │ │ │ │ ├── labels_test.go │ │ │ │ ├── resourceref.go │ │ │ │ ├── signature.go │ │ │ │ ├── stringmap.go │ │ │ │ ├── suite_test.go │ │ │ │ ├── types.go │ │ │ │ ├── types_test.go │ │ │ │ ├── utils.go │ │ │ │ └── zz_generated.deepcopy.go │ │ ├── none.go │ │ ├── norm_test.go │ │ ├── normalization.go │ │ ├── normalizations │ │ │ ├── init.go │ │ │ ├── jsonv1 │ │ │ │ └── norm.go │ │ │ ├── jsonv2 │ │ │ │ └── norm.go │ │ │ ├── jsonv3 │ │ │ │ └── norm.go │ │ │ ├── legacy │ │ │ │ └── legacy.go │ │ │ └── rules │ │ │ │ └── compdescrules.go │ │ ├── resolver.go │ │ ├── resourceref.go │ │ ├── resourceref_test.go │ │ ├── schemes.go │ │ ├── selector.go │ │ ├── selector_test.go │ │ ├── signing.go │ │ ├── suite_test.go │ │ ├── testutils │ │ │ └── compnametest.go │ │ ├── util.go │ │ └── versions │ │ │ ├── init.go │ │ │ ├── ocm.software │ │ │ └── v3alpha1 │ │ │ │ ├── componentdescriptor.go │ │ │ │ ├── default.go │ │ │ │ ├── jsonscheme │ │ │ │ ├── bindata.go │ │ │ │ └── jsonscheme.go │ │ │ │ ├── signing.go │ │ │ │ ├── validation.go │ │ │ │ ├── validation_test.go │ │ │ │ ├── version.go │ │ │ │ └── zz_generated.deepcopy.go │ │ │ └── v2 │ │ │ ├── componentdescriptor.go │ │ │ ├── default.go │ │ │ ├── jsonscheme │ │ │ ├── bindata.go │ │ │ └── jsonscheme.go │ │ │ ├── signing.go │ │ │ ├── validation.go │ │ │ ├── validation_test.go │ │ │ ├── version.go │ │ │ └── zz_generated.deepcopy.go │ ├── config │ │ ├── config_test.go │ │ ├── suite_test.go │ │ └── type.go │ ├── cpi │ │ ├── README.md │ │ ├── accspeccpi │ │ │ ├── accessspec_options.go │ │ │ ├── accesstypes.go │ │ │ ├── interface.go │ │ │ ├── method.go │ │ │ └── methodview.go │ │ ├── builder.go │ │ ├── compose_test.go │ │ ├── dummy.go │ │ ├── interface.go │ │ ├── logging.go │ │ ├── modopts.go │ │ ├── ref.go │ │ ├── repocpi │ │ │ ├── README.md │ │ │ ├── backend.go │ │ │ ├── blobcache.go │ │ │ ├── bridge_c.go │ │ │ ├── bridge_cv.go │ │ │ ├── bridge_r.go │ │ │ ├── doc.go │ │ │ ├── helperinterfaces.go │ │ │ ├── interface.go │ │ │ ├── ocmimpllayers.png │ │ │ ├── view_c.go │ │ │ ├── view_cv.go │ │ │ └── view_r.go │ │ ├── repotypes.go │ │ ├── storagectx.go │ │ ├── suite_test.go │ │ ├── utils.go │ │ └── view_rsc.go │ ├── elements │ │ ├── artifactaccess │ │ │ ├── doc.go │ │ │ ├── genericaccess │ │ │ │ ├── resource.go │ │ │ │ ├── resource_test.go │ │ │ │ └── suite_test.go │ │ │ ├── gitaccess │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ │ ├── githubaccess │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ │ ├── helmaccess │ │ │ │ └── resource.go │ │ │ ├── mavenaccess │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ │ ├── npmaccess │ │ │ │ └── resource.go │ │ │ ├── ociartifactaccess │ │ │ │ └── resource.go │ │ │ ├── ociblobaccess │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ │ ├── ocmaccess │ │ │ │ ├── forward.go │ │ │ │ └── resource.go │ │ │ ├── s3access │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ │ └── wgetaccess │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ ├── artifactblob │ │ │ ├── api │ │ │ │ └── options.go │ │ │ ├── datablob │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ │ ├── dirtreeblob │ │ │ │ ├── options.go │ │ │ │ ├── resource.go │ │ │ │ ├── resource_test.go │ │ │ │ ├── suite_test.go │ │ │ │ └── testdata │ │ │ │ │ └── dir │ │ │ │ │ ├── a │ │ │ │ │ ├── b │ │ │ │ │ └── c │ │ │ ├── doc.go │ │ │ ├── dockerdaemonblob │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ │ ├── dockermultiblob │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ │ ├── externalblob │ │ │ │ ├── doc.go │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ │ ├── fileblob │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ │ ├── genericblob │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ │ ├── helmblob │ │ │ │ ├── helmblob_test.go │ │ │ │ ├── options.go │ │ │ │ ├── resource.go │ │ │ │ ├── suite_test.go │ │ │ │ └── testdata │ │ │ │ │ ├── testchart1 │ │ │ │ │ ├── .helmignore │ │ │ │ │ ├── .idea │ │ │ │ │ │ └── somefile │ │ │ │ │ ├── Chart.yaml │ │ │ │ │ ├── templates │ │ │ │ │ │ ├── NOTES.txt │ │ │ │ │ │ ├── _helpers.tpl │ │ │ │ │ │ ├── deployment.yaml │ │ │ │ │ │ ├── hpa.yaml │ │ │ │ │ │ ├── ingress.yaml │ │ │ │ │ │ ├── service.yaml │ │ │ │ │ │ ├── serviceaccount.yaml │ │ │ │ │ │ └── tests │ │ │ │ │ │ │ └── test-connection.yaml │ │ │ │ │ └── values.yaml │ │ │ │ │ └── testchart2 │ │ │ │ │ ├── .helmignore │ │ │ │ │ ├── .idea │ │ │ │ │ └── somefile │ │ │ │ │ ├── Chart.yaml │ │ │ │ │ ├── templates │ │ │ │ │ ├── NOTES.txt │ │ │ │ │ ├── _helpers.tpl │ │ │ │ │ ├── deployment.yaml │ │ │ │ │ ├── hpa.yaml │ │ │ │ │ ├── ingress.yaml │ │ │ │ │ ├── service.yaml │ │ │ │ │ ├── serviceaccount.yaml │ │ │ │ │ └── tests │ │ │ │ │ │ └── test-connection.yaml │ │ │ │ │ └── values.yaml │ │ │ ├── mavenblob │ │ │ │ ├── access_test.go │ │ │ │ ├── options.go │ │ │ │ ├── resource.go │ │ │ │ └── suite_test.go │ │ │ ├── npmblob │ │ │ │ ├── access_test.go │ │ │ │ ├── options.go │ │ │ │ ├── resource.go │ │ │ │ └── suite_test.go │ │ │ ├── ociartifactblob │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ │ ├── ocmblob │ │ │ │ ├── access_test.go │ │ │ │ ├── forward.go │ │ │ │ ├── options.go │ │ │ │ ├── resource.go │ │ │ │ └── suite_test.go │ │ │ ├── textblob │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ │ └── wgetblob │ │ │ │ ├── options.go │ │ │ │ └── resource.go │ │ ├── artifacts.go │ │ ├── common.go │ │ ├── digests.go │ │ ├── doc.go │ │ ├── references.go │ │ ├── resources.go │ │ ├── resources_test.go │ │ ├── sources.go │ │ └── suite_test.go │ ├── extensions │ │ ├── accessmethods │ │ │ ├── compose │ │ │ │ └── method.go │ │ │ ├── git │ │ │ │ ├── README.md │ │ │ │ ├── cli.go │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ ├── suite_test.go │ │ │ │ └── testdata │ │ │ │ │ └── repo │ │ │ │ │ └── file_in_repo │ │ │ ├── github │ │ │ │ ├── README.md │ │ │ │ ├── cli.go │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ ├── suite_test.go │ │ │ │ └── testdata │ │ │ │ │ └── repo.tar.gz │ │ │ ├── helm │ │ │ │ ├── README.md │ │ │ │ ├── cli.go │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ └── suite_test.go │ │ │ ├── init.go │ │ │ ├── localblob │ │ │ │ ├── README.md │ │ │ │ ├── cli.go │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ └── suite_test.go │ │ │ ├── localfsblob │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ └── suite_test.go │ │ │ ├── localociblob │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ └── suite_test.go │ │ │ ├── maven │ │ │ │ ├── README.md │ │ │ │ ├── cli.go │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ └── suite_test.go │ │ │ ├── none │ │ │ │ └── method.go │ │ │ ├── npm │ │ │ │ ├── README.md │ │ │ │ ├── cli.go │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ └── suite_test.go │ │ │ ├── ociartifact │ │ │ │ ├── README.md │ │ │ │ ├── cli.go │ │ │ │ ├── logging.go │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ ├── suite_test.go │ │ │ │ └── utils.go │ │ │ ├── ociblob │ │ │ │ ├── README.md │ │ │ │ ├── cli.go │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ └── suite_test.go │ │ │ ├── ocm │ │ │ │ ├── cli.go │ │ │ │ ├── cli_test.go │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ └── suite_test.go │ │ │ ├── options │ │ │ │ ├── doc.go │ │ │ │ ├── init.go │ │ │ │ ├── mapping.go │ │ │ │ ├── registry.go │ │ │ │ ├── registry_test.go │ │ │ │ ├── standard.go │ │ │ │ ├── suite_test.go │ │ │ │ └── types.go │ │ │ ├── plugin │ │ │ │ ├── cmd_test.go │ │ │ │ ├── doc.go │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ ├── plugin.go │ │ │ │ ├── suite_test.go │ │ │ │ ├── testdata │ │ │ │ │ └── test │ │ │ │ └── type.go │ │ │ ├── relativeociref │ │ │ │ ├── README.md │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ ├── suite_test.go │ │ │ │ └── transfer_test.go │ │ │ ├── s3 │ │ │ │ ├── README.md │ │ │ │ ├── cli.go │ │ │ │ ├── identity │ │ │ │ │ └── identity.go │ │ │ │ ├── ifce_test.go │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ ├── suite_test.go │ │ │ │ ├── testdata │ │ │ │ │ └── repo.tar.gz │ │ │ │ ├── v1.go │ │ │ │ └── v2.go │ │ │ └── wget │ │ │ │ ├── cli.go │ │ │ │ ├── logging.go │ │ │ │ ├── method.go │ │ │ │ ├── method_test.go │ │ │ │ ├── options.go │ │ │ │ └── suite_test.go │ │ ├── actionhandler │ │ │ ├── init.go │ │ │ └── plugin │ │ │ │ ├── action_test.go │ │ │ │ ├── actionhandler.go │ │ │ │ ├── registration.go │ │ │ │ ├── suite_test.go │ │ │ │ └── testdata │ │ │ │ └── action │ │ ├── artifacttypes │ │ │ └── const.go │ │ ├── attrs │ │ │ ├── compatattr │ │ │ │ ├── attr.go │ │ │ │ ├── attr_test.go │ │ │ │ └── suite_test.go │ │ │ ├── compositionmodeattr │ │ │ │ ├── attr.go │ │ │ │ ├── attr_test.go │ │ │ │ └── suite_test.go │ │ │ ├── hashattr │ │ │ │ ├── attr.go │ │ │ │ ├── attr_test.go │ │ │ │ ├── config.go │ │ │ │ └── suite_test.go │ │ │ ├── init.go │ │ │ ├── keepblobattr │ │ │ │ ├── attr.go │ │ │ │ ├── attr_test.go │ │ │ │ └── suite_test.go │ │ │ ├── mapocirepoattr │ │ │ │ ├── attr.go │ │ │ │ ├── attr_test.go │ │ │ │ └── suite_test.go │ │ │ ├── ociuploadattr │ │ │ │ ├── attr.go │ │ │ │ ├── attr_test.go │ │ │ │ └── suite_test.go │ │ │ ├── plugincacheattr │ │ │ │ └── attr.go │ │ │ ├── plugindirattr │ │ │ │ ├── attr.go │ │ │ │ ├── attr_test.go │ │ │ │ └── suite_test.go │ │ │ └── signingattr │ │ │ │ ├── attr.go │ │ │ │ ├── attr_test.go │ │ │ │ ├── config.go │ │ │ │ ├── setup.go │ │ │ │ └── suite_test.go │ │ ├── blobhandler │ │ │ ├── config │ │ │ │ └── type.go │ │ │ ├── doc.go │ │ │ ├── handlers │ │ │ │ ├── generic │ │ │ │ │ ├── maven │ │ │ │ │ │ ├── blobhandler.go │ │ │ │ │ │ ├── blobhandler_test.go │ │ │ │ │ │ ├── registration.go │ │ │ │ │ │ ├── registration_test.go │ │ │ │ │ │ └── suite_test.go │ │ │ │ │ ├── npm │ │ │ │ │ │ ├── blobhandler.go │ │ │ │ │ │ ├── publish.go │ │ │ │ │ │ ├── publish_test.go │ │ │ │ │ │ ├── registration.go │ │ │ │ │ │ ├── registration_test.go │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ └── testdata │ │ │ │ │ │ │ └── testdata.tgz │ │ │ │ │ ├── ocirepo │ │ │ │ │ │ ├── blobhandler.go │ │ │ │ │ │ ├── registration.go │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ └── upload_test.go │ │ │ │ │ └── plugin │ │ │ │ │ │ ├── blobhandler.go │ │ │ │ │ │ ├── registration.go │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ ├── testdata │ │ │ │ │ │ └── test │ │ │ │ │ │ └── upload_test.go │ │ │ │ ├── init.go │ │ │ │ ├── oci │ │ │ │ │ ├── ctx.go │ │ │ │ │ ├── doc.go │ │ │ │ │ └── ocirepo │ │ │ │ │ │ ├── blobhandler.go │ │ │ │ │ │ ├── handler_test.go │ │ │ │ │ │ └── suite_test.go │ │ │ │ └── ocm │ │ │ │ │ ├── comparch │ │ │ │ │ ├── blobhandler.go │ │ │ │ │ ├── blobhandler_test.go │ │ │ │ │ └── suite_test.go │ │ │ │ │ ├── ctx.go │ │ │ │ │ └── doc.go │ │ │ ├── interface.go │ │ │ └── registration.go │ │ ├── digester │ │ │ └── digesters │ │ │ │ ├── artifact │ │ │ │ └── digester.go │ │ │ │ ├── blob │ │ │ │ └── digester.go │ │ │ │ └── init.go │ │ ├── download │ │ │ ├── config │ │ │ │ ├── registration_test.go │ │ │ │ ├── suite_test.go │ │ │ │ └── type.go │ │ │ ├── doc.go │ │ │ ├── download.go │ │ │ ├── handlers │ │ │ │ ├── blob │ │ │ │ │ └── handler.go │ │ │ │ ├── blueprint │ │ │ │ │ ├── blueprint_test.go │ │ │ │ │ ├── extractor.go │ │ │ │ │ ├── handler.go │ │ │ │ │ ├── registration.go │ │ │ │ │ ├── registration_test.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ │ └── blueprint │ │ │ │ │ │ ├── blueprint.yaml │ │ │ │ │ │ └── test │ │ │ │ │ │ └── README.md │ │ │ │ ├── dirtree │ │ │ │ │ ├── README.md │ │ │ │ │ ├── dirtree_test.go │ │ │ │ │ ├── handler.go │ │ │ │ │ ├── registration.go │ │ │ │ │ ├── registration_test.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ │ └── layers │ │ │ │ │ │ ├── 0 │ │ │ │ │ │ └── testfile │ │ │ │ │ │ ├── 1 │ │ │ │ │ │ └── dir │ │ │ │ │ │ │ └── nestedfile │ │ │ │ │ │ └── all │ │ │ │ │ │ ├── dir │ │ │ │ │ │ └── nestedfile │ │ │ │ │ │ └── testfile │ │ │ │ ├── executable │ │ │ │ │ └── handler.go │ │ │ │ ├── helm │ │ │ │ │ ├── download.go │ │ │ │ │ ├── download_test.go │ │ │ │ │ ├── handler.go │ │ │ │ │ ├── handler_test.go │ │ │ │ │ ├── registration.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ │ ├── legacy-pre-hip-helm-chart.tgz │ │ │ │ │ │ ├── test-chart-oci-artifact.tgz │ │ │ │ │ │ ├── test-chart │ │ │ │ │ │ ├── .helmignore │ │ │ │ │ │ ├── Chart.yaml │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ └── configmap.yaml │ │ │ │ │ │ └── values.yaml │ │ │ │ │ │ └── unusual-ordered-helm-chart.tgz │ │ │ │ ├── init.go │ │ │ │ ├── ocirepo │ │ │ │ │ ├── handler.go │ │ │ │ │ ├── registration.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── upload_test.go │ │ │ │ └── plugin │ │ │ │ │ ├── download_test.go │ │ │ │ │ ├── handler.go │ │ │ │ │ ├── registration.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ └── test │ │ │ ├── logging.go │ │ │ ├── registration.go │ │ │ ├── registry.go │ │ │ └── setup.go │ │ ├── labels │ │ │ ├── init.go │ │ │ └── routingslip │ │ │ │ ├── entry.go │ │ │ │ ├── entrytypes_test.go │ │ │ │ ├── init.go │ │ │ │ ├── interface.go │ │ │ │ ├── internal │ │ │ │ ├── attr.go │ │ │ │ └── entrytypes.go │ │ │ │ ├── label.go │ │ │ │ ├── slip.go │ │ │ │ ├── slip_test.go │ │ │ │ ├── spi │ │ │ │ ├── entrytype_options.go │ │ │ │ ├── interface.go │ │ │ │ └── support.go │ │ │ │ ├── suite_test.go │ │ │ │ ├── transfer_test.go │ │ │ │ ├── types │ │ │ │ ├── comment │ │ │ │ │ ├── cli.go │ │ │ │ │ └── entry.go │ │ │ │ ├── init.go │ │ │ │ └── plugin │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── doc.go │ │ │ │ │ ├── entry.go │ │ │ │ │ ├── entry_test.go │ │ │ │ │ ├── plugin.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ ├── testdata │ │ │ │ │ └── test │ │ │ │ │ └── type.go │ │ │ │ └── usage.go │ │ ├── pubsub │ │ │ ├── attr.go │ │ │ ├── doc.go │ │ │ ├── interface.go │ │ │ ├── provider.go │ │ │ ├── providers │ │ │ │ ├── init.go │ │ │ │ └── ocireg │ │ │ │ │ ├── provider.go │ │ │ │ │ ├── provider_test.go │ │ │ │ │ └── suite_test.go │ │ │ ├── pubsub_test.go │ │ │ ├── setup.go │ │ │ ├── suite_test.go │ │ │ ├── types │ │ │ │ ├── compound │ │ │ │ │ └── type.go │ │ │ │ ├── init.go │ │ │ │ └── redis │ │ │ │ │ ├── identity │ │ │ │ │ └── identity.go │ │ │ │ │ ├── redis_test.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── type.go │ │ │ └── utils.go │ │ └── repositories │ │ │ ├── comparch │ │ │ ├── README.md │ │ │ ├── accessmethod_localfs.go │ │ │ ├── accessmethod_test.go │ │ │ ├── comparch_test.go │ │ │ ├── componentarchive.go │ │ │ ├── format.go │ │ │ ├── repository.go │ │ │ ├── state.go │ │ │ ├── suite_test.go │ │ │ ├── testdata │ │ │ │ ├── common │ │ │ │ │ ├── blobs │ │ │ │ │ │ └── sha256.3ed99e50092c619823e2c07941c175ea2452f1455f570c55510586b387ec2ff2 │ │ │ │ │ └── component-descriptor.yaml │ │ │ │ ├── descriptor │ │ │ │ │ └── component-descriptor.yaml │ │ │ │ └── directory │ │ │ │ │ ├── blobs │ │ │ │ │ └── root │ │ │ │ │ │ └── testfile │ │ │ │ │ └── component-descriptor.yaml │ │ │ ├── type.go │ │ │ └── uniform.go │ │ │ ├── composition │ │ │ ├── cache.go │ │ │ ├── close_test.go │ │ │ ├── gc_test.go │ │ │ ├── repository.go │ │ │ ├── repository_test.go │ │ │ ├── suite_test.go │ │ │ ├── type.go │ │ │ ├── version.go │ │ │ └── version_test.go │ │ │ ├── ctf │ │ │ ├── README.md │ │ │ ├── ctf_test.go │ │ │ ├── format.go │ │ │ ├── repo_test.go │ │ │ ├── suite_test.go │ │ │ ├── type.go │ │ │ └── uniform.go │ │ │ ├── genericocireg │ │ │ ├── accessmethod_localblob.go │ │ │ ├── accessmethod_localoclblob.go │ │ │ ├── annotation_test.go │ │ │ ├── bloblimits.go │ │ │ ├── component.go │ │ │ ├── componentmapping │ │ │ │ └── constants.go │ │ │ ├── componentversion.go │ │ │ ├── componentversion_test.go │ │ │ ├── config │ │ │ │ └── type.go │ │ │ ├── config_test.go │ │ │ ├── cred_test.go │ │ │ ├── excludes.go │ │ │ ├── fallback_test.go │ │ │ ├── info.go │ │ │ ├── logging.go │ │ │ ├── repo_test.go │ │ │ ├── repository.go │ │ │ ├── semver_test.go │ │ │ ├── spec_test.go │ │ │ ├── specnorm.go │ │ │ ├── state.go │ │ │ ├── suite_test.go │ │ │ ├── type.go │ │ │ └── uniform.go │ │ │ ├── init.go │ │ │ ├── ocireg │ │ │ ├── README.md │ │ │ ├── specnorm.go │ │ │ ├── specnorm_test.go │ │ │ ├── suite_test.go │ │ │ └── type.go │ │ │ └── virtual │ │ │ ├── access.go │ │ │ ├── accessmethod_localblob.go │ │ │ ├── component.go │ │ │ ├── componentversion.go │ │ │ ├── example │ │ │ ├── doc.go │ │ │ └── example.go │ │ │ ├── index.go │ │ │ ├── repo_test.go │ │ │ ├── repository.go │ │ │ ├── suite_test.go │ │ │ ├── testdata │ │ │ ├── blobs │ │ │ │ ├── blob1 │ │ │ │ └── blob2 │ │ │ └── descriptors │ │ │ │ ├── cd1.yaml │ │ │ │ └── cd2.yaml │ │ │ └── type.go │ ├── extraid │ │ └── extra_identities.go │ ├── gc_test.go │ ├── grammar │ │ ├── grammar.go │ │ ├── grammar_test.go │ │ └── suite_test.go │ ├── init.go │ ├── interface.go │ ├── internal │ │ ├── accessspecref.go │ │ ├── accesstypes.go │ │ ├── blobhandler.go │ │ ├── blobhandler_test.go │ │ ├── builder.go │ │ ├── builder_test.go │ │ ├── context.go │ │ ├── context_test.go │ │ ├── delegation.go │ │ ├── digesthandler.go │ │ ├── digesthandler_test.go │ │ ├── errors.go │ │ ├── hasher.go │ │ ├── modopts.go │ │ ├── repository.go │ │ ├── repotypes.go │ │ ├── resolver.go │ │ ├── suite_test.go │ │ ├── uniform.go │ │ └── uniform_test.go │ ├── modopts.go │ ├── ocmutils │ │ ├── check │ │ │ ├── check.go │ │ │ ├── check_test.go │ │ │ ├── options.go │ │ │ └── suite_test.go │ │ ├── configure.go │ │ ├── defaultconfigregistry │ │ │ └── configure.go │ │ ├── localize │ │ │ ├── README.md │ │ │ ├── config.go │ │ │ ├── config_test.go │ │ │ ├── format.go │ │ │ ├── instantiate.go │ │ │ ├── instantiate_test.go │ │ │ ├── localize.go │ │ │ ├── localize_test.go │ │ │ ├── subst.go │ │ │ ├── subst_test.go │ │ │ ├── suite_test.go │ │ │ ├── target_test.go │ │ │ ├── testdata │ │ │ │ └── dir │ │ │ │ │ ├── manifest1.yaml │ │ │ │ │ ├── manifest2.yaml │ │ │ │ │ └── some.json │ │ │ └── utils_test.go │ │ ├── registry │ │ │ ├── registry.go │ │ │ ├── registry_test.go │ │ │ ├── regkey.go │ │ │ └── suite_test.go │ │ ├── resource.go │ │ ├── suite_test.go │ │ ├── utils.go │ │ └── walk.go │ ├── plugin │ │ ├── cache │ │ │ ├── dircache.go │ │ │ ├── doc.go │ │ │ ├── exec.go │ │ │ ├── plugin.go │ │ │ ├── plugindir.go │ │ │ ├── registry.go │ │ │ └── updater.go │ │ ├── common │ │ │ ├── common.go │ │ │ └── describe.go │ │ ├── config │ │ │ └── type.go │ │ ├── descriptor │ │ │ ├── const.go │ │ │ ├── descriptor.go │ │ │ ├── doc.go │ │ │ ├── keys.go │ │ │ ├── suite_test.go │ │ │ ├── utils.go │ │ │ └── utils_test.go │ │ ├── doc.go │ │ ├── interface.go │ │ ├── internal │ │ │ ├── access.go │ │ │ ├── action.go │ │ │ ├── upload.go │ │ │ └── valueset.go │ │ ├── plugin.go │ │ ├── plugin_test.go │ │ ├── plugins │ │ │ └── plugins.go │ │ ├── ppi │ │ │ ├── clicmd │ │ │ │ ├── options.go │ │ │ │ └── utils.go │ │ │ ├── cmds │ │ │ │ ├── accessmethod │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── compose │ │ │ │ │ │ └── cmd.go │ │ │ │ │ ├── get │ │ │ │ │ │ └── cmd.go │ │ │ │ │ └── validate │ │ │ │ │ │ └── cmd.go │ │ │ │ ├── action │ │ │ │ │ ├── cmd.go │ │ │ │ │ └── execute │ │ │ │ │ │ └── cmd.go │ │ │ │ ├── app.go │ │ │ │ ├── command │ │ │ │ │ ├── cmd.go │ │ │ │ │ └── config.go │ │ │ │ ├── common │ │ │ │ │ └── const.go │ │ │ │ ├── desc.go │ │ │ │ ├── describe │ │ │ │ │ └── cmd.go │ │ │ │ ├── doc │ │ │ │ │ └── generate.go │ │ │ │ ├── download │ │ │ │ │ └── cmd.go │ │ │ │ ├── info │ │ │ │ │ └── cmd.go │ │ │ │ ├── logging.go │ │ │ │ ├── mergehandler │ │ │ │ │ ├── cmd.go │ │ │ │ │ └── execute │ │ │ │ │ │ └── cmd.go │ │ │ │ ├── topics │ │ │ │ │ └── descriptor │ │ │ │ │ │ └── topic.go │ │ │ │ ├── upload │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── put │ │ │ │ │ │ └── cmd.go │ │ │ │ │ └── validate │ │ │ │ │ │ └── cmd.go │ │ │ │ └── valueset │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── compose │ │ │ │ │ └── cmd.go │ │ │ │ │ └── validate │ │ │ │ │ └── cmd.go │ │ │ ├── config │ │ │ │ ├── config.go │ │ │ │ └── doc.go │ │ │ ├── doc.go │ │ │ ├── interface.go │ │ │ ├── logging │ │ │ │ ├── config.go │ │ │ │ └── doc.go │ │ │ ├── options.go │ │ │ ├── plugin.go │ │ │ └── utils.go │ │ ├── registration │ │ │ ├── logging.go │ │ │ └── registration.go │ │ ├── suite_test.go │ │ ├── testdata │ │ │ ├── action │ │ │ ├── identity │ │ │ ├── merge │ │ │ └── test │ │ ├── testutils │ │ │ └── plugintests.go │ │ └── utils.go │ ├── ref.go │ ├── ref_test.go │ ├── repo_test.go │ ├── resolvers │ │ ├── component.go │ │ ├── component_test.go │ │ ├── forward.go │ │ ├── resolver.go │ │ ├── resolver_test.go │ │ └── suite_test.go │ ├── resourcerefs │ │ ├── resourceref.go │ │ ├── resourceref_test.go │ │ └── suite_test.go │ ├── selectors │ │ ├── accessors │ │ │ └── accessors.go │ │ ├── artifacts.go │ │ ├── identity.go │ │ ├── label.go │ │ ├── labelsel │ │ │ ├── interface.go │ │ │ ├── label_test.go │ │ │ ├── operators.go │ │ │ └── suite_test.go │ │ ├── refsel │ │ │ ├── element.go │ │ │ ├── interface.go │ │ │ └── operators.go │ │ ├── rscsel │ │ │ ├── artifact.go │ │ │ ├── element.go │ │ │ ├── interface.go │ │ │ └── operators.go │ │ ├── select.go │ │ └── srcsel │ │ │ ├── artifact.go │ │ │ ├── element.go │ │ │ ├── interface.go │ │ │ └── operators.go │ ├── session.go │ ├── session_test.go │ ├── suite_test.go │ ├── testhelper │ │ ├── references.go │ │ ├── refmgmt.go │ │ └── resources.go │ ├── tools │ │ ├── signing │ │ │ ├── convenience.go │ │ │ ├── digest.go │ │ │ ├── digest_test.go │ │ │ ├── digestctx.go │ │ │ ├── handle.go │ │ │ ├── handler_test.go │ │ │ ├── options.go │ │ │ ├── options_test.go │ │ │ ├── signing_test.go │ │ │ ├── signingtest │ │ │ │ ├── testdata.go │ │ │ │ └── testdata │ │ │ │ │ └── compat │ │ │ │ │ ├── component-archive │ │ │ │ │ ├── blobs │ │ │ │ │ │ └── sha256.c893900c1106f13d55648a425f502dd6518e40eaa3ac7d24023d4c73d55dc12e │ │ │ │ │ └── component-descriptor.yaml │ │ │ │ │ ├── rsa.priv │ │ │ │ │ └── rsa.pub │ │ │ ├── store.go │ │ │ ├── store_test.go │ │ │ ├── suite_test.go │ │ │ └── transport_test.go │ │ ├── toi │ │ │ ├── drivers │ │ │ │ ├── default │ │ │ │ │ └── driver.go │ │ │ │ ├── docker │ │ │ │ │ ├── client.go │ │ │ │ │ ├── driver.go │ │ │ │ │ └── opts.go │ │ │ │ ├── filesystem │ │ │ │ │ └── driver.go │ │ │ │ └── mock │ │ │ │ │ └── driver.go │ │ │ ├── install │ │ │ │ ├── action.go │ │ │ │ ├── action_test.go │ │ │ │ ├── bundle │ │ │ │ │ └── spec.go │ │ │ │ ├── credentials.go │ │ │ │ ├── credentials_test.go │ │ │ │ ├── execute.go │ │ │ │ ├── functions.go │ │ │ │ ├── interface.go │ │ │ │ └── suite_test.go │ │ │ ├── logging.go │ │ │ ├── spec.go │ │ │ └── support │ │ │ │ ├── README.md │ │ │ │ ├── app.go │ │ │ │ └── support.go │ │ └── transfer │ │ │ ├── autohandler.go │ │ │ ├── autohandler_test.go │ │ │ ├── convenience.go │ │ │ ├── debug.go │ │ │ ├── init.go │ │ │ ├── internal │ │ │ └── merge.go │ │ │ ├── logging.go │ │ │ ├── merge_test.go │ │ │ ├── needs.go │ │ │ ├── options.go │ │ │ ├── suite_test.go │ │ │ ├── transfer.go │ │ │ ├── transferhandler │ │ │ ├── config │ │ │ │ └── config.go │ │ │ ├── doc.go │ │ │ ├── registry.go │ │ │ ├── spiff │ │ │ │ ├── README.md │ │ │ │ ├── handler.go │ │ │ │ ├── handler_test.go │ │ │ │ ├── options.go │ │ │ │ └── suite_test.go │ │ │ ├── standard │ │ │ │ ├── compat_test.go │ │ │ │ ├── handler.go │ │ │ │ ├── handler_test.go │ │ │ │ ├── options.go │ │ │ │ ├── suite_test.go │ │ │ │ ├── testdata │ │ │ │ │ └── v0.18.0 │ │ │ │ │ │ ├── artifact-index.json │ │ │ │ │ │ └── blobs │ │ │ │ │ │ ├── sha256.210dda6808d47862660fdf5753d17e2b6152ff31fbd07ff947b821f717f1232a │ │ │ │ │ │ ├── sha256.916f0027a575074ce72a331777c3478d6513f786a591bd892da1a577bf2335f9 │ │ │ │ │ │ ├── sha256.920ce99fb13b43ca0408caee6e61f6335ea5156d79aa98e733e1ed2393e0f649 │ │ │ │ │ │ ├── sha256.958eb6b2928a569d7aaab2aa924fb236e977bfbc43309908aa9c45b154f689cd │ │ │ │ │ │ └── sha256.a4b84597729cfa026c51a47e903f449ad7b4a9ec9897f2084b982a66fcdbfb5f │ │ │ │ ├── utils.go │ │ │ │ └── utils_test.go │ │ │ └── transferhandler.go │ │ │ └── transferrepo.go │ ├── types │ │ └── interface.go │ ├── usage.go │ ├── utils.go │ └── valuemergehandler │ │ ├── config │ │ ├── config_test.go │ │ ├── suite_test.go │ │ └── type.go │ │ ├── handlers │ │ ├── defaultmerge │ │ │ ├── config.go │ │ │ ├── handler.go │ │ │ ├── handler_test.go │ │ │ └── suite_test.go │ │ ├── init.go │ │ ├── maplistmerge │ │ │ ├── config.go │ │ │ ├── handler.go │ │ │ ├── handler_test.go │ │ │ └── suite_test.go │ │ ├── plugin │ │ │ ├── config.go │ │ │ ├── handler.go │ │ │ ├── handler_test.go │ │ │ ├── suite_test.go │ │ │ └── testdata │ │ │ │ └── merge │ │ ├── simplelistmerge │ │ │ ├── config.go │ │ │ ├── handler.go │ │ │ ├── handler_test.go │ │ │ └── suite_test.go │ │ └── simplemapmerge │ │ │ ├── config.go │ │ │ ├── handler.go │ │ │ ├── handler_test.go │ │ │ └── suite_test.go │ │ ├── hpi │ │ ├── interface.go │ │ ├── logging.go │ │ ├── merge.go │ │ ├── setup.go │ │ └── support.go │ │ ├── interface.go │ │ ├── internal │ │ ├── interface.go │ │ ├── support.go │ │ └── valuemergehandler.go │ │ ├── merge.go │ │ └── usage.go ├── tech │ ├── git │ │ ├── auth.go │ │ ├── fs.go │ │ ├── identity │ │ │ ├── identity.go │ │ │ ├── identity_test.go │ │ │ └── suite_test.go │ │ ├── logging.go │ │ ├── resolver.go │ │ ├── resolver_test.go │ │ ├── suite_test.go │ │ └── testdata │ │ │ └── repo │ │ │ └── file_in_repo │ ├── github │ │ └── identity │ │ │ └── identity.go │ ├── helm │ │ ├── chartaccess.go │ │ ├── downloader.go │ │ ├── identity │ │ │ ├── identity.go │ │ │ ├── identity_test.go │ │ │ └── suite_test.go │ │ ├── loader │ │ │ ├── access.go │ │ │ ├── directory.go │ │ │ ├── forward.go │ │ │ └── loader.go │ │ └── options.go │ ├── maven │ │ ├── access.go │ │ ├── access_test.go │ │ ├── coordinates.go │ │ ├── coordinates_test.go │ │ ├── identity │ │ │ └── identity.go │ │ ├── logging.go │ │ ├── maventest │ │ │ ├── const.go │ │ │ ├── testdata.go │ │ │ └── testdata │ │ │ │ └── .m2 │ │ │ │ ├── fail │ │ │ │ └── test │ │ │ │ │ └── repository │ │ │ │ │ └── 42 │ │ │ │ │ ├── repository-42.pom │ │ │ │ │ └── repository-42.pom.sha1 │ │ │ │ └── repository │ │ │ │ └── com │ │ │ │ └── sap │ │ │ │ └── cloud │ │ │ │ └── sdk │ │ │ │ └── sdk-modules-bom │ │ │ │ └── 5.7.0 │ │ │ │ ├── sdk-modules-bom-5.7.0-random-content.json │ │ │ │ ├── sdk-modules-bom-5.7.0-random-content.json.sha1 │ │ │ │ ├── sdk-modules-bom-5.7.0-random-content.txt │ │ │ │ ├── sdk-modules-bom-5.7.0-random-content.txt.sha1 │ │ │ │ ├── sdk-modules-bom-5.7.0-sources.jar │ │ │ │ ├── sdk-modules-bom-5.7.0-sources.jar.sha1 │ │ │ │ ├── sdk-modules-bom-5.7.0.jar │ │ │ │ ├── sdk-modules-bom-5.7.0.jar.sha1 │ │ │ │ ├── sdk-modules-bom-5.7.0.pom │ │ │ │ └── sdk-modules-bom-5.7.0.pom.sha1 │ │ ├── suite_test.go │ │ └── utils.go │ ├── npm │ │ ├── identity │ │ │ └── identity.go │ │ ├── login.go │ │ ├── npmtest │ │ │ ├── const.go │ │ │ ├── testdata.go │ │ │ └── testdata │ │ │ │ ├── content │ │ │ │ └── yargs │ │ │ │ │ └── yargs-17.7.1.tgz │ │ │ │ ├── failregistry │ │ │ │ └── yargs │ │ │ │ │ └── 17.7.1 │ │ │ │ └── registry │ │ │ │ └── yargs │ │ │ │ └── 17.7.1 │ │ └── structs.go │ ├── oci │ │ └── identity │ │ │ ├── creds.go │ │ │ ├── id_test.go │ │ │ ├── identity.go │ │ │ └── suite_test.go │ ├── oras │ │ ├── client.go │ │ ├── fetcher.go │ │ ├── interface.go │ │ ├── lister.go │ │ ├── manifest.go │ │ └── pusher.go │ ├── signing │ │ ├── cert.go │ │ ├── cert_test.go │ │ ├── encrypt.go │ │ ├── handlers │ │ │ ├── init.go │ │ │ ├── rsa-pss-signingservice │ │ │ │ └── handler.go │ │ │ ├── rsa-pss │ │ │ │ └── handler.go │ │ │ ├── rsa-signingservice │ │ │ │ ├── README.md │ │ │ │ ├── client.go │ │ │ │ ├── credentials.go │ │ │ │ └── handler.go │ │ │ ├── rsa │ │ │ │ ├── certhelper.go │ │ │ │ ├── format.go │ │ │ │ └── handler.go │ │ │ └── sigstore │ │ │ │ ├── attr │ │ │ │ └── attr.go │ │ │ │ └── handler.go │ │ ├── hasher │ │ │ ├── hashfuncs.go │ │ │ ├── init.go │ │ │ ├── nodigest │ │ │ │ └── hasher.go │ │ │ ├── sha256 │ │ │ │ └── hasher.go │ │ │ └── sha512 │ │ │ │ └── hasher.go │ │ ├── hashfuncs.go │ │ ├── norm │ │ │ ├── entry │ │ │ │ └── norm.go │ │ │ └── jcs │ │ │ │ └── norm.go │ │ ├── normalization.go │ │ ├── normalization_test.go │ │ ├── registry.go │ │ ├── rules.go │ │ ├── signing_test.go │ │ ├── signutils │ │ │ ├── certs.go │ │ │ ├── certs_test.go │ │ │ ├── names.go │ │ │ ├── names_test.go │ │ │ ├── signature.go │ │ │ ├── suite_test.go │ │ │ ├── types.go │ │ │ └── utils.go │ │ ├── suite_test.go │ │ ├── tsa │ │ │ ├── pem.go │ │ │ ├── tsa.go │ │ │ └── types.go │ │ ├── types.go │ │ ├── utils.go │ │ └── x509_certificate.go │ └── wget │ │ └── identity │ │ ├── identity.go │ │ ├── identity_test.go │ │ └── suite_test.go ├── utils │ ├── accessio │ │ ├── access.go │ │ ├── cache.go │ │ ├── cache_test.go │ │ ├── downloader │ │ │ ├── downloader.go │ │ │ ├── http │ │ │ │ └── downloader.go │ │ │ └── s3 │ │ │ │ └── downloader.go │ │ ├── format.go │ │ ├── limitwriter.go │ │ ├── ondemandreader.go │ │ ├── opts.go │ │ ├── resettablereader.go │ │ ├── resettablereader_test.go │ │ ├── retry_test.go │ │ ├── suite_test.go │ │ ├── utils.go │ │ └── wrapper.go │ ├── accessobj │ │ ├── accessobject.go │ │ ├── accessstate.go │ │ ├── cachedblob.go │ │ ├── cachedblob_test.go │ │ ├── check.go │ │ ├── filesystemaccess.go │ │ ├── format-directory.go │ │ ├── format-tar.go │ │ ├── format-tgz.go │ │ ├── format.go │ │ ├── suite_test.go │ │ └── utils.go │ ├── blobaccess │ │ ├── blobaccess │ │ │ ├── access.go │ │ │ ├── blobaccess_test.go │ │ │ ├── cached.go │ │ │ ├── compress.go │ │ │ ├── compress_test.go │ │ │ ├── data.go │ │ │ ├── dataaccess.go │ │ │ ├── digest.go │ │ │ ├── doc.go │ │ │ ├── interface.go │ │ │ ├── other.go │ │ │ ├── standard.go │ │ │ ├── suite_test.go │ │ │ └── utils.go │ │ ├── bpi │ │ │ ├── interface.go │ │ │ ├── utils.go │ │ │ └── view.go │ │ ├── dirtree │ │ │ ├── access.go │ │ │ └── options.go │ │ ├── doc.go │ │ ├── dockerdaemon │ │ │ ├── access.go │ │ │ └── options.go │ │ ├── dockermulti │ │ │ ├── access.go │ │ │ └── options.go │ │ ├── file │ │ │ ├── access.go │ │ │ ├── options.go │ │ │ ├── suite_test.go │ │ │ └── temp_test.go │ │ ├── forward.go │ │ ├── git │ │ │ ├── access.go │ │ │ ├── access_test.go │ │ │ ├── digest.go │ │ │ ├── options.go │ │ │ ├── suite_test.go │ │ │ └── testdata │ │ │ │ └── repo │ │ │ │ ├── dir │ │ │ │ └── file_in_dir_in_repo │ │ │ │ └── file_in_repo │ │ ├── helm │ │ │ ├── access.go │ │ │ └── options.go │ │ ├── interface.go │ │ ├── internal │ │ │ └── interface.go │ │ ├── maven │ │ │ ├── access.go │ │ │ ├── access_test.go │ │ │ ├── maven.go │ │ │ ├── options.go │ │ │ ├── suite_test.go │ │ │ └── utils.go │ │ ├── npm │ │ │ ├── access.go │ │ │ ├── access_test.go │ │ │ ├── npm.go │ │ │ ├── options.go │ │ │ └── suite_test.go │ │ ├── ociartifact │ │ │ ├── access.go │ │ │ └── options.go │ │ ├── ocm │ │ │ ├── access.go │ │ │ ├── access_test.go │ │ │ ├── compvers.go │ │ │ ├── ref.go │ │ │ └── suite_test.go │ │ └── wget │ │ │ ├── access.go │ │ │ ├── logging.go │ │ │ └── options.go │ ├── clisupport │ │ ├── identity.go │ │ ├── identity_test.go │ │ ├── labels.go │ │ └── suite_test.go │ ├── cobrautils │ │ ├── cleanup_test.go │ │ ├── flag │ │ │ ├── bytes.go │ │ │ ├── identity_path.go │ │ │ ├── identity_path_test.go │ │ │ ├── labelledstring.go │ │ │ ├── labelledstring_test.go │ │ │ ├── labelledvalue.go │ │ │ ├── labelledvalue_test.go │ │ │ ├── path.go │ │ │ ├── path_array.go │ │ │ ├── path_array_test.go │ │ │ ├── path_array_win_test.go │ │ │ ├── path_test.go │ │ │ ├── path_win_test.go │ │ │ ├── replace.go │ │ │ ├── semver.go │ │ │ ├── semver_constraint.go │ │ │ ├── string_colon_stringslice.go │ │ │ ├── string_colon_stringslice_test.go │ │ │ ├── string_to_string.go │ │ │ ├── string_to_string_test.go │ │ │ ├── string_to_stringslice.go │ │ │ ├── string_to_stringslice_test.go │ │ │ ├── string_to_value.go │ │ │ ├── string_to_value_test.go │ │ │ ├── suite_test.go │ │ │ ├── yaml.go │ │ │ └── yaml_test.go │ │ ├── flagsets │ │ │ ├── configoptions.go │ │ │ ├── configoptionset.go │ │ │ ├── configure_test.go │ │ │ ├── filter.go │ │ │ ├── flags_test.go │ │ │ ├── flagsetscheme │ │ │ │ ├── doc.go │ │ │ │ ├── scheme.go │ │ │ │ ├── types.go │ │ │ │ └── types_options.go │ │ │ ├── handler.go │ │ │ ├── provider.go │ │ │ ├── suite_test.go │ │ │ ├── types.go │ │ │ ├── typeset_test.go │ │ │ ├── utils.go │ │ │ └── utils_test.go │ │ ├── funcs.go │ │ ├── groups │ │ │ └── flagusages.go │ │ ├── links.go │ │ ├── logopts │ │ │ ├── close_test.go │ │ │ ├── config.go │ │ │ ├── doc.go │ │ │ ├── logging │ │ │ │ ├── config.go │ │ │ │ ├── global.go │ │ │ │ └── logfiles.go │ │ │ ├── options.go │ │ │ ├── options_test.go │ │ │ └── suite_test.go │ │ ├── suite_test.go │ │ ├── template.go │ │ ├── tweak.go │ │ └── utils.go │ ├── compression │ │ ├── LICENSE │ │ ├── README.md │ │ ├── c_bzip2.go │ │ ├── c_gzip.go │ │ ├── c_xz.go │ │ ├── c_zstd.go │ │ ├── compression.go │ │ ├── compression_test.go │ │ ├── default.go │ │ ├── fixtures │ │ │ ├── Hello.bz2 │ │ │ ├── Hello.gz │ │ │ ├── Hello.uncompressed │ │ │ ├── Hello.xz │ │ │ └── Hello.zst │ │ ├── matchreader.go │ │ ├── types.go │ │ └── utils.go │ ├── ctf.go │ ├── dirtree │ │ ├── context.go │ │ ├── dirtree.go │ │ ├── suite_test.go │ │ ├── tar.go │ │ ├── testdata │ │ │ ├── fs.tar │ │ │ └── fs │ │ │ │ ├── data │ │ │ │ ├── dir │ │ │ │ └── file │ │ │ │ └── link │ │ ├── utils.go │ │ ├── vfs.go │ │ └── vfs_test.go │ ├── encrypt │ │ └── encrypt.go │ ├── errkind │ │ ├── kinds.go │ │ └── utils.go │ ├── filelock │ │ ├── lock.go │ │ ├── lock_test.go │ │ ├── suite_test.go │ │ └── testdata │ │ │ └── lock │ ├── iotools │ │ ├── countingreader.go │ │ ├── digestreader.go │ │ ├── digests.go │ │ ├── digests_test.go │ │ ├── digestwriter.go │ │ ├── files.go │ │ ├── hashReaderWriter.go │ │ ├── hashReaderWriter_test.go │ │ ├── readerwriter.go │ │ ├── suite_test.go │ │ └── utils.go │ ├── key.go │ ├── keyinfo.go │ ├── listformat │ │ └── listhelp.go │ ├── locator.go │ ├── log.go │ ├── logging │ │ ├── config_test.go │ │ ├── interface.go │ │ ├── logging.go │ │ ├── roundtripper.go │ │ ├── roundtripper_test.go │ │ ├── stdkeys.go │ │ ├── suite_test.go │ │ ├── testhelper │ │ │ └── testhelper.go │ │ └── utils.go │ ├── mime │ │ ├── types.go │ │ └── util.go │ ├── misc │ │ ├── const.go │ │ ├── context.go │ │ ├── history.go │ │ ├── history_test.go │ │ ├── printer.go │ │ ├── printer_test.go │ │ ├── properties.go │ │ ├── suite_test.go │ │ ├── types.go │ │ ├── utils.go │ │ └── walk.go │ ├── out │ │ └── context.go │ ├── panics │ │ ├── panics.go │ │ ├── panics_test.go │ │ └── suite_test.go │ ├── path.go │ ├── refmgmt │ │ ├── doc.go │ │ ├── finalized │ │ │ ├── doc.go │ │ │ ├── finalized_test.go │ │ │ ├── finalizedref.go │ │ │ └── suite_test.go │ │ ├── refcloser.go │ │ ├── refmgmt.go │ │ ├── resource │ │ │ ├── doc.go │ │ │ ├── resource.go │ │ │ ├── resource_test.go │ │ │ └── suite_test.go │ │ ├── suite_test.go │ │ ├── view.go │ │ └── view_test.go │ ├── registrations │ │ ├── info.go │ │ ├── registrations.go │ │ ├── registrations_test.go │ │ ├── suite_test.go │ │ └── utils.go │ ├── runtime │ │ ├── README.md │ │ ├── binary.go │ │ ├── convert.go │ │ ├── datatypes.go │ │ ├── descriptivetype │ │ │ ├── options.go │ │ │ └── type.go │ │ ├── encoding.go │ │ ├── multi.go │ │ ├── multi_test.go │ │ ├── object_test.go │ │ ├── scheme.go │ │ ├── scheme_test.go │ │ ├── suite_test.go │ │ ├── typedobject.go │ │ ├── unstructured.go │ │ ├── unstructured_test.go │ │ ├── unstructuredversioned.go │ │ ├── utils.go │ │ ├── validate.go │ │ ├── value.go │ │ ├── version_test.go │ │ └── versionedtype.go │ ├── runtimefinalizer │ │ ├── object.go │ │ ├── object_test.go │ │ └── suite_test.go │ ├── semverutils │ │ ├── sort.go │ │ ├── suite_test.go │ │ ├── utils.go │ │ └── utils_test.go │ ├── spiff │ │ ├── options.go │ │ ├── spiff.go │ │ ├── spiff_test.go │ │ ├── suite_test.go │ │ └── validate.go │ ├── stdopts │ │ ├── compound.go │ │ └── stdopts.go │ ├── subst │ │ ├── subst.go │ │ ├── subst_test.go │ │ └── suite_test.go │ ├── suite_test.go │ ├── tarutils │ │ ├── compress.go │ │ ├── extract.go │ │ ├── list.go │ │ ├── pack.go │ │ ├── pack_test.go │ │ ├── suite_test.go │ │ └── testdata │ │ │ ├── dir │ │ │ ├── dirlink │ │ │ ├── link │ │ │ ├── regular │ │ │ └── subdir │ │ │ │ └── file │ │ │ ├── dir2 │ │ │ └── file2 │ │ │ └── file │ ├── tcp │ │ └── ping.go │ ├── template │ │ ├── gotmpl.go │ │ ├── merge.go │ │ ├── none.go │ │ ├── registry.go │ │ ├── spiff.go │ │ ├── subst.go │ │ ├── template.go │ │ ├── template_test.go │ │ └── testdata │ │ │ └── env.values │ ├── time.go │ ├── unwrap.go │ ├── url.go │ ├── utils.go │ ├── utils_test.go │ └── validate.go └── version │ ├── generate │ └── release_generate.go │ └── version.go ├── cmds ├── cliplugin │ ├── cmds │ │ ├── check │ │ │ ├── cmd.go │ │ │ └── config.go │ │ ├── cmd_test.go │ │ ├── suite_test.go │ │ └── testdata │ │ │ ├── config.yaml │ │ │ ├── err.yaml │ │ │ ├── globallogcfg.yaml │ │ │ ├── logcfg.yaml │ │ │ └── plugins │ │ │ └── cliplugin │ ├── main.go │ └── testdata │ │ └── config.yaml ├── demoplugin │ ├── accessmethods │ │ └── demo.go │ ├── common │ │ └── const.go │ ├── config │ │ └── config.go │ ├── main.go │ ├── uploaders │ │ ├── demo.go │ │ └── writer.go │ └── valuesets │ │ ├── check.go │ │ ├── check_test.go │ │ ├── suite_test.go │ │ └── testdata │ │ └── demo ├── ecrplugin │ ├── README.md │ ├── actions │ │ └── action.go │ ├── config │ │ ├── config.go │ │ └── tweak.go │ └── main.go ├── helminstaller │ ├── README.md │ ├── app │ │ ├── app.go │ │ ├── config.go │ │ ├── driver │ │ │ ├── driver.go │ │ │ └── helm │ │ │ │ ├── driver.go │ │ │ │ ├── install.go │ │ │ │ └── uninstall.go │ │ ├── execute.go │ │ ├── executor.go │ │ └── set.go │ ├── main.go │ └── testhelper │ │ └── env.go ├── jfrogplugin │ ├── config │ │ └── config.go │ ├── main.go │ ├── main_test.go │ ├── ppi │ │ └── ppi.go │ ├── suite_test.go │ ├── testhelper │ │ └── env.go │ └── uploaders │ │ └── helm │ │ ├── convert.go │ │ ├── headers.go │ │ ├── helm.go │ │ ├── reindex.go │ │ ├── upload.go │ │ └── upload_test.go ├── ocm │ ├── app │ │ ├── README.md │ │ ├── app.go │ │ ├── app_test.go │ │ ├── prepare.go │ │ ├── suite_test.go │ │ └── testdata │ │ │ ├── attr.yaml │ │ │ └── logcfg.yaml │ ├── clippi │ │ └── config │ │ │ ├── evaluated.go │ │ │ └── type.go │ ├── commands │ │ ├── cachecmds │ │ │ ├── clean │ │ │ │ └── cmd.go │ │ │ ├── cmd.go │ │ │ ├── describe │ │ │ │ └── cmd.go │ │ │ └── names │ │ │ │ └── names.go │ │ ├── common │ │ │ ├── elements │ │ │ │ └── components │ │ │ │ │ └── cmd.go │ │ │ └── options │ │ │ │ ├── closureoption │ │ │ │ └── option.go │ │ │ │ ├── destoption │ │ │ │ └── option.go │ │ │ │ ├── failonerroroption │ │ │ │ └── option.go │ │ │ │ ├── formatoption │ │ │ │ └── option.go │ │ │ │ └── keyoption │ │ │ │ ├── config.go │ │ │ │ └── option.go │ │ ├── controllercmds │ │ │ ├── common │ │ │ │ ├── applyer.go │ │ │ │ ├── fetcher.go │ │ │ │ ├── log.go │ │ │ │ └── manifests.go │ │ │ ├── install │ │ │ │ ├── cmd.go │ │ │ │ ├── cmd_test.go │ │ │ │ ├── install_cert_manager.go │ │ │ │ ├── issuer │ │ │ │ │ └── registry_certificate.yaml │ │ │ │ ├── resource_manager.go │ │ │ │ ├── suite_test.go │ │ │ │ └── testdata │ │ │ │ │ └── install.yaml │ │ │ ├── names │ │ │ │ └── names.go │ │ │ └── uninstall │ │ │ │ ├── cmd.go │ │ │ │ ├── cmd_test.go │ │ │ │ ├── issuer │ │ │ │ └── registry_certificate.yaml │ │ │ │ ├── resource_manager.go │ │ │ │ ├── suite_test.go │ │ │ │ ├── testdata │ │ │ │ └── install.yaml │ │ │ │ └── uninstall_cert_manager.go │ │ ├── misccmds │ │ │ ├── action │ │ │ │ ├── cmd.go │ │ │ │ └── execute │ │ │ │ │ └── cmd.go │ │ │ ├── config │ │ │ │ ├── cmd.go │ │ │ │ └── get │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ ├── credentials │ │ │ │ ├── cmd.go │ │ │ │ └── get │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ ├── hash │ │ │ │ ├── cmd.go │ │ │ │ └── sign │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ ├── names │ │ │ │ └── names.go │ │ │ └── rsakeypair │ │ │ │ ├── cmd.go │ │ │ │ ├── cmd_test.go │ │ │ │ └── suite_test.go │ │ ├── ocicmds │ │ │ ├── artifacts │ │ │ │ ├── cmd.go │ │ │ │ ├── describe │ │ │ │ │ └── cmd.go │ │ │ │ ├── download │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── option.go │ │ │ │ │ └── suite_test.go │ │ │ │ ├── get │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── options.go │ │ │ │ │ └── suite_test.go │ │ │ │ └── transfer │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ ├── cmd.go │ │ │ ├── common │ │ │ │ ├── handlers │ │ │ │ │ └── artifacthdlr │ │ │ │ │ │ ├── attached.go │ │ │ │ │ │ ├── clean.go │ │ │ │ │ │ ├── closure.go │ │ │ │ │ │ ├── convert.go │ │ │ │ │ │ ├── sort.go │ │ │ │ │ │ └── typehandler.go │ │ │ │ ├── options │ │ │ │ │ └── repooption │ │ │ │ │ │ └── option.go │ │ │ │ └── utils.go │ │ │ ├── ctf │ │ │ │ ├── cmd.go │ │ │ │ └── create │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ ├── names │ │ │ │ └── names.go │ │ │ └── tags │ │ │ │ ├── cmd.go │ │ │ │ └── show │ │ │ │ ├── cmd.go │ │ │ │ ├── cmd_test.go │ │ │ │ └── suite_test.go │ │ ├── ocmcmds │ │ │ ├── cli │ │ │ │ ├── cmd.go │ │ │ │ └── download │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── const.go │ │ │ │ │ ├── is_unix.go │ │ │ │ │ ├── is_windows.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ ├── bin │ │ │ │ │ ├── ocm │ │ │ │ │ └── ocm.exe │ │ │ │ │ └── other │ │ │ │ │ └── dummy │ │ │ ├── cmd.go │ │ │ ├── common │ │ │ │ ├── addconfig.go │ │ │ │ ├── addhdlrs │ │ │ │ │ ├── base.go │ │ │ │ │ ├── comp │ │ │ │ │ │ ├── components.go │ │ │ │ │ │ └── elements.go │ │ │ │ │ ├── interface.go │ │ │ │ │ ├── options.go │ │ │ │ │ ├── refs │ │ │ │ │ │ └── elements.go │ │ │ │ │ ├── rscs │ │ │ │ │ │ └── elements.go │ │ │ │ │ ├── srcs │ │ │ │ │ │ └── elements.go │ │ │ │ │ └── utils.go │ │ │ │ ├── cmds │ │ │ │ │ └── signing │ │ │ │ │ │ └── cmd.go │ │ │ │ ├── handlers │ │ │ │ │ ├── README.md │ │ │ │ │ ├── comphdlr │ │ │ │ │ │ ├── closure.go │ │ │ │ │ │ ├── convert.go │ │ │ │ │ │ ├── options.go │ │ │ │ │ │ ├── sort.go │ │ │ │ │ │ ├── typehandler.go │ │ │ │ │ │ └── util.go │ │ │ │ │ ├── elemhdlr │ │ │ │ │ │ ├── convert.go │ │ │ │ │ │ ├── options.go │ │ │ │ │ │ ├── output.go │ │ │ │ │ │ ├── sort.go │ │ │ │ │ │ └── typehandler.go │ │ │ │ │ ├── pluginhdlr │ │ │ │ │ │ └── typehandler.go │ │ │ │ │ ├── verifiedhdlr │ │ │ │ │ │ └── typehandler.go │ │ │ │ │ └── vershdlr │ │ │ │ │ │ ├── options.go │ │ │ │ │ │ ├── sort.go │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ ├── typehandler.go │ │ │ │ │ │ └── typehandler_test.go │ │ │ │ ├── inputs │ │ │ │ │ ├── cpi │ │ │ │ │ │ └── helper.go │ │ │ │ │ ├── inputfields.go │ │ │ │ │ ├── inputtype.go │ │ │ │ │ ├── inputtype_test.go │ │ │ │ │ ├── options │ │ │ │ │ │ └── standard.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ ├── testutils │ │ │ │ │ │ └── testutils.go │ │ │ │ │ ├── types │ │ │ │ │ │ ├── binary │ │ │ │ │ │ │ ├── cli.go │ │ │ │ │ │ │ ├── inputtype_test.go │ │ │ │ │ │ │ ├── spec.go │ │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ │ └── type.go │ │ │ │ │ │ ├── directory │ │ │ │ │ │ │ ├── cli.go │ │ │ │ │ │ │ ├── inputtype_test.go │ │ │ │ │ │ │ ├── spec.go │ │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ │ └── type.go │ │ │ │ │ │ ├── docker │ │ │ │ │ │ │ ├── cli.go │ │ │ │ │ │ │ ├── spec.go │ │ │ │ │ │ │ └── type.go │ │ │ │ │ │ ├── dockermulti │ │ │ │ │ │ │ ├── cli.go │ │ │ │ │ │ │ ├── spec.go │ │ │ │ │ │ │ └── type.go │ │ │ │ │ │ ├── file │ │ │ │ │ │ │ ├── cli.go │ │ │ │ │ │ │ ├── spec.go │ │ │ │ │ │ │ ├── support.go │ │ │ │ │ │ │ └── type.go │ │ │ │ │ │ ├── git │ │ │ │ │ │ │ ├── cli.go │ │ │ │ │ │ │ ├── input_test.go │ │ │ │ │ │ │ ├── spec.go │ │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ │ ├── testdata │ │ │ │ │ │ │ │ └── resources1.yaml │ │ │ │ │ │ │ └── type.go │ │ │ │ │ │ ├── helm │ │ │ │ │ │ │ ├── cli.go │ │ │ │ │ │ │ ├── spec.go │ │ │ │ │ │ │ ├── type.go │ │ │ │ │ │ │ └── utils.go │ │ │ │ │ │ ├── init.go │ │ │ │ │ │ ├── maven │ │ │ │ │ │ │ ├── cli.go │ │ │ │ │ │ │ ├── input_test.go │ │ │ │ │ │ │ ├── spec.go │ │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ │ ├── testdata │ │ │ │ │ │ │ │ └── resources1.yaml │ │ │ │ │ │ │ └── type.go │ │ │ │ │ │ ├── npm │ │ │ │ │ │ │ ├── cli.go │ │ │ │ │ │ │ ├── input_test.go │ │ │ │ │ │ │ ├── spec.go │ │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ │ └── type.go │ │ │ │ │ │ ├── ociartifact │ │ │ │ │ │ │ ├── cli.go │ │ │ │ │ │ │ ├── input_test.go │ │ │ │ │ │ │ ├── spec.go │ │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ │ ├── testdata │ │ │ │ │ │ │ │ └── component-constructor.yaml │ │ │ │ │ │ │ └── type.go │ │ │ │ │ │ ├── ocm │ │ │ │ │ │ │ ├── cli.go │ │ │ │ │ │ │ ├── input_test.go │ │ │ │ │ │ │ ├── spec.go │ │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ │ ├── testdata │ │ │ │ │ │ │ │ └── resources1.yaml │ │ │ │ │ │ │ └── type.go │ │ │ │ │ │ ├── spiff │ │ │ │ │ │ │ ├── cli.go │ │ │ │ │ │ │ ├── spec.go │ │ │ │ │ │ │ ├── spiff_test.go │ │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ │ ├── testdata │ │ │ │ │ │ │ │ ├── subdir │ │ │ │ │ │ │ │ │ ├── include.yaml │ │ │ │ │ │ │ │ │ └── test.yaml │ │ │ │ │ │ │ │ └── test1.yaml │ │ │ │ │ │ │ └── type.go │ │ │ │ │ │ ├── utf8 │ │ │ │ │ │ │ ├── cli.go │ │ │ │ │ │ │ ├── inputtype_test.go │ │ │ │ │ │ │ ├── spec.go │ │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ │ └── type.go │ │ │ │ │ │ └── wget │ │ │ │ │ │ │ ├── cli.go │ │ │ │ │ │ │ ├── input_test.go │ │ │ │ │ │ │ ├── spec.go │ │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ │ └── type.go │ │ │ │ │ └── utils.go │ │ │ │ ├── options │ │ │ │ │ ├── comppathopt │ │ │ │ │ │ ├── comppath_test.go │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── downloaderoption │ │ │ │ │ │ ├── option.go │ │ │ │ │ │ ├── option_test.go │ │ │ │ │ │ └── suite_test.go │ │ │ │ │ ├── dryrunoption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── fileoption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── hashoption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── keepglobaloption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── lookupoption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── omitaccesstypeoption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── optutils │ │ │ │ │ │ ├── reg_test.go │ │ │ │ │ │ ├── registration.go │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ └── testdata │ │ │ │ │ │ │ └── config │ │ │ │ │ ├── overwriteoption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── repooption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── rscbyvalueoption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── schemaoption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── scriptoption │ │ │ │ │ │ ├── config.go │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── signoption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── skipdigestoption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── skipupdateoption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── srcbyvalueoption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── stoponexistingoption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── storeoption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── templateroption │ │ │ │ │ │ └── option.go │ │ │ │ │ ├── uploaderoption │ │ │ │ │ │ ├── option.go │ │ │ │ │ │ ├── option_test.go │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ └── uploader_test.go │ │ │ │ │ └── versionconstraintsoption │ │ │ │ │ │ └── option.go │ │ │ │ ├── resources.go │ │ │ │ ├── resources_test.go │ │ │ │ ├── settings.go │ │ │ │ ├── suite_test.go │ │ │ │ └── utils.go │ │ │ ├── componentarchive │ │ │ │ ├── cmd.go │ │ │ │ ├── create │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ │ └── transfer │ │ │ │ │ └── cmd.go │ │ │ ├── components │ │ │ │ ├── add │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ │ ├── component-constructor-old.yaml │ │ │ │ │ │ ├── component-constructor-skip.yaml │ │ │ │ │ │ ├── component-constructor.yaml │ │ │ │ │ │ ├── component-dup-ref.yaml │ │ │ │ │ │ ├── component-dup-res.yaml │ │ │ │ │ │ ├── component-dup-src.yaml │ │ │ │ │ │ ├── components-dup.yaml │ │ │ │ │ │ ├── components.yaml │ │ │ │ │ │ └── testdata │ │ │ │ ├── check │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── options.go │ │ │ │ │ └── suite_test.go │ │ │ │ ├── cmd.go │ │ │ │ ├── download │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ │ ├── get │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ │ ├── hash │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── options.go │ │ │ │ │ └── suite_test.go │ │ │ │ ├── list │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ │ ├── sign │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ │ ├── transfer │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── ctf.copy │ │ │ │ │ │ └── artifact-index.json │ │ │ │ │ ├── disableupload_test.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── upload_test.go │ │ │ │ └── verify │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ ├── ctf │ │ │ │ ├── cmd.go │ │ │ │ └── transfer │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ ├── init.go │ │ │ ├── names │ │ │ │ └── names.go │ │ │ ├── plugins │ │ │ │ ├── cmd.go │ │ │ │ ├── describe │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── describe.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ │ ├── action │ │ │ │ │ │ └── test │ │ │ │ ├── get │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ │ └── test │ │ │ │ ├── install │ │ │ │ │ ├── cmd.go │ │ │ │ │ └── suite_test.go │ │ │ │ └── tests │ │ │ │ │ ├── accessmethods │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ │ └── test │ │ │ │ │ └── routingslips │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ └── test │ │ │ ├── pubsub │ │ │ │ ├── cmd.go │ │ │ │ ├── get │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ │ └── set │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ ├── references │ │ │ │ ├── add │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── provider.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ │ ├── dupreferences.yaml │ │ │ │ │ │ ├── references-dup.yaml │ │ │ │ │ │ ├── references.tmpl │ │ │ │ │ │ ├── references.yaml │ │ │ │ │ │ ├── referenceswithid.yaml │ │ │ │ │ │ └── settings │ │ │ │ ├── cmd.go │ │ │ │ ├── common │ │ │ │ │ └── typehandler.go │ │ │ │ └── get │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ ├── resourceconfig │ │ │ │ ├── add │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ │ └── testcontent │ │ │ │ └── cmd.go │ │ │ ├── resources │ │ │ │ ├── add │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── provider.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ │ ├── dupresources.yaml │ │ │ │ │ │ ├── helm.yaml │ │ │ │ │ │ ├── helm2.yaml │ │ │ │ │ │ ├── helmref.yaml │ │ │ │ │ │ ├── image.yaml │ │ │ │ │ │ ├── nested │ │ │ │ │ │ └── helm.yaml │ │ │ │ │ │ ├── resources.tmpl │ │ │ │ │ │ ├── resources.yaml │ │ │ │ │ │ ├── resources2.yaml │ │ │ │ │ │ ├── settings │ │ │ │ │ │ ├── spiffcontent │ │ │ │ │ │ ├── testchart │ │ │ │ │ │ ├── .helmignore │ │ │ │ │ │ ├── .idea │ │ │ │ │ │ │ └── somefile │ │ │ │ │ │ ├── Chart.yaml │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ ├── NOTES.txt │ │ │ │ │ │ │ ├── _helpers.tpl │ │ │ │ │ │ │ ├── deployment.yaml │ │ │ │ │ │ │ ├── hpa.yaml │ │ │ │ │ │ │ ├── ingress.yaml │ │ │ │ │ │ │ ├── service.yaml │ │ │ │ │ │ │ ├── serviceaccount.yaml │ │ │ │ │ │ │ └── tests │ │ │ │ │ │ │ │ └── test-connection.yaml │ │ │ │ │ │ └── values.yaml │ │ │ │ │ │ └── testcontent │ │ │ │ ├── cmd.go │ │ │ │ ├── common │ │ │ │ │ └── typehandler.go │ │ │ │ ├── download │ │ │ │ │ ├── action.go │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── dirtree_test.go │ │ │ │ │ ├── options.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ │ └── layers │ │ │ │ │ │ ├── 0 │ │ │ │ │ │ └── testfile │ │ │ │ │ │ ├── 1 │ │ │ │ │ │ └── dir │ │ │ │ │ │ │ └── nestedfile │ │ │ │ │ │ └── all │ │ │ │ │ │ ├── dir │ │ │ │ │ │ └── nestedfile │ │ │ │ │ │ └── testfile │ │ │ │ └── get │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── deep_test.go │ │ │ │ │ └── suite_test.go │ │ │ ├── routingslips │ │ │ │ ├── add │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ │ ├── cmd.go │ │ │ │ ├── common │ │ │ │ │ ├── options.go │ │ │ │ │ └── typehandler.go │ │ │ │ └── get │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── options.go │ │ │ │ │ └── suite_test.go │ │ │ ├── sourceconfig │ │ │ │ ├── add │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ │ └── testcontent │ │ │ │ └── cmd.go │ │ │ ├── sources │ │ │ │ ├── add │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── testdata │ │ │ │ │ │ ├── dupsources.yaml │ │ │ │ │ │ ├── settings │ │ │ │ │ │ ├── sources.tmpl │ │ │ │ │ │ ├── sources.yaml │ │ │ │ │ │ └── testcontent │ │ │ │ ├── cmd.go │ │ │ │ ├── common │ │ │ │ │ └── typehandler.go │ │ │ │ └── get │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ ├── verified │ │ │ │ ├── cmd.go │ │ │ │ └── get │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ └── versions │ │ │ │ ├── cmd.go │ │ │ │ └── show │ │ │ │ ├── cmd.go │ │ │ │ ├── cmd_test.go │ │ │ │ └── suite_test.go │ │ ├── plugin │ │ │ └── cmd.go │ │ ├── toicmds │ │ │ ├── cmd.go │ │ │ ├── config │ │ │ │ ├── bootstrap │ │ │ │ │ ├── cmd.go │ │ │ │ │ ├── cmd_test.go │ │ │ │ │ └── suite_test.go │ │ │ │ └── cmd.go │ │ │ ├── names │ │ │ │ └── names.go │ │ │ ├── package │ │ │ │ ├── bootstrap │ │ │ │ │ └── cmd.go │ │ │ │ ├── cmd.go │ │ │ │ └── describe │ │ │ │ │ └── cmd.go │ │ │ └── verbs │ │ │ │ ├── bootstrap │ │ │ │ └── cmd.go │ │ │ │ └── describe │ │ │ │ └── cmd.go │ │ └── verbs │ │ │ ├── add │ │ │ └── cmd.go │ │ │ ├── bootstrap │ │ │ └── cmd.go │ │ │ ├── check │ │ │ └── cmd.go │ │ │ ├── clean │ │ │ └── cmd.go │ │ │ ├── controller │ │ │ └── cmd.go │ │ │ ├── create │ │ │ └── cmd.go │ │ │ ├── describe │ │ │ └── cmd.go │ │ │ ├── download │ │ │ └── cmd.go │ │ │ ├── execute │ │ │ └── cmd.go │ │ │ ├── get │ │ │ └── cmd.go │ │ │ ├── hash │ │ │ └── cmd.go │ │ │ ├── install │ │ │ └── cmd.go │ │ │ ├── list │ │ │ └── cmd.go │ │ │ ├── set │ │ │ └── cmd.go │ │ │ ├── show │ │ │ └── cmd.go │ │ │ ├── sign │ │ │ └── cmd.go │ │ │ ├── transfer │ │ │ └── cmd.go │ │ │ ├── verb.go │ │ │ ├── verbs.go │ │ │ └── verify │ │ │ └── cmd.go │ ├── common │ │ ├── data │ │ │ ├── convert.go │ │ │ ├── dll.go │ │ │ ├── dll_test.go │ │ │ ├── indexed.go │ │ │ ├── indexed_test.go │ │ │ ├── iterator.go │ │ │ ├── list.go │ │ │ ├── list_test.go │ │ │ ├── sort.go │ │ │ └── suite_test.go │ │ ├── options │ │ │ ├── interfaces.go │ │ │ ├── options_test.go │ │ │ └── suite_test.go │ │ ├── output │ │ │ ├── attroutput.go │ │ │ ├── attrset.go │ │ │ ├── chain.go │ │ │ ├── complexoutput.go │ │ │ ├── elementoutput.go │ │ │ ├── funcoutput.go │ │ │ ├── options.go │ │ │ ├── output.go │ │ │ ├── select.go │ │ │ ├── singleelemoutput.go │ │ │ ├── sort_test.go │ │ │ ├── stringoutput.go │ │ │ ├── suite_test.go │ │ │ ├── table.go │ │ │ ├── tableoutput.go │ │ │ ├── treeoutput.go │ │ │ └── utils.go │ │ ├── processing │ │ │ ├── buffer.go │ │ │ ├── buffer_test.go │ │ │ ├── chain.go │ │ │ ├── logging.go │ │ │ ├── operation.go │ │ │ ├── parallel.go │ │ │ ├── pool.go │ │ │ ├── processing.go │ │ │ ├── processing_test.go │ │ │ ├── sequential.go │ │ │ ├── suite_test.go │ │ │ └── utils.go │ │ ├── tree │ │ │ ├── convert.go │ │ │ ├── suite_test.go │ │ │ ├── tree.go │ │ │ └── tree_test.go │ │ └── utils │ │ │ ├── command.go │ │ │ ├── fileutils.go │ │ │ ├── handling.go │ │ │ ├── plural.go │ │ │ └── validate.go │ ├── coretests │ │ └── maven │ │ │ ├── cmd_test.go │ │ │ ├── suite_test.go │ │ │ └── testdata │ │ │ ├── components.yaml │ │ │ └── components2.yaml │ ├── main.go │ ├── ocm_test.go │ ├── suite_test.go │ ├── testdata │ │ ├── dockermultiresources.yaml │ │ ├── dockerresources.yaml │ │ ├── env.values │ │ ├── resources.yaml │ │ ├── sources.yaml │ │ └── testcontent │ ├── testhelper │ │ ├── env.go │ │ ├── forward.go │ │ ├── suite_test.go │ │ ├── testdata │ │ │ └── testfile.txt │ │ └── testhelper_test.go │ └── topics │ │ ├── common │ │ ├── attributes │ │ │ └── topic.go │ │ ├── config │ │ │ └── topic.go │ │ ├── credentials │ │ │ └── topic.go │ │ └── logging │ │ │ └── topic.go │ │ ├── oci │ │ └── refs │ │ │ └── topic.go │ │ ├── ocm │ │ ├── accessmethods │ │ │ └── topic.go │ │ ├── downloadhandlers │ │ │ └── topic.go │ │ ├── labels │ │ │ └── topic.go │ │ ├── pubsub │ │ │ └── topic.go │ │ ├── refs │ │ │ └── topic.go │ │ └── uploadhandlers │ │ │ └── topic.go │ │ └── toi │ │ └── bootstrapping │ │ └── topic.go └── subcmdplugin │ ├── cmds │ ├── cmd_test.go │ ├── demo │ │ └── cmd.go │ ├── group │ │ └── cmd.go │ ├── suite_test.go │ └── testdata │ │ └── plugins │ │ └── cliplugin │ └── main.go ├── components ├── demoplugin │ ├── Makefile │ ├── README.md │ ├── bindings.yaml │ ├── component-constructor.yaml │ └── sources.yaml ├── ecrplugin │ ├── Makefile │ ├── bindings.yaml │ ├── component-constructor.yaml │ └── sources.yaml ├── helmdemo │ ├── Makefile │ ├── README.md │ ├── component-constructor.yaml │ ├── echoserver │ │ ├── .helmignore │ │ ├── Chart.yaml │ │ ├── templates │ │ │ ├── NOTES.txt │ │ │ ├── _helpers.tpl │ │ │ ├── deployment.yaml │ │ │ ├── hpa.yaml │ │ │ ├── ingress.yaml │ │ │ ├── service.yaml │ │ │ ├── serviceaccount.yaml │ │ │ └── tests │ │ │ │ └── test-connection.yaml │ │ └── values.yaml │ ├── examples │ │ ├── config.yaml │ │ └── creds.yaml │ ├── helmconfig.yaml │ └── packagespec.yaml ├── helminstaller │ ├── Dockerfile │ ├── Makefile │ ├── README.md │ ├── component-constructor.yaml │ └── executorspec.yaml ├── jfrogplugin │ ├── Makefile │ ├── bindings.yaml │ ├── component-constructor.yaml │ └── sources.yaml ├── ocmcli │ ├── Makefile │ ├── README.md │ ├── component-constructor.yaml │ └── metadata.yaml └── subchartsdemo │ ├── Makefile │ ├── README.md │ ├── component-constructor.yaml │ ├── echoserver │ ├── .helmignore │ ├── Chart.yaml │ ├── templates │ │ ├── NOTES.txt │ │ ├── _helpers.tpl │ │ ├── deployment.yaml │ │ ├── hpa.yaml │ │ ├── ingress.yaml │ │ ├── service.yaml │ │ ├── serviceaccount.yaml │ │ └── tests │ │ │ └── test-connection.yaml │ └── values.yaml │ ├── packagespec.yaml │ ├── podinfo │ └── podinfo-6.3.5.tgz │ └── subchartsapp │ ├── .helmignore │ ├── Chart.yaml │ └── values.yaml ├── config └── crd │ └── bases │ └── ocm.open-component-model.software_componentdescriptors.yaml ├── docs ├── adrs │ ├── 0000-template.md │ ├── 0001-linters.md │ └── 0002-panic-handlers.md ├── command-plugins.md ├── development │ ├── context-structure.png │ └── ocm-cli-package-structure.drawio.png ├── pluginreference │ ├── plugin.md │ ├── plugin_accessmethod.md │ ├── plugin_accessmethod_compose.md │ ├── plugin_accessmethod_get.md │ ├── plugin_accessmethod_validate.md │ ├── plugin_action.md │ ├── plugin_action_execute.md │ ├── plugin_command.md │ ├── plugin_describe.md │ ├── plugin_descriptor.md │ ├── plugin_download.md │ ├── plugin_info.md │ ├── plugin_upload.md │ ├── plugin_upload_put.md │ ├── plugin_upload_validate.md │ ├── plugin_valuemergehandler.md │ ├── plugin_valuemergehandler_execute.md │ ├── plugin_valueset.md │ ├── plugin_valueset_compose.md │ └── plugin_valueset_validate.md └── reference │ ├── ocm.md │ ├── ocm_add.md │ ├── ocm_add_componentversions.md │ ├── ocm_add_references.md │ ├── ocm_add_resource-configuration.md │ ├── ocm_add_resources.md │ ├── ocm_add_routingslips.md │ ├── ocm_add_source-configuration.md │ ├── ocm_add_sources.md │ ├── ocm_attributes.md │ ├── ocm_bootstrap.md │ ├── ocm_bootstrap_configuration.md │ ├── ocm_bootstrap_package.md │ ├── ocm_cache.md │ ├── ocm_check.md │ ├── ocm_check_componentversions.md │ ├── ocm_clean.md │ ├── ocm_clean_cache.md │ ├── ocm_configfile.md │ ├── ocm_controller.md │ ├── ocm_controller_install.md │ ├── ocm_controller_uninstall.md │ ├── ocm_create.md │ ├── ocm_create_componentarchive.md │ ├── ocm_create_rsakeypair.md │ ├── ocm_create_transportarchive.md │ ├── ocm_credential-handling.md │ ├── ocm_credentials.md │ ├── ocm_describe.md │ ├── ocm_describe_artifacts.md │ ├── ocm_describe_cache.md │ ├── ocm_describe_package.md │ ├── ocm_describe_plugins.md │ ├── ocm_download.md │ ├── ocm_download_artifacts.md │ ├── ocm_download_cli.md │ ├── ocm_download_componentversions.md │ ├── ocm_download_resources.md │ ├── ocm_execute.md │ ├── ocm_execute_action.md │ ├── ocm_get.md │ ├── ocm_get_artifacts.md │ ├── ocm_get_componentversions.md │ ├── ocm_get_config.md │ ├── ocm_get_credentials.md │ ├── ocm_get_plugins.md │ ├── ocm_get_pubsub.md │ ├── ocm_get_references.md │ ├── ocm_get_resources.md │ ├── ocm_get_routingslips.md │ ├── ocm_get_sources.md │ ├── ocm_get_verified.md │ ├── ocm_hash.md │ ├── ocm_hash_componentversions.md │ ├── ocm_install.md │ ├── ocm_install_plugins.md │ ├── ocm_list.md │ ├── ocm_list_componentversions.md │ ├── ocm_logging.md │ ├── ocm_oci-references.md │ ├── ocm_oci.md │ ├── ocm_ocm-accessmethods.md │ ├── ocm_ocm-downloadhandlers.md │ ├── ocm_ocm-labels.md │ ├── ocm_ocm-pubsub.md │ ├── ocm_ocm-references.md │ ├── ocm_ocm-uploadhandlers.md │ ├── ocm_ocm.md │ ├── ocm_set.md │ ├── ocm_set_pubsub.md │ ├── ocm_show.md │ ├── ocm_show_tags.md │ ├── ocm_show_versions.md │ ├── ocm_sign.md │ ├── ocm_sign_componentversions.md │ ├── ocm_sign_hash.md │ ├── ocm_toi-bootstrapping.md │ ├── ocm_toi.md │ ├── ocm_transfer.md │ ├── ocm_transfer_artifacts.md │ ├── ocm_transfer_commontransportarchive.md │ ├── ocm_transfer_componentarchive.md │ ├── ocm_transfer_componentversions.md │ ├── ocm_verify.md │ ├── ocm_verify_componentversions.md │ └── ocm_version.md ├── examples ├── config │ └── simple.ocmconfig ├── lib │ ├── README.md │ ├── area-ocm.png │ ├── comparison-scenario │ │ ├── 00-consumer.go │ │ ├── 00-provider.go │ │ ├── 01-create.go │ │ ├── 02-sign.go │ │ ├── 03-write.go │ │ ├── 04-transport.go │ │ ├── 05-verify.go │ │ ├── 06-download.go │ │ ├── 07-getref.go │ │ ├── 08-deployscript.go │ │ ├── 09-localize.go │ │ ├── README.md │ │ ├── config │ │ │ ├── config-00.yaml │ │ │ ├── config.xyaml │ │ │ └── ocmconfig.yaml │ │ ├── main.go │ │ ├── resources │ │ │ └── deployscript │ │ └── utils.go │ ├── config.md │ ├── config1 │ │ ├── example.go │ │ └── main.go │ ├── config2 │ │ ├── config.yaml │ │ ├── example.go │ │ └── main.go │ ├── config3 │ │ ├── config.yaml │ │ ├── example.go │ │ └── main.go │ ├── contexts.md │ ├── cred.yaml │ ├── cred1 │ │ ├── example.go │ │ └── main.go │ ├── cred2 │ │ ├── example.go │ │ └── main.go │ ├── cred3 │ │ ├── example.go │ │ └── main.go │ ├── creds.md │ ├── ctf.md │ ├── ctf │ │ ├── example.go │ │ └── main.go │ ├── example.go │ ├── functionalarea.png │ ├── helper │ │ ├── helper.go │ │ └── settings.yaml │ ├── main.go │ ├── tour │ │ ├── 01-getting-started │ │ │ ├── README.md │ │ │ ├── example.go │ │ │ └── main.go │ │ ├── 02-composing-a-component-version │ │ │ ├── 01-basic-componentversion-creation.go │ │ │ ├── 02-composition-version.go │ │ │ ├── README.md │ │ │ └── main.go │ │ ├── 03-working-with-credentials │ │ │ ├── 01-using-credentials.go │ │ │ ├── 02-basic-credential-management.go │ │ │ ├── 03-credential-repositories.go │ │ │ ├── README.md │ │ │ ├── common.go │ │ │ └── main.go │ │ ├── 04-working-with-config │ │ │ ├── 01-basic-config-management.go │ │ │ ├── 02-handle-arbitrary-config.go │ │ │ ├── 03-using-ocm-config.go │ │ │ ├── 04-write-config-type.go │ │ │ ├── 05-write-config-consumer.go │ │ │ ├── README.md │ │ │ ├── common.go │ │ │ ├── main.go │ │ │ ├── resources │ │ │ │ └── ocmconfig │ │ │ └── settings.yaml │ │ ├── 05-transporting-component-versions │ │ │ ├── README.md │ │ │ ├── common.go │ │ │ ├── example.go │ │ │ └── main.go │ │ ├── 06-signing-component-versions │ │ │ ├── 01-basic-signing.go │ │ │ ├── 02-using-context-settings.go │ │ │ ├── README.md │ │ │ ├── common.go │ │ │ ├── key.pem │ │ │ ├── main.go │ │ │ └── settings.yaml │ │ ├── 07-resource-management │ │ │ ├── README.md │ │ │ ├── example.go │ │ │ └── main.go │ │ ├── README.md │ │ ├── doc.go │ │ └── docsrc │ │ │ ├── 01-getting-started │ │ │ └── README.md │ │ │ ├── 02-composing-a-component-version │ │ │ └── README.md │ │ │ ├── 03-working-with-credentials │ │ │ └── README.md │ │ │ ├── 04-working-with-config │ │ │ ├── README.md │ │ │ └── settings.yaml │ │ │ ├── 05-transporting-component-versions │ │ │ └── README.md │ │ │ ├── 06-signing-component-versions │ │ │ ├── README.md │ │ │ ├── key.pem │ │ │ └── settings.yaml │ │ │ ├── 07-resource-management │ │ │ └── README.md │ │ │ └── README.md │ ├── transfer.md │ └── transfer1 │ │ ├── example.go │ │ └── main.go └── make │ ├── .gitignore │ ├── Makefile │ ├── README.md │ ├── VERSION │ ├── content │ ├── .github │ │ └── workflows │ │ │ ├── import.yml │ │ │ ├── setup.yml │ │ │ ├── upgrade.yml │ │ │ └── validation.yml │ ├── RELEASENOTES.md │ ├── bin │ │ ├── fetch │ │ ├── github │ │ │ └── workflows │ │ │ │ ├── import.yml │ │ │ │ ├── setup.yml │ │ │ │ ├── upgrade.yml │ │ │ │ └── validation.yml │ │ ├── lib │ │ │ └── github │ │ ├── setup │ │ ├── upgrade │ │ └── validate │ ├── config.yaml │ └── contrib │ │ ├── bin │ │ └── validate │ │ ├── somedata │ │ └── someother │ └── resources.yaml ├── flake.lock ├── flake.nix ├── go.mod ├── go.sum ├── hack ├── Makefile ├── brew │ ├── go.mod │ ├── internal │ │ ├── generate.go │ │ ├── generate_test.go │ │ ├── ocm_formula_template.rb.tpl │ │ └── testdata │ │ │ └── expected_formula.rb │ └── main.go ├── chocolatey │ ├── README.md │ ├── ocm-cli.nuspec │ ├── tools │ │ └── chocolateyinstall.ps1 │ └── update.ps1 ├── collapse │ ├── .gitignore │ ├── auto_collapse.sh │ ├── test_auto_collapse.sh │ ├── test_example.md │ └── test_example_expected_collapsible.md ├── cross-build.sh ├── format.sh ├── generate-docs │ ├── cobradoc │ │ ├── gen.go │ │ ├── md_docs.go │ │ ├── mod.go │ │ ├── space.go │ │ ├── suite_test.go │ │ └── util.go │ └── main.go ├── generate.sh ├── get_bare_resource_from_ctf.sh ├── install.sh ├── migrate.md ├── migrate.mig ├── migrate.sh └── tools.go ├── metadata.yaml ├── resources ├── component-descriptor-ocm-v3-schema.yaml └── component-descriptor-v2-schema.yaml └── version.go /.github/config/markdown-link-check.json: -------------------------------------------------------------------------------- 1 | { "replacementPatterns": [ 2 | { "pattern": "^/", "replacement": "{{BASEURL}}/" } 3 | ], 4 | "ignorePatterns": [ 5 | { "pattern": "^http[s]*://localhost.*" } 6 | ,{ "pattern": "^https://.*\\.sigstore\\.dev.*" } 7 | ,{ "pattern": "^{{.*}}$" } 8 | ,{ "pattern": "^https://github.com/.*/compare/.*" } 9 | ,{ "pattern": "%7B%7B.*%7D%7D" } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /.github/config/markdownignore: -------------------------------------------------------------------------------- 1 | examples/lib/tour/0* 2 | docs/reference 3 | docs/pluginreference 4 | hack/collapse/* -------------------------------------------------------------------------------- /.github/config/markdownlint.yml: -------------------------------------------------------------------------------- 1 | default: true 2 | 3 | MD013: false #Line length - https://github.com/DavidAnson/markdownlint/blob/HEAD/doc/Rules.md#md013 4 | MD033: false #Inline HTML - https://github.com/DavidAnson/markdownlint/blob/HEAD/doc/Rules.md#md033 5 | MD024: 6 | siblings_only: true #Multiple headers with the same content 7 | -------------------------------------------------------------------------------- /.github/secret_scanning.yml: -------------------------------------------------------------------------------- 1 | paths-ignore: 2 | - "**/testdata" 3 | -------------------------------------------------------------------------------- /.github/settings.yml: -------------------------------------------------------------------------------- 1 | # These settings are synced to GitHub by https://probot.github.io/apps/settings/ 2 | 3 | # see: https://github.com/open-component-model/.github/blob/main/.github/settings.yml 4 | _extends: .github 5 | 6 | labels: 7 | - name: repo/ocm 8 | color: bfd4f2 9 | -------------------------------------------------------------------------------- /.github/workflows/milestone.yaml: -------------------------------------------------------------------------------- 1 | name: Set milestone 2 | on: 3 | issues: 4 | types: 5 | - closed 6 | pull_request: 7 | types: 8 | - closed 9 | 10 | jobs: 11 | set_milestone: 12 | uses: open-component-model/.github/.github/workflows/milestone.yml@main 13 | secrets: inherit 14 | permissions: 15 | issues: write 16 | pull-requests: write 17 | -------------------------------------------------------------------------------- /.github/workflows/reuse_helper_tool.yaml: -------------------------------------------------------------------------------- 1 | name: REUSE Compliance Check 2 | 3 | on: [push, pull_request] 4 | 5 | permissions: 6 | contents: read 7 | 8 | jobs: 9 | reuse: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 13 | - name: REUSE Compliance Check 14 | uses: fsfe/reuse-action@bb774aa972c2a89ff34781233d275075cbddf542 # v5.0.0 -------------------------------------------------------------------------------- /.github/workflows/stale.yaml: -------------------------------------------------------------------------------- 1 | name: 'Mark stale issues and PRs' 2 | on: 3 | schedule: 4 | - cron: '7 1 * * *' 5 | workflow_dispatch: 6 | 7 | permissions: 8 | contents: read 9 | issues: write 10 | pull-requests: write 11 | jobs: 12 | stale: # call reusable workflow from central '.github' repo 13 | uses: open-component-model/.github/.github/workflows/stale.yml@main 14 | secrets: inherit -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Community Code of Conduct 2 | 3 | OCM follows the [CNCF Code of Conduct](https://github.com/cncf/foundation/blob/main/code-of-conduct.md). 4 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Welcome to the OCM community 2 | 3 | We welcome many different types of contributions. 4 | 5 | Please refer to the [Contributing Guide in the Community repository](https://github.com/open-component-model/.github/blob/main/CONTRIBUTING.md) for more information on how to get support from maintainers, find work to contribute, the Pull Request checklist, the Pull Request process, and other useful information on how to contribute to OCM. 6 | -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | 0.26.0-dev 2 | -------------------------------------------------------------------------------- /api/cli/config/suite_test.go: -------------------------------------------------------------------------------- 1 | package config_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Command Config Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/cli/interface.go: -------------------------------------------------------------------------------- 1 | package cli 2 | 3 | import ( 4 | "ocm.software/ocm/api/cli/internal" 5 | ) 6 | 7 | type ( 8 | Context = internal.Context 9 | OCI = internal.OCI 10 | OCM = internal.OCM 11 | ) 12 | 13 | func DefaultContext() Context { 14 | return internal.DefaultContext 15 | } 16 | -------------------------------------------------------------------------------- /api/config/cpi/README.md: -------------------------------------------------------------------------------- 1 | # Context Provider Interface for context configurations 2 | -------------------------------------------------------------------------------- /api/config/extensions/config/suite_test.go: -------------------------------------------------------------------------------- 1 | package config_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Generic Config Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/config/extensions/config/testdata/config.yaml: -------------------------------------------------------------------------------- 1 | type: generic.config.ocm.software/v1 2 | configurations: 3 | - type: Dummy 4 | alice: alice 5 | - type: Dummy 6 | bob: bob -------------------------------------------------------------------------------- /api/config/extensions/config/testdata/nested.yaml: -------------------------------------------------------------------------------- 1 | type: generic.config.ocm.software/v1 2 | configurations: 3 | - type: Dummy 4 | alice: alice 5 | - type: generic.config.ocm.software/v1 6 | configurations: 7 | - type: Dummy 8 | bob: bob -------------------------------------------------------------------------------- /api/config/init.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/config/extensions/config" 5 | _ "ocm.software/ocm/api/datacontext/config" 6 | ) 7 | -------------------------------------------------------------------------------- /api/config/internal/logging.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | import ( 4 | ocmlog "ocm.software/ocm/api/utils/logging" 5 | ) 6 | 7 | var Realm = ocmlog.DefineSubRealm("configuration management", "config") 8 | 9 | var Logger = ocmlog.DynamicLogger(Realm) 10 | -------------------------------------------------------------------------------- /api/config/internal/suite_test.go: -------------------------------------------------------------------------------- 1 | package internal_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Config Core Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/config/suite_test.go: -------------------------------------------------------------------------------- 1 | package config_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Config Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/credentials/builtin/doc.go: -------------------------------------------------------------------------------- 1 | // Package builtin now contains special builtin credential detections, only. 2 | // The former technology specific identity packages used to describe 3 | // credential attributes and consumer identity properties have been 4 | // moved into the appropriate technology packages under package 5 | // ocm.software/ocm/api/tech. 6 | package builtin 7 | -------------------------------------------------------------------------------- /api/credentials/builtin/init.go: -------------------------------------------------------------------------------- 1 | package builtin 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/credentials/builtin/github" 5 | _ "ocm.software/ocm/api/tech/git/identity" 6 | ) 7 | -------------------------------------------------------------------------------- /api/credentials/config/suite_test.go: -------------------------------------------------------------------------------- 1 | package config_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Credential Config Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/credentials/cpi/README.md: -------------------------------------------------------------------------------- 1 | # Context Provider Interface for credential providers 2 | -------------------------------------------------------------------------------- /api/credentials/extensions/repositories/aliases/suite_test.go: -------------------------------------------------------------------------------- 1 | package aliases_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "CTF Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/credentials/extensions/repositories/directcreds/credentials.go: -------------------------------------------------------------------------------- 1 | package directcreds 2 | 3 | import ( 4 | "ocm.software/ocm/api/credentials/cpi" 5 | common "ocm.software/ocm/api/utils/misc" 6 | ) 7 | 8 | func NewCredentials(props common.Properties) cpi.CredentialsSpec { 9 | return cpi.NewCredentialsSpec(Type, NewRepositorySpec(props)) 10 | } 11 | -------------------------------------------------------------------------------- /api/credentials/extensions/repositories/directcreds/suite_test.go: -------------------------------------------------------------------------------- 1 | package directcreds_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "CTF Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/credentials/extensions/repositories/dockerconfig/logging.go: -------------------------------------------------------------------------------- 1 | package dockerconfig 2 | 3 | import ( 4 | ocmlog "ocm.software/ocm/api/utils/logging" 5 | ) 6 | 7 | var REALM = ocmlog.DefineSubRealm("docker config handling as credential repository", "credentials/dockerconfig") 8 | -------------------------------------------------------------------------------- /api/credentials/extensions/repositories/dockerconfig/suite_test.go: -------------------------------------------------------------------------------- 1 | package dockerconfig_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Docker Config Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/credentials/extensions/repositories/dockerconfig/testdata/dockerconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "auths": { 3 | "https://index.docker.io/v1/": { 4 | "auth": "bWFuZGVsc29mdDpwYXNzd29yZA==" 5 | }, 6 | "https://ghcr.io": { 7 | "auth": "bWFuZGVsc29mdDp0b2tlbg==" 8 | } 9 | }, 10 | "HttpHeaders": { 11 | "User-Agent": "Docker-Client/18.06.1-ce (linux)" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /api/credentials/extensions/repositories/gardenerconfig/init.go: -------------------------------------------------------------------------------- 1 | package gardenerconfig 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/credentials/extensions/repositories/gardenerconfig/handler/container_registry" 5 | ) 6 | -------------------------------------------------------------------------------- /api/credentials/extensions/repositories/gardenerconfig/suite_test.go: -------------------------------------------------------------------------------- 1 | package gardenerconfig_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Gardener Config Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/credentials/extensions/repositories/memory/config/suite_test.go: -------------------------------------------------------------------------------- 1 | package config_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Credential Config Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/credentials/extensions/repositories/memory/suite_test.go: -------------------------------------------------------------------------------- 1 | package memory_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Memory Credentials Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/credentials/extensions/repositories/npm/suite_test.go: -------------------------------------------------------------------------------- 1 | package npm_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "NPM Repository tests") 13 | } 14 | -------------------------------------------------------------------------------- /api/credentials/extensions/repositories/npm/testdata/.npmrc: -------------------------------------------------------------------------------- 1 | global=false 2 | //npm.registry.acme.com/api/npm/:_authToken=bearer_TOKEN 3 | //registry.npmjs.org/:_authToken=npm_TOKEN 4 | -------------------------------------------------------------------------------- /api/credentials/extensions/repositories/vault/logging.go: -------------------------------------------------------------------------------- 1 | package vault 2 | 3 | import ( 4 | ocmlog "ocm.software/ocm/api/utils/logging" 5 | ) 6 | 7 | var ( 8 | REALM = ocmlog.DefineSubRealm("HashiCorp Vault Access", "credentials", "vault") 9 | log = ocmlog.DynamicLogger(REALM) 10 | ) 11 | -------------------------------------------------------------------------------- /api/credentials/extensions/repositories/vault/suite_test.go: -------------------------------------------------------------------------------- 1 | package vault_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Vault Credentials Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/credentials/identity/hostpath/suite_test.go: -------------------------------------------------------------------------------- 1 | package hostpath_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Hostpath Identity Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/credentials/init.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/credentials/builtin" 5 | _ "ocm.software/ocm/api/credentials/config" 6 | _ "ocm.software/ocm/api/credentials/extensions/repositories" 7 | ) 8 | -------------------------------------------------------------------------------- /api/credentials/internal/builtin.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | const AliasRepositoryType = "Alias" 4 | 5 | type SetAliasFunction func(ctx Context, name string, spec RepositorySpec, creds CredentialsSource) error 6 | 7 | type AliasRegistry interface { 8 | SetAlias(ctx Context, name string, spec RepositorySpec, creds CredentialsSource) error 9 | } 10 | -------------------------------------------------------------------------------- /api/credentials/internal/logging.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | import ( 4 | ocmlog "ocm.software/ocm/api/utils/logging" 5 | ) 6 | 7 | var ( 8 | REALM = ocmlog.DefineSubRealm("Credentials", "credentials") 9 | log = ocmlog.DynamicLogger(REALM) 10 | ) 11 | -------------------------------------------------------------------------------- /api/credentials/internal/suite_test.go: -------------------------------------------------------------------------------- 1 | package internal_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Credentials Core Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/credentials/suite_test.go: -------------------------------------------------------------------------------- 1 | package credentials_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "CTF Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/credentials/usage.go: -------------------------------------------------------------------------------- 1 | package credentials 2 | 3 | func RepositoryUsage(scheme RepositoryTypeScheme) string { 4 | s := ` 5 | The following list describes the supported credential providers 6 | (credential repositories), their specification versions 7 | and formats. Because of the extensible nature of the OCM model, 8 | credential consum 9 | ` 10 | return s + scheme.Describe() 11 | } 12 | -------------------------------------------------------------------------------- /api/datacontext/action/api/suite_test.go: -------------------------------------------------------------------------------- 1 | package api_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Action Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/datacontext/attrs/init.go: -------------------------------------------------------------------------------- 1 | package attrs 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/datacontext/attrs/logforward" 5 | _ "ocm.software/ocm/api/datacontext/attrs/rootcertsattr" 6 | _ "ocm.software/ocm/api/datacontext/attrs/tmpcache" 7 | _ "ocm.software/ocm/api/datacontext/attrs/vfsattr" 8 | ) 9 | -------------------------------------------------------------------------------- /api/datacontext/attrs/rootcertsattr/suite_test.go: -------------------------------------------------------------------------------- 1 | package rootcertsattr_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Root Certificate Attribute") 13 | } 14 | -------------------------------------------------------------------------------- /api/datacontext/config/attrs/suite_test.go: -------------------------------------------------------------------------------- 1 | package attrs_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Attributes Config Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/datacontext/config/init.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/datacontext/config/attrs" 5 | _ "ocm.software/ocm/api/datacontext/config/logging" 6 | ) 7 | -------------------------------------------------------------------------------- /api/datacontext/config/logging/suite_test.go: -------------------------------------------------------------------------------- 1 | package logging_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Context Logging Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/datacontext/context-refcount-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/datacontext/context-refcount-model.png -------------------------------------------------------------------------------- /api/datacontext/logging.go: -------------------------------------------------------------------------------- 1 | package datacontext 2 | 3 | import ( 4 | ocmlog "ocm.software/ocm/api/utils/logging" 5 | ) 6 | 7 | var Realm = ocmlog.DefineSubRealm("context lifecycle", "context") 8 | 9 | var Logger = ocmlog.DynamicLogger(Realm) 10 | 11 | func Debug(c Context, msg string, keypairs ...interface{}) { 12 | c.LoggingContext().Logger(Realm).Debug(msg, append(keypairs, "id", c.GetId())...) 13 | } 14 | -------------------------------------------------------------------------------- /api/datacontext/suite_test.go: -------------------------------------------------------------------------------- 1 | package datacontext_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Data Context Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/helper/builder/oci_anno.go: -------------------------------------------------------------------------------- 1 | package builder 2 | 3 | func (b *Builder) Annotation(name, value string) { 4 | b.expect(b.oci_annofunc, T_OCIARTIFACT+" or "+T_OCIARTIFACTSET) 5 | b.oci_annofunc(name, value) 6 | } 7 | -------------------------------------------------------------------------------- /api/helper/builder/oci_platform.go: -------------------------------------------------------------------------------- 1 | package builder 2 | 3 | const T_OCIPLATFORM = "platform consumer" 4 | 5 | func (b *Builder) Platform(os string, arch string) { 6 | b.expect(b.oci_platform, T_OCIMANIFEST, func() bool { return b.oci_artacc.IsManifest() }) 7 | 8 | b.oci_platform.OS = os 9 | b.oci_platform.Architecture = arch 10 | } 11 | -------------------------------------------------------------------------------- /api/helper/builder/oci_tags.go: -------------------------------------------------------------------------------- 1 | package builder 2 | 3 | func (b *Builder) Tags(tags ...string) { 4 | b.expect(b.oci_tags, T_OCIARTIFACT) 5 | *b.oci_tags = append(*b.oci_tags, tags...) 6 | } 7 | -------------------------------------------------------------------------------- /api/helper/builder/ocm_composition.go: -------------------------------------------------------------------------------- 1 | package builder 2 | 3 | import ( 4 | "ocm.software/ocm/api/ocm/extensions/repositories/composition" 5 | ) 6 | 7 | const T_OCM_COMPOSITION = "ocm composition repositoryt" 8 | 9 | func (b *Builder) OCMCompositionRepository(name string, f ...func()) { 10 | r := composition.NewRepository(b, name) 11 | b.configure(&ocmRepository{Repository: r, kind: T_OCM_COMPOSITION}, f) 12 | } 13 | -------------------------------------------------------------------------------- /api/helper/builder/suite_test.go: -------------------------------------------------------------------------------- 1 | package builder 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Builder Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/helper/env/suite_test.go: -------------------------------------------------------------------------------- 1 | package env 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Env Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/helper/env/testdata/testfile.txt: -------------------------------------------------------------------------------- 1 | this is some test data -------------------------------------------------------------------------------- /api/oci/artdesc/suite_test.go: -------------------------------------------------------------------------------- 1 | package artdesc_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Artifact Descriptors") 13 | } 14 | -------------------------------------------------------------------------------- /api/oci/config/suite_test.go: -------------------------------------------------------------------------------- 1 | package config_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Config Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/oci/cpi/README.md: -------------------------------------------------------------------------------- 1 | # Context Provider Interface for Repository with OCI-Artifact-Data 2 | -------------------------------------------------------------------------------- /api/oci/cpi/suite_test.go: -------------------------------------------------------------------------------- 1 | package cpi_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Cpi Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/oci/extensions/actions/init.go: -------------------------------------------------------------------------------- 1 | package actions 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/oci/extensions/actions/oci-repository-prepare" 5 | ) 6 | -------------------------------------------------------------------------------- /api/oci/extensions/attrs/cacheattr/suite_test.go: -------------------------------------------------------------------------------- 1 | package cacheattr_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI blob cache attribute") 13 | } 14 | -------------------------------------------------------------------------------- /api/oci/extensions/attrs/init.go: -------------------------------------------------------------------------------- 1 | package attrs 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/oci/extensions/attrs/cacheattr" 5 | ) 6 | -------------------------------------------------------------------------------- /api/oci/extensions/repositories/artifactset/suite_test.go: -------------------------------------------------------------------------------- 1 | package artifactset_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI CTF Artifact Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/oci/extensions/repositories/ctf/index/suite_test.go: -------------------------------------------------------------------------------- 1 | package index_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "CTF Index") 13 | } 14 | -------------------------------------------------------------------------------- /api/oci/extensions/repositories/ctf/suite_test.go: -------------------------------------------------------------------------------- 1 | package ctf_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI CTF Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/oci/extensions/repositories/docker/logging.go: -------------------------------------------------------------------------------- 1 | package docker 2 | 3 | import ocmlog "ocm.software/ocm/api/utils/logging" 4 | 5 | var REALM = ocmlog.DefineSubRealm("Docker repository handling", "oci", "docker") 6 | -------------------------------------------------------------------------------- /api/oci/extensions/repositories/docker/suite_test.go: -------------------------------------------------------------------------------- 1 | package docker_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "docker daemon Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/oci/extensions/repositories/init.go: -------------------------------------------------------------------------------- 1 | package repositories 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/oci/extensions/repositories/artifactset" 5 | _ "ocm.software/ocm/api/oci/extensions/repositories/ctf" 6 | _ "ocm.software/ocm/api/oci/extensions/repositories/docker" 7 | _ "ocm.software/ocm/api/oci/extensions/repositories/empty" 8 | _ "ocm.software/ocm/api/oci/extensions/repositories/ocireg" 9 | ) 10 | -------------------------------------------------------------------------------- /api/oci/extensions/repositories/ocireg/logging.go: -------------------------------------------------------------------------------- 1 | package ocireg 2 | 3 | import ocmlog "ocm.software/ocm/api/utils/logging" 4 | 5 | var REALM = ocmlog.DefineSubRealm("OCI repository handling", "oci", "ocireg") 6 | -------------------------------------------------------------------------------- /api/oci/init.go: -------------------------------------------------------------------------------- 1 | package oci 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/oci/config" 5 | _ "ocm.software/ocm/api/oci/extensions/actions" 6 | _ "ocm.software/ocm/api/oci/extensions/attrs" 7 | _ "ocm.software/ocm/api/oci/extensions/repositories" 8 | ) 9 | -------------------------------------------------------------------------------- /api/oci/internal/suite_test.go: -------------------------------------------------------------------------------- 1 | package internal_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Core Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/.helmignore: -------------------------------------------------------------------------------- 1 | mast/a.txt 2 | .DS_Store 3 | .git 4 | -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/.joonix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/oci/ociutils/helm/ignore/testdata/.joonix -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/oci/ociutils/helm/ignore/testdata/a.txt -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/cargo/a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/oci/ociutils/helm/ignore/testdata/cargo/a.txt -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/cargo/b.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/oci/ociutils/helm/ignore/testdata/cargo/b.txt -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/cargo/c.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/oci/ociutils/helm/ignore/testdata/cargo/c.txt -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/helm.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/oci/ociutils/helm/ignore/testdata/helm.txt -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/mast/a.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/oci/ociutils/helm/ignore/testdata/mast/a.txt -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/mast/b.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/oci/ociutils/helm/ignore/testdata/mast/b.txt -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/mast/c.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/oci/ociutils/helm/ignore/testdata/mast/c.txt -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/rudder.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/oci/ociutils/helm/ignore/testdata/rudder.txt -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/templates/.dotfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/oci/ociutils/helm/ignore/testdata/templates/.dotfile -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/tiller.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/oci/ociutils/helm/ignore/testdata/tiller.txt -------------------------------------------------------------------------------- /api/oci/ociutils/helm/suite_test.go: -------------------------------------------------------------------------------- 1 | package helm_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/oci/ociutils/helm/testdata/testchart.prov: -------------------------------------------------------------------------------- 1 | --- 2 | data: some provider data -------------------------------------------------------------------------------- /api/oci/ociutils/helm/testdata/testchart/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.serviceAccount.create -}} 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: {{ include "testchart.serviceAccountName" . }} 6 | labels: 7 | {{- include "testchart.labels" . | nindent 4 }} 8 | {{- with .Values.serviceAccount.annotations }} 9 | annotations: 10 | {{- toYaml . | nindent 4 }} 11 | {{- end }} 12 | {{- end }} 13 | -------------------------------------------------------------------------------- /api/oci/ociutils/suite_test.go: -------------------------------------------------------------------------------- 1 | package ociutils_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Utils Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/oci/suite_test.go: -------------------------------------------------------------------------------- 1 | package oci_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/oci/tools/transfer/suite_test.go: -------------------------------------------------------------------------------- 1 | package transfer_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Transfer Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/compdesc/init.go: -------------------------------------------------------------------------------- 1 | package compdesc 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/tech/signing/handlers" 5 | _ "ocm.software/ocm/api/tech/signing/hasher" 6 | ) 7 | -------------------------------------------------------------------------------- /api/ocm/compdesc/logging.go: -------------------------------------------------------------------------------- 1 | package compdesc 2 | 3 | import ( 4 | "ocm.software/ocm/api/utils/logging" 5 | ) 6 | 7 | var ( 8 | REALM = logging.DefineSubRealm("component descriptor handling", "compdesc") 9 | Logger = logging.DynamicLogger(REALM) 10 | ) 11 | -------------------------------------------------------------------------------- /api/ocm/compdesc/meta/v1/stringmap.go: -------------------------------------------------------------------------------- 1 | package v1 2 | 3 | type StringMap map[string]string 4 | 5 | // Copy copies map. 6 | func (l StringMap) Copy() StringMap { 7 | n := StringMap{} 8 | for k, v := range l { 9 | n[k] = v 10 | } 11 | return n 12 | } 13 | -------------------------------------------------------------------------------- /api/ocm/compdesc/meta/v1/suite_test.go: -------------------------------------------------------------------------------- 1 | package v1_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Component Descriptor Meta Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/compdesc/none.go: -------------------------------------------------------------------------------- 1 | package compdesc 2 | 3 | // Type is the access type for no blob. 4 | const ( 5 | NoneType = "none" 6 | NoneLegacyType = "None" 7 | ) 8 | 9 | func IsNoneAccessKind(kind string) bool { 10 | return kind == NoneType || kind == NoneLegacyType 11 | } 12 | 13 | func IsNoneAccess(a AccessSpec) bool { 14 | if a == nil { 15 | return false 16 | } 17 | return IsNoneAccessKind(a.GetKind()) 18 | } 19 | -------------------------------------------------------------------------------- /api/ocm/compdesc/normalizations/init.go: -------------------------------------------------------------------------------- 1 | package normalizations 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/ocm/compdesc/normalizations/jsonv1" 5 | _ "ocm.software/ocm/api/ocm/compdesc/normalizations/jsonv2" 6 | _ "ocm.software/ocm/api/ocm/compdesc/normalizations/jsonv3" 7 | ) 8 | -------------------------------------------------------------------------------- /api/ocm/compdesc/suite_test.go: -------------------------------------------------------------------------------- 1 | package compdesc_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Component Descriptor Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/compdesc/versions/init.go: -------------------------------------------------------------------------------- 1 | package versions 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/ocm/compdesc/versions/ocm.software/v3alpha1" 5 | _ "ocm.software/ocm/api/ocm/compdesc/versions/v2" 6 | ) 7 | -------------------------------------------------------------------------------- /api/ocm/config/suite_test.go: -------------------------------------------------------------------------------- 1 | package config_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Config Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/cpi/README.md: -------------------------------------------------------------------------------- 1 | # Context Provider Interface for Component Repositories 2 | -------------------------------------------------------------------------------- /api/ocm/cpi/logging.go: -------------------------------------------------------------------------------- 1 | package cpi 2 | 3 | import ( 4 | "github.com/mandelsoft/logging" 5 | ) 6 | 7 | type OCMContextProvider interface { 8 | GetContext() Context 9 | } 10 | 11 | func Logger(c OCMContextProvider, keyValuePairs ...interface{}) logging.Logger { 12 | return c.GetContext().Logger().WithValues(keyValuePairs...) 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/cpi/repocpi/interface.go: -------------------------------------------------------------------------------- 1 | package repocpi 2 | 3 | import ( 4 | "ocm.software/ocm/api/ocm/internal" 5 | ) 6 | 7 | type ( 8 | Context = internal.Context 9 | Repository = internal.Repository 10 | DigestSpecProvider = internal.DigestSpecProvider 11 | ) 12 | -------------------------------------------------------------------------------- /api/ocm/cpi/repocpi/ocmimpllayers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/ocm/cpi/repocpi/ocmimpllayers.png -------------------------------------------------------------------------------- /api/ocm/cpi/suite_test.go: -------------------------------------------------------------------------------- 1 | package cpi_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM CPI Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/elements/artifactaccess/genericaccess/suite_test.go: -------------------------------------------------------------------------------- 1 | package genericaccess_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Generic External Access Resource") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/dirtreeblob/suite_test.go: -------------------------------------------------------------------------------- 1 | package dirtreeblob_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "DirTree Resource") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/dirtreeblob/testdata/dir/a: -------------------------------------------------------------------------------- 1 | content a -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/dirtreeblob/testdata/dir/b: -------------------------------------------------------------------------------- 1 | content b -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/dirtreeblob/testdata/dir/c: -------------------------------------------------------------------------------- 1 | content a -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/externalblob/doc.go: -------------------------------------------------------------------------------- 1 | // Package ociartifact provides a way to provide ResourceAccess and SourceAccess 2 | // objects based on external access specification intended to be added as local access. 3 | // Those access objects can then directly be used to compose reource and source entries 4 | // in a component version. 5 | package externalblob 6 | -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/genericblob/options.go: -------------------------------------------------------------------------------- 1 | package genericblob 2 | 3 | import ( 4 | "ocm.software/ocm/api/ocm/cpi" 5 | "ocm.software/ocm/api/ocm/elements/artifactblob/api" 6 | ) 7 | 8 | type ( 9 | Options = api.Options 10 | Option = api.Option 11 | ) 12 | 13 | func WithHint(h string) Option { 14 | return api.WithHint(h) 15 | } 16 | 17 | func WithGlobalAccess(a cpi.AccessSpec) Option { 18 | return api.WithGlobalAccess(a) 19 | } 20 | -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/helmblob/suite_test.go: -------------------------------------------------------------------------------- 1 | package helmblob_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Helm Blob Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/helmblob/testdata/testchart1/.idea/somefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/ocm/elements/artifactblob/helmblob/testdata/testchart1/.idea/somefile -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/helmblob/testdata/testchart1/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.serviceAccount.create -}} 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: {{ include "testchart.serviceAccountName" . }} 6 | labels: 7 | {{- include "testchart.labels" . | nindent 4 }} 8 | {{- with .Values.serviceAccount.annotations }} 9 | annotations: 10 | {{- toYaml . | nindent 4 }} 11 | {{- end }} 12 | {{- end }} 13 | -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/helmblob/testdata/testchart2/.idea/somefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/ocm/elements/artifactblob/helmblob/testdata/testchart2/.idea/somefile -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/helmblob/testdata/testchart2/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.serviceAccount.create -}} 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: {{ include "testchart.serviceAccountName" . }} 6 | labels: 7 | {{- include "testchart.labels" . | nindent 4 }} 8 | {{- with .Values.serviceAccount.annotations }} 9 | annotations: 10 | {{- toYaml . | nindent 4 }} 11 | {{- end }} 12 | {{- end }} 13 | -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/mavenblob/suite_test.go: -------------------------------------------------------------------------------- 1 | package mavenblob_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Maven Blob Access Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/npmblob/suite_test.go: -------------------------------------------------------------------------------- 1 | package npmblob_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "NPM Blob Access Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/ocmblob/suite_test.go: -------------------------------------------------------------------------------- 1 | package ocmblob_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Blob Access Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/elements/artifacts.go: -------------------------------------------------------------------------------- 1 | package elements 2 | 3 | type ArtifactOption interface { 4 | ResourceMetaOption 5 | SourceMetaOption 6 | } 7 | -------------------------------------------------------------------------------- /api/ocm/elements/suite_test.go: -------------------------------------------------------------------------------- 1 | package elements_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Element builder") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/git/suite_test.go: -------------------------------------------------------------------------------- 1 | package git 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Github Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/git/testdata/repo/file_in_repo: -------------------------------------------------------------------------------- 1 | Foobar -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/github/suite_test.go: -------------------------------------------------------------------------------- 1 | package github_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Github Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/github/testdata/repo.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/ocm/extensions/accessmethods/github/testdata/repo.tar.gz -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/helm/suite_test.go: -------------------------------------------------------------------------------- 1 | package helm_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Helm Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/localblob/suite_test.go: -------------------------------------------------------------------------------- 1 | package localblob_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "LocalBlob Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/localfsblob/suite_test.go: -------------------------------------------------------------------------------- 1 | package localfsblob_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "LocalFSBlob Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/localociblob/suite_test.go: -------------------------------------------------------------------------------- 1 | package localociblob_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "LocalOCIBlob Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/maven/suite_test.go: -------------------------------------------------------------------------------- 1 | package maven_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Maven Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/npm/suite_test.go: -------------------------------------------------------------------------------- 1 | package npm_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "NPM Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/ociartifact/suite_test.go: -------------------------------------------------------------------------------- 1 | package ociartifact_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCIRegistry Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/ociblob/suite_test.go: -------------------------------------------------------------------------------- 1 | package ociblob_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCIBlob Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/ocm/suite_test.go: -------------------------------------------------------------------------------- 1 | package ocm_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Access Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/options/suite_test.go: -------------------------------------------------------------------------------- 1 | package options_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "CLI Option Definition Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/plugin/doc.go: -------------------------------------------------------------------------------- 1 | // Package plugin is an adapter implementation that provides a generic handling of all AccessMethods provided by 2 | // plugins. 3 | // It includes a generic AccessType object (responsible for un-/marshaling AccessSpec objects), AccessSpec object and 4 | // AccessMethod implementation mapping the AccessMethod interface to the plugin interface. 5 | package plugin 6 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/relativeociref/suite_test.go: -------------------------------------------------------------------------------- 1 | package relativeociref_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCIRegistry Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/s3/ifce_test.go: -------------------------------------------------------------------------------- 1 | package s3 2 | 3 | import ( 4 | "ocm.software/ocm/api/ocm/cpi/accspeccpi" 5 | ) 6 | 7 | func Versions() accspeccpi.AccessTypeVersionScheme { 8 | return versions 9 | } 10 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/s3/suite_test.go: -------------------------------------------------------------------------------- 1 | package s3_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "S3 Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/s3/testdata/repo.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/ocm/extensions/accessmethods/s3/testdata/repo.tar.gz -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/wget/suite_test.go: -------------------------------------------------------------------------------- 1 | package wget_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCIRegistry Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/actionhandler/init.go: -------------------------------------------------------------------------------- 1 | package actionhandler 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/ocm/extensions/actionhandler/plugin" 5 | ) 6 | -------------------------------------------------------------------------------- /api/ocm/extensions/actionhandler/plugin/suite_test.go: -------------------------------------------------------------------------------- 1 | package plugin_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Plugin Action Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/attrs/compatattr/suite_test.go: -------------------------------------------------------------------------------- 1 | package compatattr_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Compatibility Attribute") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/attrs/compositionmodeattr/suite_test.go: -------------------------------------------------------------------------------- 1 | package compositionmodeattr_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Composition Mode Attribute") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/attrs/hashattr/suite_test.go: -------------------------------------------------------------------------------- 1 | package hashattr_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Hasher Attribute") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/attrs/keepblobattr/suite_test.go: -------------------------------------------------------------------------------- 1 | package keepblobattr_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM KeepBlob Attribute") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/attrs/mapocirepoattr/suite_test.go: -------------------------------------------------------------------------------- 1 | package mapocirepoattr_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM KeepBlob Attribute") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/attrs/ociuploadattr/suite_test.go: -------------------------------------------------------------------------------- 1 | package ociuploadattr_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Upload Repository Attribute") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/attrs/plugindirattr/suite_test.go: -------------------------------------------------------------------------------- 1 | package plugindirattr_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Plugin Directory Attribute") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/attrs/signingattr/suite_test.go: -------------------------------------------------------------------------------- 1 | package signingattr_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Signing Attribute") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/blobhandler/handlers/generic/maven/suite_test.go: -------------------------------------------------------------------------------- 1 | package maven_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Maven Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/blobhandler/handlers/generic/npm/suite_test.go: -------------------------------------------------------------------------------- 1 | package npm_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "NPM Repository tests") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/blobhandler/handlers/generic/npm/testdata/testdata.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/ocm/extensions/blobhandler/handlers/generic/npm/testdata/testdata.tgz -------------------------------------------------------------------------------- /api/ocm/extensions/blobhandler/handlers/generic/ocirepo/suite_test.go: -------------------------------------------------------------------------------- 1 | package ocirepo_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Upload Repository Attribute") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/blobhandler/handlers/generic/plugin/suite_test.go: -------------------------------------------------------------------------------- 1 | package plugin_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Plugin Uploader Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/blobhandler/handlers/oci/doc.go: -------------------------------------------------------------------------------- 1 | // Package oci contains sub packages for blob handler implementations 2 | // for dedicated implementations of the oci go binding interface. 3 | package oci 4 | -------------------------------------------------------------------------------- /api/ocm/extensions/blobhandler/handlers/oci/ocirepo/suite_test.go: -------------------------------------------------------------------------------- 1 | package ocirepo_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCIRegistry Blob Handler Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/blobhandler/handlers/ocm/comparch/suite_test.go: -------------------------------------------------------------------------------- 1 | package comparch 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "CTF Component Archive Blob Handler") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/blobhandler/handlers/ocm/doc.go: -------------------------------------------------------------------------------- 1 | // Package ocm contains sub packages for blob handler implementations 2 | // for dedicated implementations of the default ocm go binding interface. 3 | package ocm 4 | -------------------------------------------------------------------------------- /api/ocm/extensions/digester/digesters/init.go: -------------------------------------------------------------------------------- 1 | package digesters 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/ocm/extensions/digester/digesters/artifact" 5 | _ "ocm.software/ocm/api/ocm/extensions/digester/digesters/blob" 6 | ) 7 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/config/suite_test.go: -------------------------------------------------------------------------------- 1 | package config_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "cdownload handler config Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/blueprint/suite_test.go: -------------------------------------------------------------------------------- 1 | package blueprint_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Download Blueprint Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/blueprint/testdata/blueprint/test/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/ocm/extensions/download/handlers/blueprint/testdata/blueprint/test/README.md -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/dirtree/suite_test.go: -------------------------------------------------------------------------------- 1 | package dirtree_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Download DirTree Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/dirtree/testdata/layers/0/testfile: -------------------------------------------------------------------------------- 1 | testdata 2 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/dirtree/testdata/layers/1/dir/nestedfile: -------------------------------------------------------------------------------- 1 | other test data 2 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/dirtree/testdata/layers/all/dir/nestedfile: -------------------------------------------------------------------------------- 1 | other test data 2 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/dirtree/testdata/layers/all/testfile: -------------------------------------------------------------------------------- 1 | testdata 2 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/helm/suite_test.go: -------------------------------------------------------------------------------- 1 | package helm_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Upload Downloader") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/helm/testdata/legacy-pre-hip-helm-chart.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/ocm/extensions/download/handlers/helm/testdata/legacy-pre-hip-helm-chart.tgz -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/helm/testdata/test-chart-oci-artifact.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/ocm/extensions/download/handlers/helm/testdata/test-chart-oci-artifact.tgz -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/helm/testdata/test-chart/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: game-demo 5 | data: 6 | test: {{ .Values.test.value }} -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/helm/testdata/test-chart/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for test-chart. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | 5 | test: 6 | value: "hello-world" -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/helm/testdata/unusual-ordered-helm-chart.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/ocm/extensions/download/handlers/helm/testdata/unusual-ordered-helm-chart.tgz -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/ocirepo/suite_test.go: -------------------------------------------------------------------------------- 1 | package ocirepo_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Upload Downloader") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/plugin/suite_test.go: -------------------------------------------------------------------------------- 1 | package plugin_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Plugin Download Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/labels/init.go: -------------------------------------------------------------------------------- 1 | package labels 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/ocm/extensions/labels/routingslip/types" 5 | ) 6 | -------------------------------------------------------------------------------- /api/ocm/extensions/labels/routingslip/init.go: -------------------------------------------------------------------------------- 1 | package routingslip 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/ocm/extensions/labels/routingslip/types" 5 | ) 6 | -------------------------------------------------------------------------------- /api/ocm/extensions/labels/routingslip/suite_test.go: -------------------------------------------------------------------------------- 1 | package routingslip_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Component Descriptor Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/labels/routingslip/types/init.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/ocm/extensions/labels/routingslip/types/comment" 5 | ) 6 | -------------------------------------------------------------------------------- /api/ocm/extensions/labels/routingslip/types/plugin/doc.go: -------------------------------------------------------------------------------- 1 | // Package plugin is an adapter implementation that provides a generic handling of all ValueSets provided by 2 | // plugins. 3 | package plugin 4 | -------------------------------------------------------------------------------- /api/ocm/extensions/pubsub/providers/init.go: -------------------------------------------------------------------------------- 1 | package providers 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/ocm/extensions/pubsub/providers/ocireg" 5 | ) 6 | -------------------------------------------------------------------------------- /api/ocm/extensions/pubsub/providers/ocireg/suite_test.go: -------------------------------------------------------------------------------- 1 | package ocireg_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "PubSub OCI Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/pubsub/suite_test.go: -------------------------------------------------------------------------------- 1 | package pubsub_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Core Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/pubsub/types/init.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/ocm/extensions/pubsub/types/compound" 5 | _ "ocm.software/ocm/api/ocm/extensions/pubsub/types/redis" 6 | ) 7 | -------------------------------------------------------------------------------- /api/ocm/extensions/pubsub/types/redis/suite_test.go: -------------------------------------------------------------------------------- 1 | package redis_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Redis PubSubTest Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/comparch/suite_test.go: -------------------------------------------------------------------------------- 1 | package comparch 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "CTF Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/comparch/testdata/directory/blobs/root/testfile: -------------------------------------------------------------------------------- 1 | testdata 2 | -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/composition/suite_test.go: -------------------------------------------------------------------------------- 1 | package composition_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Composition Repository Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/ctf/suite_test.go: -------------------------------------------------------------------------------- 1 | package ctf_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "CTF Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/genericocireg/excludes.go: -------------------------------------------------------------------------------- 1 | package genericocireg 2 | 3 | import ( 4 | "ocm.software/ocm/api/oci/extensions/repositories/artifactset" 5 | "ocm.software/ocm/api/oci/extensions/repositories/docker" 6 | "ocm.software/ocm/api/oci/extensions/repositories/empty" 7 | ) 8 | 9 | var Excludes = []string{ 10 | docker.Type, 11 | artifactset.Type, 12 | empty.Type, 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/genericocireg/suite_test.go: -------------------------------------------------------------------------------- 1 | package genericocireg_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Generic OCI OCM Repository Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/init.go: -------------------------------------------------------------------------------- 1 | package repositories 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/ocm/extensions/repositories/comparch" 5 | _ "ocm.software/ocm/api/ocm/extensions/repositories/ctf" 6 | _ "ocm.software/ocm/api/ocm/extensions/repositories/genericocireg" 7 | ) 8 | -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/ocireg/suite_test.go: -------------------------------------------------------------------------------- 1 | package ocireg_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Registry OCM Repository Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/virtual/example/doc.go: -------------------------------------------------------------------------------- 1 | // Package example contains a simple implementation providing 2 | // a virtual OCM repository based on some opinionated 3 | // filesystem structure. 4 | // It uses the virtual package by providing a dedicated 5 | // implementation of the virtual.Access interface working 6 | // on a virtual filesystem. 7 | package example 8 | -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/virtual/suite_test.go: -------------------------------------------------------------------------------- 1 | package virtual_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Virtual Repository Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/virtual/testdata/blobs/blob1: -------------------------------------------------------------------------------- 1 | my test data 2 | -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/virtual/testdata/blobs/blob2: -------------------------------------------------------------------------------- 1 | my second test data 2 | -------------------------------------------------------------------------------- /api/ocm/grammar/suite_test.go: -------------------------------------------------------------------------------- 1 | package grammar 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM grammar Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/internal/hasher.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | import ( 4 | "ocm.software/ocm/api/tech/signing" 5 | ) 6 | 7 | // Hasher creates a new hash.Hash interface. 8 | type Hasher = signing.Hasher 9 | 10 | // HasherProvider provides access to supported hash methods. 11 | type HasherProvider = signing.HasherProvider 12 | -------------------------------------------------------------------------------- /api/ocm/internal/suite_test.go: -------------------------------------------------------------------------------- 1 | package internal_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Core Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/ocmutils/check/suite_test.go: -------------------------------------------------------------------------------- 1 | package check_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Check component versions") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/ocmutils/localize/suite_test.go: -------------------------------------------------------------------------------- 1 | package localize_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Localization Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/ocmutils/localize/testdata/dir/manifest1.yaml: -------------------------------------------------------------------------------- 1 | manifest: 2 | value1: orig1 3 | value2: orig2 -------------------------------------------------------------------------------- /api/ocm/ocmutils/localize/testdata/dir/manifest2.yaml: -------------------------------------------------------------------------------- 1 | manifest: 2 | value1: orig1 3 | value2: orig2 -------------------------------------------------------------------------------- /api/ocm/ocmutils/localize/testdata/dir/some.json: -------------------------------------------------------------------------------- 1 | { "manifest": { "value1": "orig1", "value2": "orig2" }} -------------------------------------------------------------------------------- /api/ocm/ocmutils/registry/suite_test.go: -------------------------------------------------------------------------------- 1 | package registry_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Artifact Context Registry Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/ocmutils/suite_test.go: -------------------------------------------------------------------------------- 1 | package ocmutils_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Utils Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/plugin/cache/doc.go: -------------------------------------------------------------------------------- 1 | // Package cache implements the plugin cache that contains all loaded plugins. It keeps the metadata for the various 2 | // discovered plugins and provides a Go abstraction to call the appropriate commands. 3 | package cache 4 | -------------------------------------------------------------------------------- /api/ocm/plugin/descriptor/doc.go: -------------------------------------------------------------------------------- 1 | // Package descriptor declares several structs that describe the information that formally describes the capabilities 2 | // provided by each plugin. The plugin implementation has to provide this information and the plugin user has to 3 | // evaluate this information. 4 | package descriptor 5 | -------------------------------------------------------------------------------- /api/ocm/plugin/descriptor/suite_test.go: -------------------------------------------------------------------------------- 1 | package descriptor_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Plugin Internal Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/plugin/internal/access.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | import ( 4 | "ocm.software/ocm/api/credentials" 5 | ) 6 | 7 | type AccessSpecInfo struct { 8 | Short string `json:"short"` 9 | MediaType string `json:"mediaType"` 10 | Hint string `json:"hint"` 11 | ConsumerId credentials.ConsumerIdentity `json:"consumerId"` 12 | } 13 | -------------------------------------------------------------------------------- /api/ocm/plugin/internal/action.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | type ActionSpecInfo struct { 4 | Name string 5 | Arguments interface{} 6 | } 7 | -------------------------------------------------------------------------------- /api/ocm/plugin/internal/upload.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | import ( 4 | "ocm.software/ocm/api/credentials" 5 | ) 6 | 7 | type UploadTargetSpecInfo struct { 8 | ConsumerId credentials.ConsumerIdentity `json:"consumerId"` 9 | } 10 | -------------------------------------------------------------------------------- /api/ocm/plugin/internal/valueset.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | type ValueSetInfo struct { 4 | Short string `json:"description"` 5 | } 6 | -------------------------------------------------------------------------------- /api/ocm/plugin/ppi/cmds/common/const.go: -------------------------------------------------------------------------------- 1 | package common 2 | 3 | const ( 4 | OptCreds = "credentials" 5 | OptHint = "hint" 6 | OptMedia = "mediaType" 7 | OptArt = "artifactType" 8 | OptConfig = "config" 9 | OptCliConfig = "cli-config" 10 | OptDigest = "digest" 11 | ) 12 | -------------------------------------------------------------------------------- /api/ocm/plugin/ppi/config/doc.go: -------------------------------------------------------------------------------- 1 | // The config package can be used if the plugin should provide 2 | // the ocm configuration from the calling OCM library. 3 | // Just add an anonymous import to this package to your main program 4 | // or CLI extension command. 5 | // The config is only passed, if a CLI extension caommand is called. 6 | package config 7 | -------------------------------------------------------------------------------- /api/ocm/plugin/ppi/doc.go: -------------------------------------------------------------------------------- 1 | // Package ppi provides the plugin programming interface. 2 | // The ppi can be used by plugin developers as support. It reduces the command line interface to a corresponding Go 3 | // interface. In other words, if the developer implements this Go plugin interface, the ppi automatically provides a 4 | // corresponding command line interface. 5 | package ppi 6 | -------------------------------------------------------------------------------- /api/ocm/plugin/ppi/logging/doc.go: -------------------------------------------------------------------------------- 1 | // The logging package can be used if the plugin should handle 2 | // the ocm logging configuration from the calling OCM library. 3 | // Just add an anonymous import to this package to your main program. 4 | // The passed config used contains settings according to the mandelsoft logging 5 | // package. 6 | package logging 7 | -------------------------------------------------------------------------------- /api/ocm/plugin/registration/logging.go: -------------------------------------------------------------------------------- 1 | package registration 2 | 3 | import ( 4 | "github.com/mandelsoft/logging" 5 | 6 | "ocm.software/ocm/api/ocm/plugin/descriptor" 7 | ) 8 | 9 | func Logger(c logging.ContextProvider, keyValuePairs ...interface{}) logging.Logger { 10 | return c.LoggingContext().Logger(descriptor.REALM).WithValues(keyValuePairs...) 11 | } 12 | -------------------------------------------------------------------------------- /api/ocm/plugin/suite_test.go: -------------------------------------------------------------------------------- 1 | package plugin_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Plugin Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/resolvers/suite_test.go: -------------------------------------------------------------------------------- 1 | package resolvers_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Resolvers Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/resourcerefs/suite_test.go: -------------------------------------------------------------------------------- 1 | package resourcerefs_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM ResourceRefs Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/selectors/labelsel/suite_test.go: -------------------------------------------------------------------------------- 1 | package labelsel_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "label selectorTest Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/selectors/rscsel/artifact.go: -------------------------------------------------------------------------------- 1 | package rscsel 2 | 3 | import ( 4 | "ocm.software/ocm/api/ocm/selectors" 5 | ) 6 | 7 | // Artifact selectors 8 | 9 | func ArtifactType(n string) Selector { 10 | return selectors.ArtifactType(n) 11 | } 12 | 13 | func ResourceType(n string) Selector { 14 | return selectors.ArtifactType(n) 15 | } 16 | 17 | func AccessKind(n string) Selector { 18 | return selectors.AccessKind(n) 19 | } 20 | -------------------------------------------------------------------------------- /api/ocm/selectors/srcsel/artifact.go: -------------------------------------------------------------------------------- 1 | package srcsel 2 | 3 | import ( 4 | "ocm.software/ocm/api/ocm/selectors" 5 | ) 6 | 7 | // Artifact selectors 8 | 9 | func ArtifactType(n string) Selector { 10 | return selectors.ArtifactType(n) 11 | } 12 | 13 | func SourceType(n string) Selector { 14 | return selectors.ArtifactType(n) 15 | } 16 | 17 | func AccessKind(n string) Selector { 18 | return selectors.AccessKind(n) 19 | } 20 | -------------------------------------------------------------------------------- /api/ocm/selectors/srcsel/interface.go: -------------------------------------------------------------------------------- 1 | package srcsel 2 | 3 | import ( 4 | "ocm.software/ocm/api/ocm/selectors" 5 | ) 6 | 7 | type ( 8 | Selector = selectors.SourceSelector 9 | SelectorFunc = selectors.SourceSelectorFunc 10 | ) 11 | -------------------------------------------------------------------------------- /api/ocm/suite_test.go: -------------------------------------------------------------------------------- 1 | package ocm_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/testhelper/refmgmt.go: -------------------------------------------------------------------------------- 1 | package testhelper 2 | 3 | import ( 4 | "github.com/mandelsoft/logging" 5 | 6 | ocmlog "ocm.software/ocm/api/utils/logging" 7 | "ocm.software/ocm/api/utils/refmgmt" 8 | ) 9 | 10 | func EnableRefMgmtLog() { 11 | ocmlog.Context().AddRule(logging.NewConditionRule(logging.TraceLevel, refmgmt.ALLOC_REALM)) 12 | } 13 | -------------------------------------------------------------------------------- /api/ocm/tools/signing/signingtest/testdata.go: -------------------------------------------------------------------------------- 1 | package signingtest 2 | 3 | import ( 4 | "ocm.software/ocm/api/helper/env" 5 | ) 6 | 7 | func TestData(dest ...string) env.Option { 8 | return env.ProjectTestDataForCaller("testdata", dest...) 9 | } 10 | 11 | func ModifiableTestData(dest ...string) env.Option { 12 | return env.ModifiableProjectTestDataForCaller("testdata", dest...) 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/tools/signing/signingtest/testdata/compat/component-archive/blobs/sha256.c893900c1106f13d55648a425f502dd6518e40eaa3ac7d24023d4c73d55dc12e: -------------------------------------------------------------------------------- 1 | this is test data -------------------------------------------------------------------------------- /api/ocm/tools/signing/suite_test.go: -------------------------------------------------------------------------------- 1 | package signing_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Signing Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/tools/toi/drivers/default/driver.go: -------------------------------------------------------------------------------- 1 | package _default 2 | 3 | import ( 4 | "ocm.software/ocm/api/ocm/tools/toi/drivers/docker" 5 | "ocm.software/ocm/api/ocm/tools/toi/install" 6 | ) 7 | 8 | var New = func() install.Driver { 9 | return &docker.Driver{} 10 | } 11 | -------------------------------------------------------------------------------- /api/ocm/tools/toi/install/suite_test.go: -------------------------------------------------------------------------------- 1 | package install_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Install Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/tools/toi/logging.go: -------------------------------------------------------------------------------- 1 | package toi 2 | 3 | import ( 4 | "ocm.software/ocm/api/utils/logging" 5 | ) 6 | 7 | var REALM = logging.DefineSubRealm("TOI logging", "toi") 8 | 9 | var Log = logging.DynamicLogger(REALM) 10 | -------------------------------------------------------------------------------- /api/ocm/tools/transfer/debug.go: -------------------------------------------------------------------------------- 1 | package transfer 2 | 3 | var Breakpoints = false 4 | -------------------------------------------------------------------------------- /api/ocm/tools/transfer/init.go: -------------------------------------------------------------------------------- 1 | package transfer 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/ocm/tools/transfer/transferhandler/config" 5 | _ "ocm.software/ocm/api/ocm/tools/transfer/transferhandler/spiff" 6 | _ "ocm.software/ocm/api/ocm/tools/transfer/transferhandler/standard" 7 | ) 8 | -------------------------------------------------------------------------------- /api/ocm/tools/transfer/suite_test.go: -------------------------------------------------------------------------------- 1 | package transfer_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Transfer Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/tools/transfer/transferhandler/spiff/suite_test.go: -------------------------------------------------------------------------------- 1 | package spiff_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Spiff Transfer Handler Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/tools/transfer/transferhandler/standard/suite_test.go: -------------------------------------------------------------------------------- 1 | package standard_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Standard Transfer Handler Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/tools/transfer/transferhandler/standard/testdata/v0.18.0/artifact-index.json: -------------------------------------------------------------------------------- 1 | {"schemaVersion":1,"artifacts":[{"repository":"component-descriptors/github.com/mandelsoft/test1","tag":"1.0.0","digest":"sha256:210dda6808d47862660fdf5753d17e2b6152ff31fbd07ff947b821f717f1232a"}]} -------------------------------------------------------------------------------- /api/ocm/tools/transfer/transferhandler/standard/testdata/v0.18.0/blobs/sha256.916f0027a575074ce72a331777c3478d6513f786a591bd892da1a577bf2335f9: -------------------------------------------------------------------------------- 1 | test data -------------------------------------------------------------------------------- /api/ocm/tools/transfer/transferhandler/standard/testdata/v0.18.0/blobs/sha256.920ce99fb13b43ca0408caee6e61f6335ea5156d79aa98e733e1ed2393e0f649: -------------------------------------------------------------------------------- 1 | extended test data -------------------------------------------------------------------------------- /api/ocm/tools/transfer/transferhandler/standard/testdata/v0.18.0/blobs/sha256.958eb6b2928a569d7aaab2aa924fb236e977bfbc43309908aa9c45b154f689cd: -------------------------------------------------------------------------------- 1 | {"componentDescriptorLayer":{"mediaType":"application/vnd.ocm.software.component-descriptor.v2+yaml+tar","digest":"sha256:a4b84597729cfa026c51a47e903f449ad7b4a9ec9897f2084b982a66fcdbfb5f","size":4608}} -------------------------------------------------------------------------------- /api/ocm/valuemergehandler/config/suite_test.go: -------------------------------------------------------------------------------- 1 | package config_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Merge Specification Config Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/valuemergehandler/handlers/defaultmerge/suite_test.go: -------------------------------------------------------------------------------- 1 | package defaultmerge_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Default Label Merge Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/valuemergehandler/handlers/init.go: -------------------------------------------------------------------------------- 1 | package handlers 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/ocm/valuemergehandler/handlers/defaultmerge" 5 | _ "ocm.software/ocm/api/ocm/valuemergehandler/handlers/maplistmerge" 6 | _ "ocm.software/ocm/api/ocm/valuemergehandler/handlers/simplelistmerge" 7 | _ "ocm.software/ocm/api/ocm/valuemergehandler/handlers/simplemapmerge" 8 | ) 9 | -------------------------------------------------------------------------------- /api/ocm/valuemergehandler/handlers/maplistmerge/suite_test.go: -------------------------------------------------------------------------------- 1 | package maplistmerge_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "List Label Merge Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/valuemergehandler/handlers/plugin/config.go: -------------------------------------------------------------------------------- 1 | package plugin 2 | 3 | import ( 4 | "encoding/json" 5 | 6 | "ocm.software/ocm/api/ocm/valuemergehandler" 7 | ) 8 | 9 | type Config struct { 10 | json.RawMessage 11 | } 12 | 13 | var _ valuemergehandler.Config = (*Config)(nil) 14 | 15 | func (c Config) Complete(valuemergehandler.Context) error { 16 | return nil 17 | } 18 | -------------------------------------------------------------------------------- /api/ocm/valuemergehandler/handlers/plugin/suite_test.go: -------------------------------------------------------------------------------- 1 | package plugin_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Plugin Merge Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/valuemergehandler/handlers/simplelistmerge/suite_test.go: -------------------------------------------------------------------------------- 1 | package simplelistmerge_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Map Label Merge Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/valuemergehandler/handlers/simplemapmerge/suite_test.go: -------------------------------------------------------------------------------- 1 | package simplemapmerge_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Map Label Merge Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/ocm/valuemergehandler/hpi/logging.go: -------------------------------------------------------------------------------- 1 | package hpi 2 | 3 | import ( 4 | ocmlog "ocm.software/ocm/api/utils/logging" 5 | ) 6 | 7 | var REALM = ocmlog.DefineSubRealm("value merge handling", "valuemerge") 8 | 9 | var Log = ocmlog.DynamicLogger(REALM) 10 | -------------------------------------------------------------------------------- /api/tech/git/identity/suite_test.go: -------------------------------------------------------------------------------- 1 | package identity_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Git Identity Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/tech/git/logging.go: -------------------------------------------------------------------------------- 1 | package git 2 | 3 | import "ocm.software/ocm/api/utils/logging" 4 | 5 | var REALM = logging.DefineSubRealm("git repository", "git") 6 | -------------------------------------------------------------------------------- /api/tech/git/suite_test.go: -------------------------------------------------------------------------------- 1 | package git_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Git Tech Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/tech/git/testdata/repo/file_in_repo: -------------------------------------------------------------------------------- 1 | Foobar -------------------------------------------------------------------------------- /api/tech/helm/identity/suite_test.go: -------------------------------------------------------------------------------- 1 | package identity_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Helm Identity Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/tech/helm/loader/forward.go: -------------------------------------------------------------------------------- 1 | package loader 2 | 3 | import ( 4 | "helm.sh/helm/v3/pkg/chart/loader" 5 | ) 6 | 7 | var LoadArchive = loader.LoadArchive 8 | -------------------------------------------------------------------------------- /api/tech/maven/logging.go: -------------------------------------------------------------------------------- 1 | package maven 2 | 3 | import "ocm.software/ocm/api/utils/logging" 4 | 5 | var REALM = logging.DefineSubRealm("Maven repository", "maven") 6 | 7 | var Log = logging.DynamicLogger(REALM) 8 | -------------------------------------------------------------------------------- /api/tech/maven/maventest/const.go: -------------------------------------------------------------------------------- 1 | package maventest 2 | 3 | const ( 4 | GROUP_ID = "com.sap.cloud.sdk" 5 | ARTIFACT_ID = "sdk-modules-bom" 6 | VERSION = "5.7.0" 7 | 8 | ARTIFACT_SIZE = 1504 9 | ARTIFACT_DIGEST = "dc5b38b58fd18cb0336c2e0deebeb5d2277c34312ae7024074812f34acfebc65" 10 | ) 11 | 12 | const POM_SHA1 = "SHA-1:34ccdeb9c008f8aaef90873fc636b09d3ae5c709" 13 | -------------------------------------------------------------------------------- /api/tech/maven/maventest/testdata.go: -------------------------------------------------------------------------------- 1 | package maventest 2 | 3 | import ( 4 | "ocm.software/ocm/api/helper/env" 5 | ) 6 | 7 | func TestData(dest ...string) env.Option { 8 | return env.ProjectTestDataForCaller("testdata", dest...) 9 | } 10 | 11 | func ModifiableTestData(dest ...string) env.Option { 12 | return env.ModifiableProjectTestDataForCaller("testdata", dest...) 13 | } 14 | -------------------------------------------------------------------------------- /api/tech/maven/maventest/testdata/.m2/fail/test/repository/42/repository-42.pom.sha1: -------------------------------------------------------------------------------- 1 | 44a77645201d1a8fc5213ace787c220eabbd0967 -------------------------------------------------------------------------------- /api/tech/maven/maventest/testdata/.m2/repository/com/sap/cloud/sdk/sdk-modules-bom/5.7.0/sdk-modules-bom-5.7.0-random-content.json: -------------------------------------------------------------------------------- 1 | {"some": "test content"} -------------------------------------------------------------------------------- /api/tech/maven/maventest/testdata/.m2/repository/com/sap/cloud/sdk/sdk-modules-bom/5.7.0/sdk-modules-bom-5.7.0-random-content.json.sha1: -------------------------------------------------------------------------------- 1 | f0763ff4add043560aa3827cea06bf9335b87f73 -------------------------------------------------------------------------------- /api/tech/maven/maventest/testdata/.m2/repository/com/sap/cloud/sdk/sdk-modules-bom/5.7.0/sdk-modules-bom-5.7.0-random-content.txt: -------------------------------------------------------------------------------- 1 | some test content -------------------------------------------------------------------------------- /api/tech/maven/maventest/testdata/.m2/repository/com/sap/cloud/sdk/sdk-modules-bom/5.7.0/sdk-modules-bom-5.7.0-random-content.txt.sha1: -------------------------------------------------------------------------------- 1 | dbabd43828eccd27e3a109b58454e4ff43c8673e -------------------------------------------------------------------------------- /api/tech/maven/maventest/testdata/.m2/repository/com/sap/cloud/sdk/sdk-modules-bom/5.7.0/sdk-modules-bom-5.7.0-sources.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/tech/maven/maventest/testdata/.m2/repository/com/sap/cloud/sdk/sdk-modules-bom/5.7.0/sdk-modules-bom-5.7.0-sources.jar -------------------------------------------------------------------------------- /api/tech/maven/maventest/testdata/.m2/repository/com/sap/cloud/sdk/sdk-modules-bom/5.7.0/sdk-modules-bom-5.7.0-sources.jar.sha1: -------------------------------------------------------------------------------- 1 | 7952c62446009a98176eeac7b815cddda5a13fa4 -------------------------------------------------------------------------------- /api/tech/maven/maventest/testdata/.m2/repository/com/sap/cloud/sdk/sdk-modules-bom/5.7.0/sdk-modules-bom-5.7.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/tech/maven/maventest/testdata/.m2/repository/com/sap/cloud/sdk/sdk-modules-bom/5.7.0/sdk-modules-bom-5.7.0.jar -------------------------------------------------------------------------------- /api/tech/maven/maventest/testdata/.m2/repository/com/sap/cloud/sdk/sdk-modules-bom/5.7.0/sdk-modules-bom-5.7.0.jar.sha1: -------------------------------------------------------------------------------- 1 | 7952c62446009a98176eeac7b815cddda5a13fa4 -------------------------------------------------------------------------------- /api/tech/maven/maventest/testdata/.m2/repository/com/sap/cloud/sdk/sdk-modules-bom/5.7.0/sdk-modules-bom-5.7.0.pom.sha1: -------------------------------------------------------------------------------- 1 | 34ccdeb9c008f8aaef90873fc636b09d3ae5c709 -------------------------------------------------------------------------------- /api/tech/maven/suite_test.go: -------------------------------------------------------------------------------- 1 | package maven_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Maven Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/tech/npm/npmtest/const.go: -------------------------------------------------------------------------------- 1 | package npmtest 2 | 3 | const ( 4 | NPMPATH = "/testdata/registry" 5 | FAILPATH = "/testdata/failregistry" 6 | ) 7 | 8 | const ( 9 | PACKAGE = "yargs" 10 | VERSION = "17.7.1" 11 | 12 | ARTIFACT_SIZE = 65690 13 | ARTIFACT_DIGEST = "SHA-1:34a77645201d1a8fc5213ace787c220eabbd0967" 14 | ) 15 | -------------------------------------------------------------------------------- /api/tech/npm/npmtest/testdata.go: -------------------------------------------------------------------------------- 1 | package npmtest 2 | 3 | import ( 4 | "ocm.software/ocm/api/helper/env" 5 | ) 6 | 7 | func TestData(dest ...string) env.Option { 8 | return env.ProjectTestDataForCaller("testdata", dest...) 9 | } 10 | 11 | func ModifiableTestData(dest ...string) env.Option { 12 | return env.ModifiableProjectTestDataForCaller("testdata", dest...) 13 | } 14 | -------------------------------------------------------------------------------- /api/tech/npm/npmtest/testdata/content/yargs/yargs-17.7.1.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/tech/npm/npmtest/testdata/content/yargs/yargs-17.7.1.tgz -------------------------------------------------------------------------------- /api/tech/oci/identity/suite_test.go: -------------------------------------------------------------------------------- 1 | package identity_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Identity Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/tech/signing/handlers/init.go: -------------------------------------------------------------------------------- 1 | package handlers 2 | 3 | import ( 4 | _ "github.com/sigstore/cosign/v2/pkg/providers/all" 5 | _ "ocm.software/ocm/api/tech/signing/handlers/rsa" 6 | _ "ocm.software/ocm/api/tech/signing/handlers/rsa-pss" 7 | _ "ocm.software/ocm/api/tech/signing/handlers/rsa-pss-signingservice" 8 | _ "ocm.software/ocm/api/tech/signing/handlers/rsa-signingservice" 9 | _ "ocm.software/ocm/api/tech/signing/handlers/sigstore" 10 | ) 11 | -------------------------------------------------------------------------------- /api/tech/signing/hasher/init.go: -------------------------------------------------------------------------------- 1 | package hasher 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/tech/signing/hasher/nodigest" 5 | _ "ocm.software/ocm/api/tech/signing/hasher/sha256" 6 | _ "ocm.software/ocm/api/tech/signing/hasher/sha512" 7 | ) 8 | -------------------------------------------------------------------------------- /api/tech/signing/signutils/suite_test.go: -------------------------------------------------------------------------------- 1 | package signutils_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Signing utils") 13 | } 14 | -------------------------------------------------------------------------------- /api/tech/signing/suite_test.go: -------------------------------------------------------------------------------- 1 | package signing_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Signing") 13 | } 14 | -------------------------------------------------------------------------------- /api/tech/signing/tsa/types.go: -------------------------------------------------------------------------------- 1 | package tsa 2 | 3 | import ( 4 | cms "github.com/InfiniteLoopSpace/go_S-MIME/cms/protocol" 5 | tsa "github.com/InfiniteLoopSpace/go_S-MIME/timestamp" 6 | ) 7 | 8 | type TimeStamp = cms.SignedData 9 | 10 | type MessageImprint = tsa.MessageImprint 11 | -------------------------------------------------------------------------------- /api/tech/signing/utils.go: -------------------------------------------------------------------------------- 1 | package signing 2 | 3 | import ( 4 | "encoding/hex" 5 | "hash" 6 | 7 | "github.com/mandelsoft/goutils/errors" 8 | ) 9 | 10 | func Hash(hash hash.Hash, data []byte) (string, error) { 11 | hash.Reset() 12 | if _, err := hash.Write(data); err != nil { 13 | return "", errors.Wrapf(err, "failed hashing") 14 | } 15 | 16 | return hex.EncodeToString(hash.Sum(nil)), nil 17 | } 18 | -------------------------------------------------------------------------------- /api/tech/wget/identity/suite_test.go: -------------------------------------------------------------------------------- 1 | package identity_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI Identity Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/accessio/downloader/downloader.go: -------------------------------------------------------------------------------- 1 | package downloader 2 | 3 | import "io" 4 | 5 | // Downloader defines a downloader for various objects using a WriterAt to 6 | // transfer data to. 7 | type Downloader interface { 8 | Download(w io.WriterAt) error 9 | } 10 | -------------------------------------------------------------------------------- /api/utils/accessio/suite_test.go: -------------------------------------------------------------------------------- 1 | package accessio_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "AccessIO Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/accessobj/format-tgz.go: -------------------------------------------------------------------------------- 1 | package accessobj 2 | 3 | import ( 4 | "ocm.software/ocm/api/utils/accessio" 5 | "ocm.software/ocm/api/utils/compression" 6 | ) 7 | 8 | var FormatTGZ = NewTarHandlerWithCompression(accessio.FormatTGZ, compression.Gzip) 9 | 10 | func init() { 11 | RegisterFormat(FormatTGZ) 12 | } 13 | -------------------------------------------------------------------------------- /api/utils/accessobj/suite_test.go: -------------------------------------------------------------------------------- 1 | package accessobj_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "AccessOBJ Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/blobaccess/blobaccess/suite_test.go: -------------------------------------------------------------------------------- 1 | package blobaccess_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "AccessIO Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/blobaccess/file/suite_test.go: -------------------------------------------------------------------------------- 1 | package file_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "standard blobaccess Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/blobaccess/git/digest.go: -------------------------------------------------------------------------------- 1 | package git 2 | 3 | import "github.com/opencontainers/go-digest" 4 | 5 | type Digest interface { 6 | digest.Digest 7 | } 8 | -------------------------------------------------------------------------------- /api/utils/blobaccess/git/suite_test.go: -------------------------------------------------------------------------------- 1 | package git_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "git Blob Access Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/blobaccess/git/testdata/repo/dir/file_in_dir_in_repo: -------------------------------------------------------------------------------- 1 | Foobar -------------------------------------------------------------------------------- /api/utils/blobaccess/git/testdata/repo/file_in_repo: -------------------------------------------------------------------------------- 1 | Foobar -------------------------------------------------------------------------------- /api/utils/blobaccess/maven/suite_test.go: -------------------------------------------------------------------------------- 1 | package maven_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Maven Blob Access Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/blobaccess/npm/suite_test.go: -------------------------------------------------------------------------------- 1 | package npm_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "NPM Blob Access Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/blobaccess/ocm/suite_test.go: -------------------------------------------------------------------------------- 1 | package ocm_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Access Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/blobaccess/wget/logging.go: -------------------------------------------------------------------------------- 1 | package wget 2 | 3 | import ( 4 | ocmlog "ocm.software/ocm/api/utils/logging" 5 | ) 6 | 7 | var REALM = ocmlog.DefineSubRealm("blob access for wget", "blobaccess/wget") 8 | -------------------------------------------------------------------------------- /api/utils/clisupport/suite_test.go: -------------------------------------------------------------------------------- 1 | package clisupport_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "clisupport Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/cobrautils/flag/suite_test.go: -------------------------------------------------------------------------------- 1 | package flag 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Flags Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/cobrautils/flagsets/flagsetscheme/doc.go: -------------------------------------------------------------------------------- 1 | // Package flagsetscheme provides a runtime.TypeScheme with support 2 | // for command line option sets for the described object types. 3 | // Therefore, the object types (VersionTypedObjectType) have to provide 4 | // a flagsets.ConfigOptionTypeSetHandler. To support CLI help information, 5 | // they should additionally provide a description and structure information. 6 | package flagsetscheme 7 | -------------------------------------------------------------------------------- /api/utils/cobrautils/flagsets/suite_test.go: -------------------------------------------------------------------------------- 1 | package flagsets_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM CLI Support Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/cobrautils/logopts/doc.go: -------------------------------------------------------------------------------- 1 | // Package logopts is used for CLI options used to control the logging, globally or for 2 | // a dedicated context. 3 | // If used the main program should call logopts.CloseLogFiles() before exiting. 4 | package logopts 5 | -------------------------------------------------------------------------------- /api/utils/cobrautils/logopts/logging/global.go: -------------------------------------------------------------------------------- 1 | package logging 2 | 3 | var ( 4 | GlobalLogFile *LogFile 5 | GlobalLogFileOverride string 6 | ) 7 | -------------------------------------------------------------------------------- /api/utils/cobrautils/logopts/suite_test.go: -------------------------------------------------------------------------------- 1 | package logopts 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Logging Options") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/cobrautils/suite_test.go: -------------------------------------------------------------------------------- 1 | package cobrautils_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "cobra utils") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/cobrautils/utils.go: -------------------------------------------------------------------------------- 1 | package cobrautils 2 | 3 | import ( 4 | "github.com/spf13/cobra" 5 | ) 6 | 7 | func Find(cmd *cobra.Command, name string) *cobra.Command { 8 | for _, c := range cmd.Commands() { 9 | if c.Name() == name { 10 | return c 11 | } 12 | } 13 | return nil 14 | } 15 | -------------------------------------------------------------------------------- /api/utils/compression/README.md: -------------------------------------------------------------------------------- 1 | # containers 2 | 3 | This package has been taken from github.com/containers/image and 4 | adjusted to provide an algorithm interface instead of an internal 5 | structure. It also transparently support a None compression. 6 | -------------------------------------------------------------------------------- /api/utils/compression/fixtures/Hello.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/utils/compression/fixtures/Hello.bz2 -------------------------------------------------------------------------------- /api/utils/compression/fixtures/Hello.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/utils/compression/fixtures/Hello.gz -------------------------------------------------------------------------------- /api/utils/compression/fixtures/Hello.uncompressed: -------------------------------------------------------------------------------- 1 | Hello -------------------------------------------------------------------------------- /api/utils/compression/fixtures/Hello.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/utils/compression/fixtures/Hello.xz -------------------------------------------------------------------------------- /api/utils/compression/fixtures/Hello.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/utils/compression/fixtures/Hello.zst -------------------------------------------------------------------------------- /api/utils/compression/utils.go: -------------------------------------------------------------------------------- 1 | package compression 2 | 3 | import ( 4 | "io" 5 | ) 6 | 7 | // NopWriteCloser returns a ReadCloser with a no-op Close method wrapping 8 | // the provided Reader r. 9 | func NopWriteCloser(w io.Writer) io.WriteCloser { 10 | return nopCloser{w} 11 | } 12 | 13 | type nopCloser struct { 14 | io.Writer 15 | } 16 | 17 | func (nopCloser) Close() error { return nil } 18 | -------------------------------------------------------------------------------- /api/utils/ctf.go: -------------------------------------------------------------------------------- 1 | package utils 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | ) 7 | 8 | // CTFComponentArchiveFilename returns the name of the component archive file in the ctf. 9 | func CTFComponentArchiveFilename(name, version string) string { 10 | return fmt.Sprintf("%s-%s.tar", strings.ReplaceAll(name, "/", "_"), version) 11 | } 12 | -------------------------------------------------------------------------------- /api/utils/dirtree/suite_test.go: -------------------------------------------------------------------------------- 1 | package dirtree_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Directory Tree") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/dirtree/testdata/fs/data: -------------------------------------------------------------------------------- 1 | data 2 | -------------------------------------------------------------------------------- /api/utils/dirtree/testdata/fs/dir/file: -------------------------------------------------------------------------------- 1 | data 2 | -------------------------------------------------------------------------------- /api/utils/dirtree/testdata/fs/link: -------------------------------------------------------------------------------- 1 | data -------------------------------------------------------------------------------- /api/utils/errkind/kinds.go: -------------------------------------------------------------------------------- 1 | package errkind 2 | 3 | const ( 4 | KIND_FUNCTION = "function" 5 | KIND_SCHEMAVERSION = "schema version" 6 | KIND_COMPONENT = "component" 7 | KIND_ACCESSMETHOD = "access method" 8 | KIND_OBJECTTYPE = "object type" 9 | ) 10 | -------------------------------------------------------------------------------- /api/utils/errkind/utils.go: -------------------------------------------------------------------------------- 1 | package errkind 2 | 3 | import ( 4 | "errors" 5 | "syscall" 6 | ) 7 | 8 | // IsRetryable checks whether a retry should be performed for a failed operation. 9 | func IsRetryable(err error) bool { 10 | return errors.Is(err, syscall.ECONNREFUSED) 11 | } 12 | -------------------------------------------------------------------------------- /api/utils/filelock/suite_test.go: -------------------------------------------------------------------------------- 1 | package filelock_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "filelock Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/filelock/testdata/lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/utils/filelock/testdata/lock -------------------------------------------------------------------------------- /api/utils/iotools/suite_test.go: -------------------------------------------------------------------------------- 1 | package iotools_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "iotools Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/iotools/utils.go: -------------------------------------------------------------------------------- 1 | package iotools 2 | 3 | import ( 4 | "io" 5 | ) 6 | 7 | type NopCloser struct{} 8 | 9 | func (NopCloser) Close() error { 10 | return nil 11 | } 12 | 13 | type NopWriter struct { 14 | NopCloser 15 | } 16 | 17 | var _ io.Writer = NopWriter{} 18 | 19 | func (n2 NopWriter) Write(p []byte) (n int, err error) { 20 | return len(p), nil 21 | } 22 | -------------------------------------------------------------------------------- /api/utils/locator.go: -------------------------------------------------------------------------------- 1 | package utils 2 | 3 | import ( 4 | "strings" 5 | ) 6 | 7 | func SplitLocator(locator string) (string, string, string) { 8 | path := "" 9 | h := "" 10 | i := strings.Index(locator, "/") 11 | if i < 0 { 12 | h = locator 13 | } else { 14 | h = locator[:i] 15 | path = locator[i+1:] 16 | } 17 | i = strings.Index(h, ":") 18 | 19 | if i < 0 { 20 | return h, "", path 21 | } 22 | return h[:i], h[i+1:], path 23 | } 24 | -------------------------------------------------------------------------------- /api/utils/logging/stdkeys.go: -------------------------------------------------------------------------------- 1 | package logging 2 | 3 | // standard logging value attribute names used in this library. 4 | const ( 5 | ATTR_HOST = "host" 6 | ATTR_USER = "user" 7 | ATTR_PATH = "path" 8 | ATTR_NAMESPACE = "namespace" 9 | ) 10 | -------------------------------------------------------------------------------- /api/utils/logging/suite_test.go: -------------------------------------------------------------------------------- 1 | package logging_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Logging Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/misc/const.go: -------------------------------------------------------------------------------- 1 | package misc 2 | 3 | const OCM_TYPE_GROUP_SUFFIX = ".ocm.software" 4 | -------------------------------------------------------------------------------- /api/utils/misc/suite_test.go: -------------------------------------------------------------------------------- 1 | package misc_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "cmds common") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/panics/suite_test.go: -------------------------------------------------------------------------------- 1 | package panics_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Panic Handling Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/refmgmt/finalized/suite_test.go: -------------------------------------------------------------------------------- 1 | package finalized_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Finalized Object Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/refmgmt/resource/suite_test.go: -------------------------------------------------------------------------------- 1 | package resource_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Referenceable Resource Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/refmgmt/suite_test.go: -------------------------------------------------------------------------------- 1 | package refmgmt_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Referenceable Resource Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/registrations/suite_test.go: -------------------------------------------------------------------------------- 1 | package registrations_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Generic Registrations Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/runtime/suite_test.go: -------------------------------------------------------------------------------- 1 | package runtime_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "CTF Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/runtimefinalizer/suite_test.go: -------------------------------------------------------------------------------- 1 | package runtimefinalizer_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Runtime Finalizer Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/semverutils/suite_test.go: -------------------------------------------------------------------------------- 1 | package semverutils_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Semver Utilities") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/spiff/suite_test.go: -------------------------------------------------------------------------------- 1 | package spiff_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Spiff wrapper") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/subst/suite_test.go: -------------------------------------------------------------------------------- 1 | package subst 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Localization Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/suite_test.go: -------------------------------------------------------------------------------- 1 | package utils_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Utils Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/tarutils/compress.go: -------------------------------------------------------------------------------- 1 | package tarutils 2 | 3 | import ( 4 | "compress/gzip" 5 | "io" 6 | ) 7 | 8 | func Gzip(w io.Writer) io.WriteCloser { 9 | return gzip.NewWriter(w) 10 | } 11 | -------------------------------------------------------------------------------- /api/utils/tarutils/suite_test.go: -------------------------------------------------------------------------------- 1 | package tarutils_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Tar Utils Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /api/utils/tarutils/testdata/dir/dirlink: -------------------------------------------------------------------------------- 1 | ../dir2 -------------------------------------------------------------------------------- /api/utils/tarutils/testdata/dir/link: -------------------------------------------------------------------------------- 1 | ../file -------------------------------------------------------------------------------- /api/utils/tarutils/testdata/dir/regular: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/utils/tarutils/testdata/dir/regular -------------------------------------------------------------------------------- /api/utils/tarutils/testdata/dir/subdir/file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/utils/tarutils/testdata/dir/subdir/file -------------------------------------------------------------------------------- /api/utils/tarutils/testdata/dir2/file2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/utils/tarutils/testdata/dir2/file2 -------------------------------------------------------------------------------- /api/utils/tarutils/testdata/file: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/api/utils/tarutils/testdata/file -------------------------------------------------------------------------------- /api/utils/template/testdata/env.values: -------------------------------------------------------------------------------- 1 | # 2 | # test values 3 | # 4 | 5 | # component name 6 | NAME: test.de/x 7 | 8 | # component version 9 | VERSION: v1 10 | -------------------------------------------------------------------------------- /cmds/cliplugin/cmds/suite_test.go: -------------------------------------------------------------------------------- 1 | package cmds_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Demo CLI Plugin Command Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/cliplugin/cmds/testdata/config.yaml: -------------------------------------------------------------------------------- 1 | type: rhabarber.config.acme.org 2 | start: jul/1 3 | end: jul/31 4 | -------------------------------------------------------------------------------- /cmds/cliplugin/cmds/testdata/err.yaml: -------------------------------------------------------------------------------- 1 | type: err.config.acme.org 2 | start: jul/1 3 | end: jul/31 4 | -------------------------------------------------------------------------------- /cmds/cliplugin/cmds/testdata/logcfg.yaml: -------------------------------------------------------------------------------- 1 | type: generic.config.ocm.software 2 | configurations: 3 | - type: rhabarber.config.acme.org 4 | start: jul/1 5 | end: jul/31 6 | - type: logging.config.ocm.software/v1 7 | contextType: "global" 8 | settings: 9 | rules: 10 | - rule: 11 | level: "Debug" 12 | conditions: 13 | - realmprefix: "cliplugin" 14 | -------------------------------------------------------------------------------- /cmds/cliplugin/cmds/testdata/plugins/cliplugin: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | go run ../main.go "$@" -------------------------------------------------------------------------------- /cmds/cliplugin/testdata/config.yaml: -------------------------------------------------------------------------------- 1 | type: rhabarber.config.acme.org 2 | start: jul/1 3 | end: jul/31 4 | -------------------------------------------------------------------------------- /cmds/demoplugin/common/const.go: -------------------------------------------------------------------------------- 1 | package common 2 | 3 | const CONSUMER_TYPE = "demo" 4 | -------------------------------------------------------------------------------- /cmds/demoplugin/valuesets/suite_test.go: -------------------------------------------------------------------------------- 1 | package valuesets_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Demo Plugin Valuesets Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/demoplugin/valuesets/testdata/demo: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | go run ../main.go "$@" -------------------------------------------------------------------------------- /cmds/ecrplugin/config/config.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "encoding/json" 5 | ) 6 | 7 | type Config struct { 8 | Hostnames []string `json:"hostnames,omitempty"` 9 | } 10 | 11 | func GetConfig(raw json.RawMessage) (interface{}, error) { 12 | var cfg Config 13 | 14 | err := json.Unmarshal(raw, &cfg) 15 | if err != nil { 16 | return nil, err 17 | } 18 | return &cfg, nil 19 | } 20 | -------------------------------------------------------------------------------- /cmds/ecrplugin/config/tweak.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "ocm.software/ocm/api/ocm/plugin/ppi" 5 | ) 6 | 7 | func TweakDescriptor(d ppi.Descriptor, cfg *Config) ppi.Descriptor { 8 | if cfg != nil { 9 | d.Actions[0].DefaultSelectors = append(d.Actions[0].DefaultSelectors, cfg.Hostnames...) 10 | } 11 | return d 12 | } 13 | -------------------------------------------------------------------------------- /cmds/helminstaller/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "os" 5 | 6 | clictx "ocm.software/ocm/api/cli" 7 | "ocm.software/ocm/cmds/helminstaller/app" 8 | ) 9 | 10 | func main() { 11 | c := app.NewCliCommand(clictx.New(), nil) 12 | if err := c.Execute(); err != nil { 13 | os.Exit(1) 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /cmds/jfrogplugin/suite_test.go: -------------------------------------------------------------------------------- 1 | package main_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "JFrog Helm uploader plugin tests") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/app/suite_test.go: -------------------------------------------------------------------------------- 1 | package app_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "App Suite") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/app/testdata/attr.yaml: -------------------------------------------------------------------------------- 1 | mode: shortHash -------------------------------------------------------------------------------- /cmds/ocm/app/testdata/logcfg.yaml: -------------------------------------------------------------------------------- 1 | defaultLevel: Warn 2 | rules: 3 | - rule: 4 | level: Debug 5 | conditions: 6 | - realm: test -------------------------------------------------------------------------------- /cmds/ocm/clippi/config/evaluated.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | import ( 4 | "ocm.software/ocm/api/config" 5 | "ocm.software/ocm/api/utils/cobrautils/logopts" 6 | "ocm.software/ocm/cmds/ocm/commands/common/options/keyoption" 7 | ) 8 | 9 | type EvaluatedOptions struct { 10 | LogOpts *logopts.EvaluatedOptions 11 | Keys *keyoption.EvaluatedOptions 12 | ConfigForward config.Config 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/cachecmds/names/names.go: -------------------------------------------------------------------------------- 1 | package names 2 | 3 | var Cache = []string{"cache"} 4 | -------------------------------------------------------------------------------- /cmds/ocm/commands/controllercmds/common/log.go: -------------------------------------------------------------------------------- 1 | package common 2 | 3 | import ( 4 | "fmt" 5 | 6 | "ocm.software/ocm/api/utils/out" 7 | ) 8 | 9 | func Outf(ctx out.Context, dryRun bool, msg string, args ...any) (int, error) { 10 | if dryRun { 11 | return -1, nil 12 | } 13 | 14 | if len(args) == 0 { 15 | return fmt.Fprint(ctx.StdOut(), msg) 16 | } 17 | 18 | return fmt.Fprintf(ctx.StdOut(), msg, args...) 19 | } 20 | -------------------------------------------------------------------------------- /cmds/ocm/commands/controllercmds/install/suite_test.go: -------------------------------------------------------------------------------- 1 | package install_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Install controller") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/controllercmds/install/testdata/install.yaml: -------------------------------------------------------------------------------- 1 | test: content 2 | -------------------------------------------------------------------------------- /cmds/ocm/commands/controllercmds/names/names.go: -------------------------------------------------------------------------------- 1 | package names 2 | 3 | var Controller = []string{"controller"} 4 | -------------------------------------------------------------------------------- /cmds/ocm/commands/controllercmds/uninstall/suite_test.go: -------------------------------------------------------------------------------- 1 | package uninstall_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Uninstall controller") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/controllercmds/uninstall/testdata/install.yaml: -------------------------------------------------------------------------------- 1 | test: content 2 | -------------------------------------------------------------------------------- /cmds/ocm/commands/misccmds/config/get/suite_test.go: -------------------------------------------------------------------------------- 1 | package get_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM get config command") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/misccmds/credentials/get/suite_test.go: -------------------------------------------------------------------------------- 1 | package get_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Get Credentials") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/misccmds/hash/sign/suite_test.go: -------------------------------------------------------------------------------- 1 | package sign_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Sign Hash") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/misccmds/names/names.go: -------------------------------------------------------------------------------- 1 | package names 2 | 3 | var ( 4 | Hash = []string{"hash"} 5 | RSAKeyPair = []string{"rsakeypair", "rsa"} 6 | Credentials = []string{"credentials", "creds", "cred"} 7 | Config = []string{"config", "cfg"} 8 | ) 9 | -------------------------------------------------------------------------------- /cmds/ocm/commands/misccmds/rsakeypair/suite_test.go: -------------------------------------------------------------------------------- 1 | package rsakeypair_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "RSA Key Pair") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocicmds/artifacts/download/suite_test.go: -------------------------------------------------------------------------------- 1 | package download_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM download resources") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocicmds/artifacts/get/suite_test.go: -------------------------------------------------------------------------------- 1 | package get_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI get artifacts") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocicmds/artifacts/transfer/suite_test.go: -------------------------------------------------------------------------------- 1 | package transfer_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI transfer artifacts") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocicmds/ctf/create/suite_test.go: -------------------------------------------------------------------------------- 1 | package create_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCI create transport archive") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocicmds/names/names.go: -------------------------------------------------------------------------------- 1 | package names 2 | 3 | var ( 4 | Artifacts = []string{"artifacts", "artifact", "art", "a"} 5 | Tags = []string{"tags"} 6 | TransportArchive = []string{"transportarchive", "ctf"} 7 | ) 8 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocicmds/tags/show/suite_test.go: -------------------------------------------------------------------------------- 1 | package show_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM show versions") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/cli/download/const.go: -------------------------------------------------------------------------------- 1 | package download 2 | 3 | const ( 4 | COMPONENT = "ocm.software/ocmcli" 5 | RESOURCE = "ocmcli" 6 | ) 7 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/cli/download/is_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows 2 | 3 | package download 4 | 5 | const EXECUTABLE_SUFFIX = "" 6 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/cli/download/is_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | 3 | package download 4 | 5 | const EXECUTABLE_SUFFIX = ".exe" 6 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/cli/download/suite_test.go: -------------------------------------------------------------------------------- 1 | package download_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM download CLI") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/cli/download/testdata/bin/ocm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/cmds/ocm/commands/ocmcmds/cli/download/testdata/bin/ocm -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/cli/download/testdata/bin/ocm.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/cmds/ocm/commands/ocmcmds/cli/download/testdata/bin/ocm.exe -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/cli/download/testdata/other/dummy: -------------------------------------------------------------------------------- 1 | just to checkin a directory in git -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/handlers/elemhdlr/sort.go: -------------------------------------------------------------------------------- 1 | package elemhdlr 2 | 3 | import ( 4 | "ocm.software/ocm/cmds/ocm/common/processing" 5 | ) 6 | 7 | func Compare(a, b interface{}) int { 8 | aa := a.(*Object) 9 | ab := b.(*Object) 10 | 11 | return aa.Compare(ab) 12 | } 13 | 14 | // Sort is a processing chain sorting original objects provided by type handler. 15 | var Sort = processing.Sort(Compare) 16 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/handlers/vershdlr/suite_test.go: -------------------------------------------------------------------------------- 1 | package vershdlr_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Version handler Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/suite_test.go: -------------------------------------------------------------------------------- 1 | package inputs_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Resource Blob Inputs") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/binary/suite_test.go: -------------------------------------------------------------------------------- 1 | package binary 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Input Type Binary") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/directory/suite_test.go: -------------------------------------------------------------------------------- 1 | package directory 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Input Type Directory") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/file/type.go: -------------------------------------------------------------------------------- 1 | package file 2 | 3 | import ( 4 | "ocm.software/ocm/cmds/ocm/commands/ocmcmds/common/inputs" 5 | ) 6 | 7 | const TYPE = "file" 8 | 9 | func init() { 10 | inputs.DefaultInputTypeScheme.Register(inputs.NewInputType(TYPE, &Spec{}, 11 | Usage("The path must denote a file relative the resources file. "), ConfigHandler())) 12 | } 13 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/git/suite_test.go: -------------------------------------------------------------------------------- 1 | package git_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Input Type git") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/git/testdata/resources1.yaml: -------------------------------------------------------------------------------- 1 | name: hello-world 2 | type: git 3 | input: 4 | type: git 5 | repository: https://github.com/octocat/Hello-World.git 6 | version: refs/heads/master -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/maven/suite_test.go: -------------------------------------------------------------------------------- 1 | package maven_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Input Type maven") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/maven/testdata/resources1.yaml: -------------------------------------------------------------------------------- 1 | name: myblob 2 | type: mavenPackage 3 | input: 4 | type: maven 5 | path: ../maven/testdata/.m2/repository 6 | groupId: com.sap.cloud.sdk 7 | artifactId: sdk-modules-bom 8 | version: 5.7.0 -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/npm/suite_test.go: -------------------------------------------------------------------------------- 1 | package npm_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Input Type npm") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/ociartifact/suite_test.go: -------------------------------------------------------------------------------- 1 | package ociartifact_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Input Type wget") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/ociartifact/testdata/component-constructor.yaml: -------------------------------------------------------------------------------- 1 | name: ocm.software/demo/test 2 | version: 1.0.0 3 | provider: 4 | name: ocm.software 5 | 6 | resources: 7 | - name: image 8 | type: ociImage 9 | input: 10 | type: ociArtifact 11 | path: alias.alias/ocm/index:v2.0-index 12 | platforms: 13 | - linux/amd64 14 | 15 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/ocm/suite_test.go: -------------------------------------------------------------------------------- 1 | package ocm_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Input Type ocm") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/ocm/testdata/resources1.yaml: -------------------------------------------------------------------------------- 1 | name: myblob 2 | type: plainText 3 | input: 4 | type: ocm 5 | ocmRepository: 6 | type: CommonTransportFormat 7 | filePath: /ctf 8 | component: acme.org/ref 9 | version: v1 10 | resourceRef: 11 | resource: 12 | name: res -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/spiff/suite_test.go: -------------------------------------------------------------------------------- 1 | package spiff_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Spiff Template Inputs") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/spiff/testdata/subdir/include.yaml: -------------------------------------------------------------------------------- 1 | bob: 26 -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/spiff/testdata/subdir/test.yaml: -------------------------------------------------------------------------------- 1 | 2 | alice: 24 3 | bob: (( read("include.yaml").bob )) -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/spiff/testdata/test1.yaml: -------------------------------------------------------------------------------- 1 | 2 | alice: 24 3 | bob: (( alice + (inputvalues.diff || 1) )) -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/utf8/suite_test.go: -------------------------------------------------------------------------------- 1 | package utf8 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Input Type UTF8 String") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/wget/suite_test.go: -------------------------------------------------------------------------------- 1 | package wget_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Input Type wget") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/options/downloaderoption/suite_test.go: -------------------------------------------------------------------------------- 1 | package downloaderoption_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "downloader option Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/options/optutils/suite_test.go: -------------------------------------------------------------------------------- 1 | package optutils_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Option Utils Suite") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/options/optutils/testdata/config: -------------------------------------------------------------------------------- 1 | name: Name -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/options/uploaderoption/suite_test.go: -------------------------------------------------------------------------------- 1 | package uploaderoption 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Uploader Option Suite") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/suite_test.go: -------------------------------------------------------------------------------- 1 | package common_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM Commands Common") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/componentarchive/create/suite_test.go: -------------------------------------------------------------------------------- 1 | package create_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM create component archive") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/components/add/suite_test.go: -------------------------------------------------------------------------------- 1 | package add_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM add components") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/components/add/testdata/testdata: -------------------------------------------------------------------------------- 1 | this is some testdata 2 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/components/check/suite_test.go: -------------------------------------------------------------------------------- 1 | package check_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM check components") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/components/download/suite_test.go: -------------------------------------------------------------------------------- 1 | package download_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM download resources") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/components/get/suite_test.go: -------------------------------------------------------------------------------- 1 | package get_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM get components") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/components/hash/suite_test.go: -------------------------------------------------------------------------------- 1 | package hash_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM hash components") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/components/list/suite_test.go: -------------------------------------------------------------------------------- 1 | package list_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM list component versions") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/components/sign/suite_test.go: -------------------------------------------------------------------------------- 1 | package sign_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM sign components") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/components/transfer/ctf.copy/artifact-index.json: -------------------------------------------------------------------------------- 1 | {"schemaVersion":1,"artifacts":null} -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/components/transfer/suite_test.go: -------------------------------------------------------------------------------- 1 | package transfer_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM transfer components") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/components/verify/suite_test.go: -------------------------------------------------------------------------------- 1 | package verify_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM verify components") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/ctf/transfer/suite_test.go: -------------------------------------------------------------------------------- 1 | package transfer_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM transfer ctf") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/init.go: -------------------------------------------------------------------------------- 1 | package ocmcmds 2 | 3 | import ( 4 | _ "ocm.software/ocm/cmds/ocm/commands/ocmcmds/common/inputs/types" 5 | ) 6 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/plugins/describe/suite_test.go: -------------------------------------------------------------------------------- 1 | package describe_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM describe plugins") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/plugins/get/suite_test.go: -------------------------------------------------------------------------------- 1 | package get_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM get plugins") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/plugins/install/suite_test.go: -------------------------------------------------------------------------------- 1 | package install_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM get components") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/plugins/tests/routingslips/suite_test.go: -------------------------------------------------------------------------------- 1 | package routingslips_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Routing Slips Plugin Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/pubsub/get/suite_test.go: -------------------------------------------------------------------------------- 1 | package get_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "get pubsub Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/pubsub/set/suite_test.go: -------------------------------------------------------------------------------- 1 | package set_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "set pubsub Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/references/add/suite_test.go: -------------------------------------------------------------------------------- 1 | package add_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM add sources") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/references/add/testdata/dupreferences.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | references: 3 | - name: testdata 4 | componentName: github.com/mandelsoft/ref 5 | version: v1.1.1 6 | - name: testdata 7 | componentName: github.com/mandelsoft/ref 8 | version: v1.1.2 -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/references/add/testdata/references-dup.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | references: 3 | - name: testdata 4 | componentName: github.com/mandelsoft/ref 5 | version: v1.1.1 6 | - name: testdata 7 | componentName: github.com/mandelsoft/ref2 8 | version: v1.1.1 -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/references/add/testdata/references.tmpl: -------------------------------------------------------------------------------- 1 | --- 2 | name: testdata 3 | componentName: github.com/mandelsoft/ref 4 | version: ${VERSION} -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/references/add/testdata/references.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | references: 3 | - name: testdata 4 | componentName: github.com/mandelsoft/ref 5 | version: v1.1.1 -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/references/add/testdata/referenceswithid.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | references: 3 | - name: testdata 4 | componentName: github.com/mandelsoft/ref 5 | version: v1.1.1 6 | extraIdentity: 7 | purpose: test 8 | label: local 9 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/references/add/testdata/settings: -------------------------------------------------------------------------------- 1 | # 2 | # name of generated content file 3 | VERSION: v1.1.1 -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/references/get/suite_test.go: -------------------------------------------------------------------------------- 1 | package get_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM get resources") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resourceconfig/add/suite_test.go: -------------------------------------------------------------------------------- 1 | package add_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM add resource configurations") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resourceconfig/add/testdata/testcontent: -------------------------------------------------------------------------------- 1 | some data -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/suite_test.go: -------------------------------------------------------------------------------- 1 | package add_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM add resources") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/dupresources.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: testdata 3 | version: 3.3.3 4 | type: plainText 5 | input: 6 | type: utf8 7 | mediaType: text/plain 8 | text: version3 9 | --- 10 | name: testdata 11 | version: 3.3.4 12 | type: plainText 13 | input: 14 | type: utf8 15 | mediaType: text/plain 16 | text: version4 -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/helm.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: chart 3 | type: helmChart 4 | input: 5 | type: helm 6 | path: testchart 7 | repository: mandelsoft/testchart 8 | --- 9 | name: echoserver 10 | type: ociImage 11 | version: "1.0" 12 | access: 13 | type: ociArtifact 14 | imageReference: gcr.io/google_containers/echoserver:1.0 -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/helm2.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: chart2 3 | type: helmChart 4 | input: 5 | type: helm 6 | path: testchart 7 | repository: mandelsoft/testchart -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/helmref.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: chart 3 | type: helmChart 4 | input: 5 | type: helm 6 | path: cockroachdb 7 | version: 3.0.8 8 | helmRepository: https://charts.helm.sh/stable -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/image.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | type: ociImage 3 | name: image 4 | version: v0.1.0 5 | relation: external 6 | access: 7 | type: ociArtifact 8 | imageReference: ghcr.io/mandelsoft/pause:v0.1.0 -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/nested/helm.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: chart 3 | type: helmChart 4 | input: 5 | type: helm 6 | path: ../testchart 7 | repository: mandelsoft/testchart 8 | --- 9 | name: echoserver 10 | type: ociImage 11 | version: "1.0" 12 | access: 13 | type: ociArtifact 14 | imageReference: gcr.io/google_containers/echoserver:1.0 -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/resources.tmpl: -------------------------------------------------------------------------------- 1 | --- 2 | name: testdata 3 | type: plainText 4 | input: 5 | type: file 6 | path: ${CONTENT} 7 | mediaType: text/plain -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/resources.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: testdata 3 | type: plainText 4 | input: 5 | type: file 6 | path: testcontent 7 | mediaType: text/plain -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/resources2.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: testdata 3 | version: 3.3.3 4 | type: plainText 5 | input: 6 | type: file 7 | path: testcontent 8 | mediaType: text/plain -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/settings: -------------------------------------------------------------------------------- 1 | # 2 | # name of generated content file 3 | CONTENT: testcontent -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/spiffcontent: -------------------------------------------------------------------------------- 1 | data: (( values.IMAGE )) -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/testchart/.idea/somefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/cmds/ocm/commands/ocmcmds/resources/add/testdata/testchart/.idea/somefile -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/testcontent: -------------------------------------------------------------------------------- 1 | this is some test data -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/download/suite_test.go: -------------------------------------------------------------------------------- 1 | package download_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM download resources") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/download/testdata/layers/0/testfile: -------------------------------------------------------------------------------- 1 | testdata 2 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/download/testdata/layers/1/dir/nestedfile: -------------------------------------------------------------------------------- 1 | other test data 2 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/download/testdata/layers/all/dir/nestedfile: -------------------------------------------------------------------------------- 1 | other test data 2 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/download/testdata/layers/all/testfile: -------------------------------------------------------------------------------- 1 | testdata 2 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/get/suite_test.go: -------------------------------------------------------------------------------- 1 | package get_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM get resources") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/routingslips/add/suite_test.go: -------------------------------------------------------------------------------- 1 | package add_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM add routing slips") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/routingslips/get/suite_test.go: -------------------------------------------------------------------------------- 1 | package get_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM get routing slips") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/sourceconfig/add/suite_test.go: -------------------------------------------------------------------------------- 1 | package add_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM add resource configurations") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/sourceconfig/add/testdata/testcontent: -------------------------------------------------------------------------------- 1 | some data -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/sources/add/suite_test.go: -------------------------------------------------------------------------------- 1 | package add_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM add sources") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/sources/add/testdata/dupsources.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: testdata 3 | version: 3.3.3 4 | type: plainText 5 | input: 6 | type: utf8 7 | mediaType: text/plain 8 | text: version3 9 | --- 10 | name: testdata 11 | version: 3.3.4 12 | type: plainText 13 | input: 14 | type: utf8 15 | mediaType: text/plain 16 | text: version4 -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/sources/add/testdata/settings: -------------------------------------------------------------------------------- 1 | # 2 | # name of generated content file 3 | CONTENT: testcontent -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/sources/add/testdata/testcontent: -------------------------------------------------------------------------------- 1 | this is some test data -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/sources/get/suite_test.go: -------------------------------------------------------------------------------- 1 | package get_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM get sources") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/verified/get/suite_test.go: -------------------------------------------------------------------------------- 1 | package get_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM get verified") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/versions/show/suite_test.go: -------------------------------------------------------------------------------- 1 | package show_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM show versions") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/toicmds/config/bootstrap/suite_test.go: -------------------------------------------------------------------------------- 1 | package bootstrap_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "TOI bootstrap config") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/commands/toicmds/names/names.go: -------------------------------------------------------------------------------- 1 | package names 2 | 3 | import ( 4 | "ocm.software/ocm/cmds/ocm/commands/ocmcmds/names" 5 | ) 6 | 7 | var ( 8 | Package = []string{"package", "pkg", "componentversion", "cv", "component", "comp", "c"} 9 | Configuration = names.Configuration 10 | ) 11 | -------------------------------------------------------------------------------- /cmds/ocm/commands/verbs/verb.go: -------------------------------------------------------------------------------- 1 | package verbs 2 | 3 | import ( 4 | "github.com/spf13/cobra" 5 | 6 | clictx "ocm.software/ocm/api/cli" 7 | "ocm.software/ocm/cmds/ocm/common/utils" 8 | ) 9 | 10 | // NewCommand creates a new command. 11 | func NewCommand(ctx clictx.Context, name string, short string) *cobra.Command { 12 | cmd := utils.MassageCommand(&cobra.Command{ 13 | Short: short, 14 | }, name) 15 | return cmd 16 | } 17 | -------------------------------------------------------------------------------- /cmds/ocm/common/data/convert.go: -------------------------------------------------------------------------------- 1 | package data 2 | 3 | func Slice(s Iterable) []interface{} { 4 | var a []interface{} 5 | i := s.Iterator() 6 | for i.HasNext() { 7 | a = append(a, i.Next()) 8 | } 9 | return a 10 | } 11 | 12 | func StringArraySlice(s Iterable) [][]string { 13 | a := [][]string{} 14 | i := s.Iterator() 15 | for i.HasNext() { 16 | a = append(a, i.Next().([]string)) 17 | } 18 | return a 19 | } 20 | -------------------------------------------------------------------------------- /cmds/ocm/common/data/suite_test.go: -------------------------------------------------------------------------------- 1 | package data_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "data structures") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/common/options/suite_test.go: -------------------------------------------------------------------------------- 1 | package options_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Option handling") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/common/output/select.go: -------------------------------------------------------------------------------- 1 | package output 2 | 3 | import ( 4 | "strings" 5 | ) 6 | 7 | func SelectBest(name string, candidates ...string) (string, int) { 8 | for i, c := range candidates { 9 | if strings.EqualFold(name, c) { 10 | return c, i 11 | } 12 | } 13 | return "", -1 14 | } 15 | -------------------------------------------------------------------------------- /cmds/ocm/common/output/suite_test.go: -------------------------------------------------------------------------------- 1 | package output 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Output Handling") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/common/processing/logging.go: -------------------------------------------------------------------------------- 1 | package processing 2 | 3 | import ( 4 | ocmlog "ocm.software/ocm/api/utils/logging" 5 | ) 6 | 7 | var REALM = ocmlog.DefineSubRealm("output processing chains", "processing") 8 | -------------------------------------------------------------------------------- /cmds/ocm/common/processing/suite_test.go: -------------------------------------------------------------------------------- 1 | package processing_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "data processing") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/common/processing/utils.go: -------------------------------------------------------------------------------- 1 | package processing 2 | 3 | func IdentityMapper(e interface{}) interface{} { 4 | return e 5 | } 6 | -------------------------------------------------------------------------------- /cmds/ocm/common/tree/suite_test.go: -------------------------------------------------------------------------------- 1 | package tree_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "tree processing") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/common/utils/plural.go: -------------------------------------------------------------------------------- 1 | package utils 2 | 3 | import ( 4 | pluralize "github.com/gertd/go-pluralize" 5 | "golang.org/x/exp/constraints" 6 | ) 7 | 8 | var client = pluralize.NewClient() 9 | 10 | func Plural[N constraints.Integer](s string, amount ...N) string { 11 | var n N = 0 12 | for _, a := range amount { 13 | n += a 14 | } 15 | if n == 1 { 16 | return s 17 | } 18 | return client.Plural(s) 19 | } 20 | -------------------------------------------------------------------------------- /cmds/ocm/coretests/maven/suite_test.go: -------------------------------------------------------------------------------- 1 | package add_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM add components") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/coretests/maven/testdata/components.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | - name: ocm.software/demo/test 3 | version: 1.0.0 4 | provider: 5 | name: ocm.software 6 | resources: 7 | - name: mavengav 8 | type: mavenPackage 9 | input: 10 | type: maven 11 | path: /maven/testdata/.m2/repository 12 | groupId: "com.sap.cloud.sdk" 13 | artifactId: "sdk-modules-bom" 14 | version: "5.7.0" -------------------------------------------------------------------------------- /cmds/ocm/coretests/maven/testdata/components2.yaml: -------------------------------------------------------------------------------- 1 | components: 2 | - name: ocm.software/demo/test 3 | version: 1.0.0 4 | provider: 5 | name: ocm.software 6 | resources: 7 | - name: mavengav 8 | type: mavenPackage 9 | version: "1.1" 10 | access: 11 | type: maven 12 | repoUrl: "https://repo.maven.apache.org/maven2/" 13 | groupId: "maven" 14 | artifactId: "maven" 15 | version: "1.1" -------------------------------------------------------------------------------- /cmds/ocm/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | 7 | clictx "ocm.software/ocm/api/cli" 8 | "ocm.software/ocm/cmds/ocm/app" 9 | ) 10 | 11 | func main() { 12 | c, err := app.NewCliCommandForArgs(clictx.DefaultContext(), os.Args[1:]) 13 | if err != nil { 14 | fmt.Fprintf(os.Stderr, "Error: %s\n", err.Error()) 15 | os.Exit(1) 16 | } 17 | if err := c.Execute(); err != nil { 18 | os.Exit(1) 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /cmds/ocm/suite_test.go: -------------------------------------------------------------------------------- 1 | package main_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "OCM command line tests - for bug verification") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/testdata/dockermultiresources.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: ocmhelminstaller 3 | type: Image 4 | input: 5 | type: dockermulti 6 | variants: (( map[split(",", values.VERSION)|v|-> "ocmhelminstaller:" trim(v) ] )) 7 | --- 8 | name: testdata 9 | type: PlainText 10 | input: 11 | type: file 12 | path: testcontent 13 | mediaType: text/plain -------------------------------------------------------------------------------- /cmds/ocm/testdata/dockerresources.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: ocmhelminstaller 3 | type: Image 4 | input: 5 | type: docker 6 | path: mandelsoft/ocmhelminstaller:0.1.0-dev -------------------------------------------------------------------------------- /cmds/ocm/testdata/env.values: -------------------------------------------------------------------------------- 1 | 2 | INFO: info -------------------------------------------------------------------------------- /cmds/ocm/testdata/resources.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: testdata 3 | type: PlainText 4 | input: 5 | type: file 6 | path: testcontent 7 | mediaType: text/plain -------------------------------------------------------------------------------- /cmds/ocm/testdata/testcontent: -------------------------------------------------------------------------------- 1 | this is test content -------------------------------------------------------------------------------- /cmds/ocm/testhelper/forward.go: -------------------------------------------------------------------------------- 1 | package testhelper 2 | 3 | import ( 4 | "ocm.software/ocm/api/helper/env" 5 | ) 6 | 7 | var ( 8 | TestData = env.TestData 9 | FileSystem = env.FileSystem 10 | ) 11 | -------------------------------------------------------------------------------- /cmds/ocm/testhelper/suite_test.go: -------------------------------------------------------------------------------- 1 | package testhelper 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "CLI Test Helper Suite") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/testhelper/testdata/testfile.txt: -------------------------------------------------------------------------------- 1 | this is some test data -------------------------------------------------------------------------------- /cmds/subcmdplugin/cmds/suite_test.go: -------------------------------------------------------------------------------- 1 | package cmds_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestConfig(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "Demo CLI Plugin Command Group Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /cmds/subcmdplugin/cmds/testdata/plugins/cliplugin: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | go run ../main.go "$@" -------------------------------------------------------------------------------- /components/demoplugin/README.md: -------------------------------------------------------------------------------- 1 | # Example demo plugin 2 | 3 | This folder contains an example how to build a plugin for the ocm CLI 4 | -------------------------------------------------------------------------------- /components/demoplugin/bindings.yaml: -------------------------------------------------------------------------------- 1 | values: 2 | GEN: ../../gen/demoplugin 3 | PLATFORMS: linux/amd64 linux/arm64 4 | VERSION: "1.0" 5 | -------------------------------------------------------------------------------- /components/demoplugin/sources.yaml: -------------------------------------------------------------------------------- 1 | name: source 2 | type: filesytem 3 | access: 4 | type: github 5 | repoUrl: github.com/open-component-model/ocm 6 | commit: ${COMMIT} 7 | version: ${VERSION} 8 | -------------------------------------------------------------------------------- /components/ecrplugin/bindings.yaml: -------------------------------------------------------------------------------- 1 | values: 2 | GEN: ../../gen/ecrplugin 3 | PLATFORMS: linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 4 | VERSION: "1.0" 5 | -------------------------------------------------------------------------------- /components/ecrplugin/sources.yaml: -------------------------------------------------------------------------------- 1 | name: source 2 | type: filesytem 3 | access: 4 | type: github 5 | repoUrl: github.com/open-component-model/ocm 6 | commit: ${COMMIT} 7 | version: ${VERSION} 8 | -------------------------------------------------------------------------------- /components/helmdemo/echoserver/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.serviceAccount.create -}} 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: {{ include "testchart.serviceAccountName" . }} 6 | labels: 7 | {{- include "testchart.labels" . | nindent 4 }} 8 | {{- with .Values.serviceAccount.annotations }} 9 | annotations: 10 | {{- toYaml . | nindent 4 }} 11 | {{- end }} 12 | {{- end }} 13 | -------------------------------------------------------------------------------- /components/helmdemo/examples/config.yaml: -------------------------------------------------------------------------------- 1 | namespace: myechoserver -------------------------------------------------------------------------------- /components/helmdemo/examples/creds.yaml: -------------------------------------------------------------------------------- 1 | credentials: 2 | target: 3 | credentials: 4 | KUBECONFIG: (( read("~/k8s/CLUSTERS/test") )) -------------------------------------------------------------------------------- /components/jfrogplugin/bindings.yaml: -------------------------------------------------------------------------------- 1 | values: 2 | GEN: ../../gen/jfrogplugin 3 | PLATFORMS: linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 4 | VERSION: "1.0" 5 | -------------------------------------------------------------------------------- /components/jfrogplugin/sources.yaml: -------------------------------------------------------------------------------- 1 | name: source 2 | type: filesytem 3 | access: 4 | type: github 5 | repoUrl: github.com/open-component-model/ocm 6 | commit: ${COMMIT} 7 | version: ${VERSION} 8 | -------------------------------------------------------------------------------- /components/subchartsdemo/echoserver/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.serviceAccount.create -}} 2 | apiVersion: v1 3 | kind: ServiceAccount 4 | metadata: 5 | name: {{ include "testchart.serviceAccountName" . }} 6 | labels: 7 | {{- include "testchart.labels" . | nindent 4 }} 8 | {{- with .Values.serviceAccount.annotations }} 9 | annotations: 10 | {{- toYaml . | nindent 4 }} 11 | {{- end }} 12 | {{- end }} 13 | -------------------------------------------------------------------------------- /components/subchartsdemo/podinfo/podinfo-6.3.5.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/components/subchartsdemo/podinfo/podinfo-6.3.5.tgz -------------------------------------------------------------------------------- /components/subchartsdemo/subchartsapp/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v2 2 | appVersion: 0.1.0 3 | description: A Helm chart for Kubernetes 4 | name: subchartsapp 5 | type: application 6 | version: 0.1.0 7 | dependencies: 8 | - name: podinfo 9 | - name: echoserver 10 | -------------------------------------------------------------------------------- /components/subchartsdemo/subchartsapp/values.yaml: -------------------------------------------------------------------------------- 1 | # Default values for subchartsapp. 2 | # This is a YAML-formatted file. 3 | # Declare variables to be passed into your templates. 4 | -------------------------------------------------------------------------------- /docs/development/context-structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/docs/development/context-structure.png -------------------------------------------------------------------------------- /docs/development/ocm-cli-package-structure.drawio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/docs/development/ocm-cli-package-structure.drawio.png -------------------------------------------------------------------------------- /docs/pluginreference/plugin_describe.md: -------------------------------------------------------------------------------- 1 | ## plugin describe — Describe Plugin 2 | 3 | ### Synopsis 4 | 5 | ```bash 6 | plugin describe [] 7 | ``` 8 | 9 | ### Options 10 | 11 | ```text 12 | -h, --help help for describe 13 | ``` 14 | 15 | ### Description 16 | Display a detailed description of the capabilities of this OCM plugin. 17 | ### SEE ALSO 18 | 19 | #### Parents 20 | 21 | * [plugin](plugin.md) — OCM Plugin 22 | 23 | -------------------------------------------------------------------------------- /docs/pluginreference/plugin_info.md: -------------------------------------------------------------------------------- 1 | ## plugin info — Show Plugin Descriptor 2 | 3 | ### Synopsis 4 | 5 | ```bash 6 | plugin info [] 7 | ``` 8 | 9 | ### Options 10 | 11 | ```text 12 | -h, --help help for info 13 | ``` 14 | 15 | ### SEE ALSO 16 | 17 | #### Parents 18 | 19 | * [plugin](plugin.md) — OCM Plugin 20 | 21 | -------------------------------------------------------------------------------- /docs/reference/ocm_version.md: -------------------------------------------------------------------------------- 1 | ## ocm version — Displays The Version 2 | 3 | ### Synopsis 4 | 5 | ```bash 6 | ocm version [] 7 | ``` 8 | 9 | #### Aliases 10 | 11 | ```text 12 | version, v 13 | ``` 14 | 15 | ### Options 16 | 17 | ```text 18 | -h, --help help for version 19 | ``` 20 | 21 | ### SEE ALSO 22 | 23 | #### Parents 24 | 25 | * [ocm](ocm.md) — Open Component Model command line client 26 | 27 | -------------------------------------------------------------------------------- /examples/lib/area-ocm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/examples/lib/area-ocm.png -------------------------------------------------------------------------------- /examples/lib/comparison-scenario/config/config-00.yaml: -------------------------------------------------------------------------------- 1 | repository: ghcr.io/mandelsoft/test 2 | ocmconfig: /home/mandelsoft/comparison/ocmconfig.yaml 3 | #targetRepository: 4 | # type: CommonTransportFormat 5 | # filePath: /tmp/comparison.ctf 6 | # fileFormat: directory 7 | # accessMode: 2 8 | targetRepository: 9 | type: OCIRegistry 10 | baseUrl: ghcr.io/mandelsoft/testtarget 11 | -------------------------------------------------------------------------------- /examples/lib/comparison-scenario/config/config.xyaml: -------------------------------------------------------------------------------- 1 | username: mandelsoft 2 | password: ghp_xxxxxx 3 | repository: ghcr.io/mandelsoft/test 4 | targetRepository: 5 | type: OCIRegistry 6 | baseUrl: ghcr.io/mandelsoft/testtarget 7 | -------------------------------------------------------------------------------- /examples/lib/comparison-scenario/resources/deployscript: -------------------------------------------------------------------------------- 1 | values: 2 | images: 3 | podinfo: 4 | default: some config value 5 | chartResource: 6 | resource: 7 | name: helmchart 8 | imageMappings: 9 | - name: podinfo 10 | resource: 11 | name: podinfo-image 12 | image: images.podinfo -------------------------------------------------------------------------------- /examples/lib/config1/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | ) 7 | 8 | // CFG is the path to the file containing the credentials 9 | var CFG = "examples/lib/cred.yaml" 10 | 11 | func main() { 12 | if len(os.Args) > 1 { 13 | CFG = os.Args[1] 14 | } 15 | if err := UsingConfigs(); err != nil { 16 | fmt.Fprintf(os.Stderr, "error: %s\n", err) 17 | os.Exit(1) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /examples/lib/config2/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | ) 7 | 8 | func main() { 9 | if err := UsingConfigs(); err != nil { 10 | fmt.Fprintf(os.Stderr, "error: %s\n", err) 11 | os.Exit(1) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /examples/lib/config3/config.yaml: -------------------------------------------------------------------------------- 1 | type: generic.config.ocm.software/v1 2 | configurations: 3 | - type: mytype.config.mandelsoft.org 4 | value: external configuration 5 | -------------------------------------------------------------------------------- /examples/lib/config3/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | ) 7 | 8 | // CFG is the path to the file containing the credentials 9 | var CFG = "examples/lib/cred.yaml" 10 | 11 | func main() { 12 | if len(os.Args) > 1 { 13 | CFG = os.Args[1] 14 | } 15 | if err := UsingConfigs(); err != nil { 16 | fmt.Fprintf(os.Stderr, "error: %s\n", err) 17 | os.Exit(1) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /examples/lib/cred.yaml: -------------------------------------------------------------------------------- 1 | username: mandelsoft 2 | password: ghp_* 3 | component: github.com/mandelsoft/examples/cred1 4 | repository: ghcr.io/mandelsoft/ocm 5 | version: 0.1.0 6 | -------------------------------------------------------------------------------- /examples/lib/cred1/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | ) 7 | 8 | // CFG is the path to the file containing the credentials 9 | var CFG = "examples/lib/cred.yaml" 10 | 11 | func main() { 12 | if len(os.Args) > 1 { 13 | CFG = os.Args[1] 14 | } 15 | if err := SimpleWriteWithCredentials(); err != nil { 16 | fmt.Fprintf(os.Stderr, "error: %s\n", err) 17 | os.Exit(1) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /examples/lib/cred2/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | ) 7 | 8 | // CFG is the path to the file containing the credentials 9 | var CFG = "examples/lib/cred.yaml" 10 | 11 | func main() { 12 | if len(os.Args) > 1 { 13 | CFG = os.Args[1] 14 | } 15 | if err := SimpleWriteWithCredentials(); err != nil { 16 | fmt.Fprintf(os.Stderr, "error: %s\n", err) 17 | os.Exit(1) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /examples/lib/cred3/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | ) 7 | 8 | // CFG is the path to the file containing the credentials 9 | var CFG = "examples/lib/cred.yaml" 10 | 11 | func main() { 12 | if len(os.Args) > 1 { 13 | CFG = os.Args[1] 14 | } 15 | if err := SimpleWriteWithCredentials(); err != nil { 16 | fmt.Fprintf(os.Stderr, "error: %s\n", err) 17 | os.Exit(1) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /examples/lib/ctf/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | ) 7 | 8 | func main() { 9 | if err := CTFExample(); err != nil { 10 | fmt.Fprintf(os.Stderr, "error: %s\n", err) 11 | os.Exit(1) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /examples/lib/functionalarea.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/c2006477ffd078787d488b4bdea870a015df5d4b/examples/lib/functionalarea.png -------------------------------------------------------------------------------- /examples/lib/helper/settings.yaml: -------------------------------------------------------------------------------- 1 | username: mandelsoft 2 | password: ghp_xyz 3 | component: github.com/mandelsoft/examples/cred1 4 | version: 0.1.0 -------------------------------------------------------------------------------- /examples/lib/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | ) 7 | 8 | func main() { 9 | if err := MyFirstOCMApplication(); err != nil { 10 | fmt.Fprintf(os.Stderr, "error: %s\n", err) 11 | os.Exit(1) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /examples/lib/tour/01-getting-started/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | ) 7 | 8 | // CFG is the path to the file containing the credentials 9 | var CFG = "examples/lib/cred.yaml" 10 | 11 | func main() { 12 | err := GettingStarted() 13 | if err != nil { 14 | fmt.Fprintf(os.Stderr, "Error: %s\n", err) 15 | os.Exit(1) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /examples/lib/tour/04-working-with-config/resources/ocmconfig: -------------------------------------------------------------------------------- 1 | type: generic.config.ocm.software 2 | configurations: 3 | - type: credentials.config.ocm.software 4 | repositories: 5 | - repository: 6 | type: DockerConfig 7 | dockerConfigFile: ~/.docker/config.json 8 | propagateConsumerIdentity: true 9 | -------------------------------------------------------------------------------- /examples/lib/tour/04-working-with-config/settings.yaml: -------------------------------------------------------------------------------- 1 | username: mandelsoft 2 | password: ghp_xyz 3 | component: github.com/mandelsoft/examples/cred1 4 | version: 0.1.0 -------------------------------------------------------------------------------- /examples/lib/tour/06-signing-component-versions/settings.yaml: -------------------------------------------------------------------------------- 1 | username: mandelsoft 2 | password: ghp_xyz 3 | component: github.com/mandelsoft/examples/cred1 4 | version: 0.1.0 -------------------------------------------------------------------------------- /examples/lib/tour/07-resource-management/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | ) 7 | 8 | func main() { 9 | err := ResourceManagement() 10 | if err != nil { 11 | fmt.Fprintf(os.Stderr, "Error: %s\n", err) 12 | os.Exit(1) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /examples/lib/tour/doc.go: -------------------------------------------------------------------------------- 1 | //go:generate mdref --headings docsrc . 2 | 3 | package tour 4 | -------------------------------------------------------------------------------- /examples/lib/tour/docsrc/04-working-with-config/settings.yaml: -------------------------------------------------------------------------------- 1 | username: mandelsoft 2 | password: ghp_xyz 3 | component: github.com/mandelsoft/examples/cred1 4 | version: 0.1.0 -------------------------------------------------------------------------------- /examples/lib/tour/docsrc/06-signing-component-versions/settings.yaml: -------------------------------------------------------------------------------- 1 | username: mandelsoft 2 | password: ghp_xyz 3 | component: github.com/mandelsoft/examples/cred1 4 | version: 0.1.0 -------------------------------------------------------------------------------- /examples/lib/transfer1/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | ) 7 | 8 | // CFG is the path to the file containing the credentials 9 | var CFG = "examples/lib/cred.yaml" 10 | 11 | func main() { 12 | if len(os.Args) > 1 { 13 | CFG = os.Args[1] 14 | } 15 | if err := TransferApplication(); err != nil { 16 | fmt.Fprintf(os.Stderr, "error: %s\n", err) 17 | os.Exit(1) 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /examples/make/.gitignore: -------------------------------------------------------------------------------- 1 | *.sw[pq] 2 | /local 3 | /gen 4 | -------------------------------------------------------------------------------- /examples/make/VERSION: -------------------------------------------------------------------------------- 1 | 0.4.7 2 | -------------------------------------------------------------------------------- /examples/make/content/config.yaml: -------------------------------------------------------------------------------- 1 | 2 | landscape: 3 | version: 1.0.0 4 | name: "<<>>" 5 | domain: newdefault 6 | iaas: 7 | type: "<<>>" 8 | -------------------------------------------------------------------------------- /examples/make/content/contrib/bin/validate: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | echo this is an additional validation step 4 | -------------------------------------------------------------------------------- /examples/make/content/contrib/somedata: -------------------------------------------------------------------------------- 1 | some templating 2 | new data 3 | other data 4 | more changes 5 | other change 6 | minor fix 7 | urgent fix 8 | -------------------------------------------------------------------------------- /examples/make/content/contrib/someother: -------------------------------------------------------------------------------- 1 | same other data 2 | new data 3 | fixifixi 4 | yeah 5 | -------------------------------------------------------------------------------- /examples/make/resources.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: gitopstemplate 3 | type: GitOpsTemplate 4 | labels: 5 | - name: commit 6 | value: ${COMMIT} 7 | input: 8 | type: dir 9 | path: content 10 | mediaType: application/tar+gzip 11 | -------------------------------------------------------------------------------- /hack/brew/go.mod: -------------------------------------------------------------------------------- 1 | module ocm.software/ocm/hack/brew 2 | 3 | go 1.24.0 4 | -------------------------------------------------------------------------------- /hack/collapse/.gitignore: -------------------------------------------------------------------------------- 1 | test_example_collapsible.md -------------------------------------------------------------------------------- /hack/generate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | echo "> Generate" 6 | 7 | GO111MODULE=on go generate -mod=mod $@ 8 | -------------------------------------------------------------------------------- /hack/tools.go: -------------------------------------------------------------------------------- 1 | //go:build tools 2 | 3 | package tools 4 | 5 | import ( 6 | _ "github.com/golang/mock/mockgen" 7 | _ "github.com/onsi/ginkgo/v2/ginkgo" 8 | _ "golang.org/x/lint/golint" 9 | ) 10 | -------------------------------------------------------------------------------- /version.go: -------------------------------------------------------------------------------- 1 | package ocm 2 | 3 | import _ "embed" 4 | 5 | //go:embed VERSION 6 | var Version string 7 | --------------------------------------------------------------------------------