├── VERSION ├── api ├── utils │ ├── filelock │ │ ├── testdata │ │ │ └── lock │ │ └── suite_test.go │ ├── tarutils │ │ ├── testdata │ │ │ ├── file │ │ │ ├── dir2 │ │ │ │ └── file2 │ │ │ └── dir │ │ │ │ ├── link │ │ │ │ ├── regular │ │ │ │ ├── subdir │ │ │ │ └── file │ │ │ │ └── dirlink │ │ ├── compress.go │ │ └── suite_test.go │ ├── dirtree │ │ ├── testdata │ │ │ └── fs │ │ │ │ ├── link │ │ │ │ ├── data │ │ │ │ └── dir │ │ │ │ └── file │ │ └── suite_test.go │ ├── blobaccess │ │ ├── git │ │ │ ├── testdata │ │ │ │ └── repo │ │ │ │ │ ├── file_in_repo │ │ │ │ │ └── dir │ │ │ │ │ └── file_in_dir_in_repo │ │ │ ├── digest.go │ │ │ └── suite_test.go │ │ ├── wget │ │ │ └── logging.go │ │ ├── ocm │ │ │ └── suite_test.go │ │ ├── npm │ │ │ └── suite_test.go │ │ ├── blobaccess │ │ │ └── suite_test.go │ │ ├── file │ │ │ └── suite_test.go │ │ └── maven │ │ │ └── suite_test.go │ ├── compression │ │ ├── fixtures │ │ │ ├── Hello.uncompressed │ │ │ ├── Hello.gz │ │ │ ├── Hello.xz │ │ │ ├── Hello.bz2 │ │ │ └── Hello.zst │ │ ├── README.md │ │ └── utils.go │ ├── misc │ │ ├── const.go │ │ └── suite_test.go │ ├── cobrautils │ │ ├── logopts │ │ │ ├── logging │ │ │ │ └── global.go │ │ │ ├── doc.go │ │ │ └── suite_test.go │ │ ├── flag │ │ │ └── suite_test.go │ │ ├── suite_test.go │ │ ├── utils.go │ │ └── flagsets │ │ │ ├── suite_test.go │ │ │ └── flagsetscheme │ │ │ └── doc.go │ ├── template │ │ └── testdata │ │ │ └── env.values │ ├── logging │ │ ├── stdkeys.go │ │ └── suite_test.go │ ├── accessio │ │ ├── downloader │ │ │ └── downloader.go │ │ └── suite_test.go │ ├── errkind │ │ ├── kinds.go │ │ └── utils.go │ ├── suite_test.go │ ├── spiff │ │ └── suite_test.go │ ├── subst │ │ └── suite_test.go │ ├── iotools │ │ ├── suite_test.go │ │ └── utils.go │ ├── runtime │ │ └── suite_test.go │ ├── panics │ │ └── suite_test.go │ ├── accessobj │ │ ├── suite_test.go │ │ └── format-tgz.go │ ├── clisupport │ │ └── suite_test.go │ ├── semverutils │ │ └── suite_test.go │ ├── refmgmt │ │ ├── suite_test.go │ │ ├── finalized │ │ │ └── suite_test.go │ │ └── resource │ │ │ └── suite_test.go │ ├── registrations │ │ └── suite_test.go │ ├── runtimefinalizer │ │ └── suite_test.go │ ├── ctf.go │ └── locator.go ├── oci │ ├── ociutils │ │ ├── helm │ │ │ ├── ignore │ │ │ │ └── testdata │ │ │ │ │ ├── a.txt │ │ │ │ │ ├── .joonix │ │ │ │ │ ├── helm.txt │ │ │ │ │ ├── mast │ │ │ │ │ ├── a.txt │ │ │ │ │ ├── b.txt │ │ │ │ │ └── c.txt │ │ │ │ │ ├── rudder.txt │ │ │ │ │ ├── tiller.txt │ │ │ │ │ ├── cargo │ │ │ │ │ ├── a.txt │ │ │ │ │ ├── b.txt │ │ │ │ │ └── c.txt │ │ │ │ │ ├── templates │ │ │ │ │ └── .dotfile │ │ │ │ │ └── .helmignore │ │ │ ├── testdata │ │ │ │ ├── testchart.prov │ │ │ │ └── testchart │ │ │ │ │ └── templates │ │ │ │ │ └── serviceaccount.yaml │ │ │ └── suite_test.go │ │ └── suite_test.go │ ├── cpi │ │ ├── README.md │ │ └── suite_test.go │ ├── extensions │ │ ├── attrs │ │ │ ├── init.go │ │ │ └── cacheattr │ │ │ │ └── suite_test.go │ │ ├── actions │ │ │ └── init.go │ │ └── repositories │ │ │ ├── docker │ │ │ ├── logging.go │ │ │ └── suite_test.go │ │ │ ├── ocireg │ │ │ └── logging.go │ │ │ ├── ctf │ │ │ ├── index │ │ │ │ └── suite_test.go │ │ │ └── suite_test.go │ │ │ ├── artifactset │ │ │ └── suite_test.go │ │ │ └── init.go │ ├── init.go │ ├── suite_test.go │ ├── config │ │ └── suite_test.go │ ├── internal │ │ └── suite_test.go │ ├── artdesc │ │ └── suite_test.go │ └── tools │ │ └── transfer │ │ └── suite_test.go ├── tech │ ├── git │ │ ├── testdata │ │ │ └── repo │ │ │ │ └── file_in_repo │ │ ├── logging.go │ │ ├── suite_test.go │ │ └── identity │ │ │ └── suite_test.go │ ├── maven │ │ ├── maventest │ │ │ ├── testdata │ │ │ │ └── .m2 │ │ │ │ │ ├── fail │ │ │ │ │ └── test │ │ │ │ │ │ └── repository │ │ │ │ │ │ └── 42 │ │ │ │ │ │ └── repository-42.pom.sha1 │ │ │ │ │ └── repository │ │ │ │ │ └── com │ │ │ │ │ └── sap │ │ │ │ │ └── cloud │ │ │ │ │ └── sdk │ │ │ │ │ └── sdk-modules-bom │ │ │ │ │ └── 5.7.0 │ │ │ │ │ ├── sdk-modules-bom-5.7.0-random-content.txt │ │ │ │ │ ├── sdk-modules-bom-5.7.0-random-content.json │ │ │ │ │ ├── sdk-modules-bom-5.7.0.jar.sha1 │ │ │ │ │ ├── sdk-modules-bom-5.7.0.pom.sha1 │ │ │ │ │ ├── sdk-modules-bom-5.7.0-sources.jar.sha1 │ │ │ │ │ ├── sdk-modules-bom-5.7.0-random-content.json.sha1 │ │ │ │ │ ├── sdk-modules-bom-5.7.0-random-content.txt.sha1 │ │ │ │ │ ├── sdk-modules-bom-5.7.0.jar │ │ │ │ │ └── sdk-modules-bom-5.7.0-sources.jar │ │ │ ├── const.go │ │ │ └── testdata.go │ │ ├── logging.go │ │ └── suite_test.go │ ├── helm │ │ ├── loader │ │ │ └── forward.go │ │ └── identity │ │ │ └── suite_test.go │ ├── npm │ │ └── npmtest │ │ │ ├── testdata │ │ │ └── content │ │ │ │ └── yargs │ │ │ │ └── yargs-17.7.1.tgz │ │ │ ├── const.go │ │ │ └── testdata.go │ ├── signing │ │ ├── hasher │ │ │ └── init.go │ │ ├── suite_test.go │ │ ├── tsa │ │ │ └── types.go │ │ ├── signutils │ │ │ └── suite_test.go │ │ ├── utils.go │ │ └── handlers │ │ │ └── init.go │ ├── oci │ │ └── identity │ │ │ └── suite_test.go │ └── wget │ │ └── identity │ │ └── suite_test.go ├── helper │ ├── env │ │ ├── testdata │ │ │ └── testfile.txt │ │ └── suite_test.go │ └── builder │ │ ├── oci_tags.go │ │ ├── oci_anno.go │ │ ├── suite_test.go │ │ ├── oci_platform.go │ │ └── ocm_composition.go ├── ocm │ ├── elements │ │ ├── artifactblob │ │ │ ├── dirtreeblob │ │ │ │ ├── testdata │ │ │ │ │ └── dir │ │ │ │ │ │ ├── a │ │ │ │ │ │ ├── b │ │ │ │ │ │ └── c │ │ │ │ └── suite_test.go │ │ │ ├── helmblob │ │ │ │ ├── testdata │ │ │ │ │ ├── testchart1 │ │ │ │ │ │ ├── .idea │ │ │ │ │ │ │ └── somefile │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ └── serviceaccount.yaml │ │ │ │ │ └── testchart2 │ │ │ │ │ │ ├── .idea │ │ │ │ │ │ └── somefile │ │ │ │ │ │ └── templates │ │ │ │ │ │ └── serviceaccount.yaml │ │ │ │ └── suite_test.go │ │ │ ├── npmblob │ │ │ │ └── suite_test.go │ │ │ ├── ocmblob │ │ │ │ └── suite_test.go │ │ │ ├── mavenblob │ │ │ │ └── suite_test.go │ │ │ ├── externalblob │ │ │ │ └── doc.go │ │ │ └── genericblob │ │ │ │ └── options.go │ │ ├── artifacts.go │ │ ├── suite_test.go │ │ └── artifactaccess │ │ │ └── genericaccess │ │ │ └── suite_test.go │ ├── extensions │ │ ├── accessmethods │ │ │ ├── git │ │ │ │ ├── testdata │ │ │ │ │ └── repo │ │ │ │ │ │ └── file_in_repo │ │ │ │ └── suite_test.go │ │ │ ├── s3 │ │ │ │ ├── testdata │ │ │ │ │ └── repo.tar.gz │ │ │ │ ├── ifce_test.go │ │ │ │ └── suite_test.go │ │ │ ├── github │ │ │ │ ├── testdata │ │ │ │ │ └── repo.tar.gz │ │ │ │ └── suite_test.go │ │ │ ├── helm │ │ │ │ └── suite_test.go │ │ │ ├── npm │ │ │ │ └── suite_test.go │ │ │ ├── maven │ │ │ │ └── suite_test.go │ │ │ ├── ocm │ │ │ │ └── suite_test.go │ │ │ ├── ociblob │ │ │ │ └── suite_test.go │ │ │ ├── wget │ │ │ │ └── suite_test.go │ │ │ ├── localblob │ │ │ │ └── suite_test.go │ │ │ ├── localfsblob │ │ │ │ └── suite_test.go │ │ │ ├── ociartifact │ │ │ │ └── suite_test.go │ │ │ ├── localociblob │ │ │ │ └── suite_test.go │ │ │ ├── options │ │ │ │ └── suite_test.go │ │ │ ├── relativeociref │ │ │ │ └── suite_test.go │ │ │ └── plugin │ │ │ │ └── doc.go │ │ ├── repositories │ │ │ ├── virtual │ │ │ │ ├── testdata │ │ │ │ │ └── blobs │ │ │ │ │ │ ├── blob1 │ │ │ │ │ │ └── blob2 │ │ │ │ ├── suite_test.go │ │ │ │ └── example │ │ │ │ │ └── doc.go │ │ │ ├── comparch │ │ │ │ ├── testdata │ │ │ │ │ └── directory │ │ │ │ │ │ └── blobs │ │ │ │ │ │ └── root │ │ │ │ │ │ └── testfile │ │ │ │ └── suite_test.go │ │ │ ├── init.go │ │ │ ├── ctf │ │ │ │ └── suite_test.go │ │ │ ├── ocireg │ │ │ │ └── suite_test.go │ │ │ ├── composition │ │ │ │ └── suite_test.go │ │ │ └── genericocireg │ │ │ │ ├── suite_test.go │ │ │ │ └── excludes.go │ │ ├── download │ │ │ ├── handlers │ │ │ │ ├── blueprint │ │ │ │ │ ├── testdata │ │ │ │ │ │ └── blueprint │ │ │ │ │ │ │ └── test │ │ │ │ │ │ │ └── README.md │ │ │ │ │ └── suite_test.go │ │ │ │ ├── dirtree │ │ │ │ │ ├── testdata │ │ │ │ │ │ └── layers │ │ │ │ │ │ │ ├── 0 │ │ │ │ │ │ │ └── testfile │ │ │ │ │ │ │ ├── 1 │ │ │ │ │ │ │ └── dir │ │ │ │ │ │ │ │ └── nestedfile │ │ │ │ │ │ │ └── all │ │ │ │ │ │ │ ├── testfile │ │ │ │ │ │ │ └── dir │ │ │ │ │ │ │ └── nestedfile │ │ │ │ │ └── suite_test.go │ │ │ │ ├── helm │ │ │ │ │ ├── testdata │ │ │ │ │ │ ├── test-chart │ │ │ │ │ │ │ ├── templates │ │ │ │ │ │ │ │ └── configmap.yaml │ │ │ │ │ │ │ └── values.yaml │ │ │ │ │ │ ├── test-chart-oci-artifact.tgz │ │ │ │ │ │ ├── legacy-pre-hip-helm-chart.tgz │ │ │ │ │ │ └── unusual-ordered-helm-chart.tgz │ │ │ │ │ └── suite_test.go │ │ │ │ ├── ocirepo │ │ │ │ │ └── suite_test.go │ │ │ │ └── plugin │ │ │ │ │ └── suite_test.go │ │ │ ├── config │ │ │ │ └── suite_test.go │ │ │ └── logging.go │ │ ├── labels │ │ │ ├── init.go │ │ │ └── routingslip │ │ │ │ ├── init.go │ │ │ │ ├── types │ │ │ │ ├── init.go │ │ │ │ └── plugin │ │ │ │ │ └── doc.go │ │ │ │ └── suite_test.go │ │ ├── actionhandler │ │ │ ├── init.go │ │ │ └── plugin │ │ │ │ └── suite_test.go │ │ ├── pubsub │ │ │ ├── providers │ │ │ │ ├── init.go │ │ │ │ └── ocireg │ │ │ │ │ └── suite_test.go │ │ │ ├── types │ │ │ │ ├── init.go │ │ │ │ └── redis │ │ │ │ │ └── suite_test.go │ │ │ └── suite_test.go │ │ ├── blobhandler │ │ │ └── handlers │ │ │ │ ├── generic │ │ │ │ ├── npm │ │ │ │ │ ├── testdata │ │ │ │ │ │ └── testdata.tgz │ │ │ │ │ └── suite_test.go │ │ │ │ ├── maven │ │ │ │ │ └── suite_test.go │ │ │ │ ├── plugin │ │ │ │ │ └── suite_test.go │ │ │ │ └── ocirepo │ │ │ │ │ └── suite_test.go │ │ │ │ ├── oci │ │ │ │ ├── doc.go │ │ │ │ └── ocirepo │ │ │ │ │ ├── suite_test.go │ │ │ │ │ └── config │ │ │ │ │ └── suite_test.go │ │ │ │ └── ocm │ │ │ │ ├── doc.go │ │ │ │ └── comparch │ │ │ │ └── suite_test.go │ │ ├── digester │ │ │ └── digesters │ │ │ │ └── init.go │ │ └── attrs │ │ │ ├── hashattr │ │ │ └── suite_test.go │ │ │ ├── compatattr │ │ │ └── suite_test.go │ │ │ ├── keepblobattr │ │ │ └── suite_test.go │ │ │ ├── signingattr │ │ │ └── suite_test.go │ │ │ ├── mapocirepoattr │ │ │ └── suite_test.go │ │ │ ├── maxworkersattr │ │ │ └── suite_test.go │ │ │ ├── plugindirattr │ │ │ └── suite_test.go │ │ │ ├── ociuploadattr │ │ │ └── suite_test.go │ │ │ ├── compositionmodeattr │ │ │ └── suite_test.go │ │ │ └── preferrelativeattr │ │ │ └── suite_test.go │ ├── cpi │ │ ├── README.md │ │ ├── repocpi │ │ │ ├── ocmimpllayers.png │ │ │ └── interface.go │ │ ├── suite_test.go │ │ └── logging.go │ ├── tools │ │ ├── transfer │ │ │ ├── debug.go │ │ │ ├── transferhandler │ │ │ │ ├── standard │ │ │ │ │ ├── testdata │ │ │ │ │ │ └── v0.18.0 │ │ │ │ │ │ │ ├── blobs │ │ │ │ │ │ │ ├── sha256.916f0027a575074ce72a331777c3478d6513f786a591bd892da1a577bf2335f9 │ │ │ │ │ │ │ ├── sha256.920ce99fb13b43ca0408caee6e61f6335ea5156d79aa98e733e1ed2393e0f649 │ │ │ │ │ │ │ └── sha256.958eb6b2928a569d7aaab2aa924fb236e977bfbc43309908aa9c45b154f689cd │ │ │ │ │ │ │ └── artifact-index.json │ │ │ │ │ └── suite_test.go │ │ │ │ └── spiff │ │ │ │ │ └── suite_test.go │ │ │ ├── init.go │ │ │ └── suite_test.go │ │ ├── signing │ │ │ ├── signingtest │ │ │ │ ├── testdata │ │ │ │ │ └── compat │ │ │ │ │ │ └── component-archive │ │ │ │ │ │ └── blobs │ │ │ │ │ │ └── sha256.c893900c1106f13d55648a425f502dd6518e40eaa3ac7d24023d4c73d55dc12e │ │ │ │ └── testdata.go │ │ │ └── suite_test.go │ │ └── toi │ │ │ ├── logging.go │ │ │ ├── drivers │ │ │ └── default │ │ │ │ └── driver.go │ │ │ └── install │ │ │ └── suite_test.go │ ├── ocmutils │ │ ├── localize │ │ │ ├── testdata │ │ │ │ └── dir │ │ │ │ │ ├── manifest1.yaml │ │ │ │ │ ├── manifest2.yaml │ │ │ │ │ └── some.json │ │ │ └── suite_test.go │ │ ├── suite_test.go │ │ ├── check │ │ │ └── suite_test.go │ │ └── registry │ │ │ └── suite_test.go │ ├── plugin │ │ ├── internal │ │ │ ├── valueset.go │ │ │ ├── action.go │ │ │ ├── upload.go │ │ │ └── access.go │ │ ├── cache │ │ │ └── doc.go │ │ ├── suite_test.go │ │ ├── ppi │ │ │ ├── cmds │ │ │ │ └── common │ │ │ │ │ └── const.go │ │ │ ├── config │ │ │ │ └── doc.go │ │ │ ├── logging │ │ │ │ └── doc.go │ │ │ └── doc.go │ │ ├── descriptor │ │ │ ├── suite_test.go │ │ │ └── doc.go │ │ └── registration │ │ │ └── logging.go │ ├── compdesc │ │ ├── init.go │ │ ├── versions │ │ │ └── init.go │ │ ├── logging.go │ │ ├── meta │ │ │ └── v1 │ │ │ │ ├── stringmap.go │ │ │ │ └── suite_test.go │ │ ├── normalizations │ │ │ └── init.go │ │ ├── suite_test.go │ │ └── none.go │ ├── selectors │ │ ├── srcsel │ │ │ ├── interface.go │ │ │ └── artifact.go │ │ ├── labelsel │ │ │ └── suite_test.go │ │ └── rscsel │ │ │ └── artifact.go │ ├── valuemergehandler │ │ ├── hpi │ │ │ └── logging.go │ │ ├── handlers │ │ │ ├── plugin │ │ │ │ ├── suite_test.go │ │ │ │ └── config.go │ │ │ ├── maplistmerge │ │ │ │ └── suite_test.go │ │ │ ├── defaultmerge │ │ │ │ └── suite_test.go │ │ │ ├── simplelistmerge │ │ │ │ └── suite_test.go │ │ │ ├── simplemapmerge │ │ │ │ └── suite_test.go │ │ │ └── init.go │ │ └── config │ │ │ └── suite_test.go │ ├── suite_test.go │ ├── config │ │ └── suite_test.go │ ├── grammar │ │ └── suite_test.go │ ├── internal │ │ ├── suite_test.go │ │ └── hasher.go │ ├── resolvers │ │ └── suite_test.go │ ├── resourcerefs │ │ └── suite_test.go │ └── testhelper │ │ └── refmgmt.go ├── config │ ├── cpi │ │ └── README.md │ ├── init.go │ ├── extensions │ │ └── config │ │ │ ├── testdata │ │ │ ├── config.yaml │ │ │ └── nested.yaml │ │ │ └── suite_test.go │ ├── internal │ │ ├── logging.go │ │ └── suite_test.go │ └── suite_test.go ├── credentials │ ├── cpi │ │ └── README.md │ ├── builtin │ │ ├── init.go │ │ └── doc.go │ ├── extensions │ │ └── repositories │ │ │ ├── npm │ │ │ ├── testdata │ │ │ │ └── .npmrc │ │ │ └── suite_test.go │ │ │ ├── gardenerconfig │ │ │ ├── init.go │ │ │ └── suite_test.go │ │ │ ├── dockerconfig │ │ │ ├── logging.go │ │ │ ├── suite_test.go │ │ │ └── testdata │ │ │ │ └── dockerconfig.json │ │ │ ├── vault │ │ │ ├── logging.go │ │ │ └── suite_test.go │ │ │ ├── aliases │ │ │ └── suite_test.go │ │ │ ├── directcreds │ │ │ ├── suite_test.go │ │ │ └── credentials.go │ │ │ └── memory │ │ │ ├── suite_test.go │ │ │ └── config │ │ │ └── suite_test.go │ ├── init.go │ ├── internal │ │ ├── logging.go │ │ ├── suite_test.go │ │ └── builtin.go │ ├── suite_test.go │ ├── config │ │ └── suite_test.go │ ├── identity │ │ └── hostpath │ │ │ └── suite_test.go │ └── usage.go ├── datacontext │ ├── context-refcount-model.png │ ├── config │ │ ├── init.go │ │ ├── attrs │ │ │ └── suite_test.go │ │ └── logging │ │ │ └── suite_test.go │ ├── action │ │ └── api │ │ │ └── suite_test.go │ ├── attrs │ │ ├── init.go │ │ └── rootcertsattr │ │ │ └── suite_test.go │ ├── suite_test.go │ └── logging.go └── cli │ ├── config │ └── suite_test.go │ └── interface.go ├── examples ├── make │ ├── VERSION │ ├── .gitignore │ ├── content │ │ ├── contrib │ │ │ ├── someother │ │ │ ├── bin │ │ │ │ └── validate │ │ │ └── somedata │ │ └── config.yaml │ └── resources.yaml └── lib │ ├── tour │ ├── doc.go │ ├── 04-working-with-config │ │ ├── settings.yaml │ │ └── resources │ │ │ └── ocmconfig │ ├── 06-signing-component-versions │ │ └── settings.yaml │ ├── docsrc │ │ ├── 04-working-with-config │ │ │ └── settings.yaml │ │ └── 06-signing-component-versions │ │ │ └── settings.yaml │ ├── 07-resource-management │ │ └── main.go │ └── 01-getting-started │ │ └── main.go │ ├── area-ocm.png │ ├── functionalarea.png │ ├── helper │ └── settings.yaml │ ├── config3 │ ├── config.yaml │ └── main.go │ ├── cred.yaml │ ├── comparison-scenario │ ├── config │ │ ├── config.xyaml │ │ └── config-00.yaml │ └── resources │ │ └── deployscript │ ├── ctf │ └── main.go │ ├── config2 │ └── main.go │ ├── main.go │ ├── config1 │ └── main.go │ ├── transfer1 │ └── main.go │ ├── cred1 │ └── main.go │ ├── cred2 │ └── main.go │ └── cred3 │ └── main.go ├── cmds ├── ocm │ ├── testdata │ │ ├── env.values │ │ ├── testcontent │ │ ├── resources.yaml │ │ ├── dockerresources.yaml │ │ ├── dockermultiresources.yaml │ │ └── sources.yaml │ ├── app │ │ ├── testdata │ │ │ ├── attr.yaml │ │ │ └── logcfg.yaml │ │ └── suite_test.go │ ├── commands │ │ ├── ocmcmds │ │ │ ├── cli │ │ │ │ └── download │ │ │ │ │ ├── testdata │ │ │ │ │ ├── bin │ │ │ │ │ │ ├── ocm │ │ │ │ │ │ └── ocm.exe │ │ │ │ │ └── other │ │ │ │ │ │ └── dummy │ │ │ │ │ ├── is_unix.go │ │ │ │ │ ├── is_windows.go │ │ │ │ │ ├── const.go │ │ │ │ │ └── suite_test.go │ │ │ ├── resources │ │ │ │ ├── add │ │ │ │ │ ├── testdata │ │ │ │ │ │ ├── testchart │ │ │ │ │ │ │ ├── .idea │ │ │ │ │ │ │ │ └── somefile │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ │ └── serviceaccount.yaml │ │ │ │ │ │ ├── testcontent │ │ │ │ │ │ ├── spiffcontent │ │ │ │ │ │ ├── settings │ │ │ │ │ │ ├── helm2.yaml │ │ │ │ │ │ ├── resources.tmpl │ │ │ │ │ │ ├── resources.yaml │ │ │ │ │ │ ├── resources2.yaml │ │ │ │ │ │ ├── helmref.yaml │ │ │ │ │ │ ├── image.yaml │ │ │ │ │ │ ├── dupresources.yaml │ │ │ │ │ │ ├── helm.yaml │ │ │ │ │ │ └── nested │ │ │ │ │ │ │ └── helm.yaml │ │ │ │ │ └── suite_test.go │ │ │ │ ├── download │ │ │ │ │ ├── testdata │ │ │ │ │ │ └── layers │ │ │ │ │ │ │ ├── 0 │ │ │ │ │ │ │ └── testfile │ │ │ │ │ │ │ ├── 1 │ │ │ │ │ │ │ └── dir │ │ │ │ │ │ │ │ └── nestedfile │ │ │ │ │ │ │ └── all │ │ │ │ │ │ │ ├── testfile │ │ │ │ │ │ │ └── dir │ │ │ │ │ │ │ └── nestedfile │ │ │ │ │ └── suite_test.go │ │ │ │ └── get │ │ │ │ │ └── suite_test.go │ │ │ ├── sourceconfig │ │ │ │ └── add │ │ │ │ │ ├── testdata │ │ │ │ │ └── testcontent │ │ │ │ │ └── suite_test.go │ │ │ ├── common │ │ │ │ ├── options │ │ │ │ │ ├── optutils │ │ │ │ │ │ ├── testdata │ │ │ │ │ │ │ └── config │ │ │ │ │ │ └── suite_test.go │ │ │ │ │ ├── uploaderoption │ │ │ │ │ │ └── suite_test.go │ │ │ │ │ └── downloaderoption │ │ │ │ │ │ └── suite_test.go │ │ │ │ ├── inputs │ │ │ │ │ ├── types │ │ │ │ │ │ ├── spiff │ │ │ │ │ │ │ ├── testdata │ │ │ │ │ │ │ │ ├── subdir │ │ │ │ │ │ │ │ │ ├── include.yaml │ │ │ │ │ │ │ │ │ └── test.yaml │ │ │ │ │ │ │ │ └── test1.yaml │ │ │ │ │ │ │ └── suite_test.go │ │ │ │ │ │ ├── git │ │ │ │ │ │ │ ├── testdata │ │ │ │ │ │ │ │ └── resources1.yaml │ │ │ │ │ │ │ └── suite_test.go │ │ │ │ │ │ ├── maven │ │ │ │ │ │ │ ├── testdata │ │ │ │ │ │ │ │ └── resources1.yaml │ │ │ │ │ │ │ └── suite_test.go │ │ │ │ │ │ ├── npm │ │ │ │ │ │ │ └── suite_test.go │ │ │ │ │ │ ├── ocm │ │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ │ └── testdata │ │ │ │ │ │ │ │ └── resources1.yaml │ │ │ │ │ │ ├── binary │ │ │ │ │ │ │ └── suite_test.go │ │ │ │ │ │ ├── utf8 │ │ │ │ │ │ │ └── suite_test.go │ │ │ │ │ │ ├── wget │ │ │ │ │ │ │ └── suite_test.go │ │ │ │ │ │ ├── directory │ │ │ │ │ │ │ └── suite_test.go │ │ │ │ │ │ ├── ociartifact │ │ │ │ │ │ │ ├── suite_test.go │ │ │ │ │ │ │ └── testdata │ │ │ │ │ │ │ │ └── component-constructor.yaml │ │ │ │ │ │ └── file │ │ │ │ │ │ │ └── type.go │ │ │ │ │ └── suite_test.go │ │ │ │ ├── suite_test.go │ │ │ │ └── handlers │ │ │ │ │ ├── vershdlr │ │ │ │ │ └── suite_test.go │ │ │ │ │ └── elemhdlr │ │ │ │ │ └── sort.go │ │ │ ├── resourceconfig │ │ │ │ └── add │ │ │ │ │ ├── testdata │ │ │ │ │ └── testcontent │ │ │ │ │ └── suite_test.go │ │ │ ├── sources │ │ │ │ ├── add │ │ │ │ │ ├── testdata │ │ │ │ │ │ ├── testcontent │ │ │ │ │ │ ├── settings │ │ │ │ │ │ └── dupsources.yaml │ │ │ │ │ └── suite_test.go │ │ │ │ └── get │ │ │ │ │ └── suite_test.go │ │ │ ├── components │ │ │ │ ├── add │ │ │ │ │ ├── testdata │ │ │ │ │ │ └── testdata │ │ │ │ │ └── suite_test.go │ │ │ │ ├── transfer │ │ │ │ │ ├── ctf.copy │ │ │ │ │ │ └── artifact-index.json │ │ │ │ │ └── suite_test.go │ │ │ │ ├── get │ │ │ │ │ └── suite_test.go │ │ │ │ ├── check │ │ │ │ │ └── suite_test.go │ │ │ │ ├── hash │ │ │ │ │ └── suite_test.go │ │ │ │ ├── sign │ │ │ │ │ └── suite_test.go │ │ │ │ ├── list │ │ │ │ │ └── suite_test.go │ │ │ │ ├── verify │ │ │ │ │ └── suite_test.go │ │ │ │ └── download │ │ │ │ │ └── suite_test.go │ │ │ ├── references │ │ │ │ ├── add │ │ │ │ │ ├── testdata │ │ │ │ │ │ ├── settings │ │ │ │ │ │ ├── references.tmpl │ │ │ │ │ │ ├── references.yaml │ │ │ │ │ │ ├── referenceswithid.yaml │ │ │ │ │ │ ├── dupreferences.yaml │ │ │ │ │ │ └── references-dup.yaml │ │ │ │ │ └── suite_test.go │ │ │ │ └── get │ │ │ │ │ └── suite_test.go │ │ │ ├── init.go │ │ │ ├── plugins │ │ │ │ ├── get │ │ │ │ │ └── suite_test.go │ │ │ │ ├── install │ │ │ │ │ └── suite_test.go │ │ │ │ ├── describe │ │ │ │ │ └── suite_test.go │ │ │ │ └── tests │ │ │ │ │ └── routingslips │ │ │ │ │ └── suite_test.go │ │ │ ├── verified │ │ │ │ └── get │ │ │ │ │ └── suite_test.go │ │ │ ├── ctf │ │ │ │ └── transfer │ │ │ │ │ └── suite_test.go │ │ │ ├── pubsub │ │ │ │ ├── get │ │ │ │ │ └── suite_test.go │ │ │ │ └── set │ │ │ │ │ └── suite_test.go │ │ │ ├── versions │ │ │ │ └── show │ │ │ │ │ └── suite_test.go │ │ │ ├── routingslips │ │ │ │ ├── add │ │ │ │ │ └── suite_test.go │ │ │ │ └── get │ │ │ │ │ └── suite_test.go │ │ │ └── componentarchive │ │ │ │ └── create │ │ │ │ └── suite_test.go │ │ ├── controllercmds │ │ │ ├── install │ │ │ │ ├── testdata │ │ │ │ │ └── install.yaml │ │ │ │ └── suite_test.go │ │ │ ├── uninstall │ │ │ │ ├── testdata │ │ │ │ │ └── install.yaml │ │ │ │ └── suite_test.go │ │ │ ├── names │ │ │ │ └── names.go │ │ │ └── common │ │ │ │ └── log.go │ │ ├── cachecmds │ │ │ └── names │ │ │ │ └── names.go │ │ ├── ocicmds │ │ │ ├── names │ │ │ │ └── names.go │ │ │ ├── tags │ │ │ │ └── show │ │ │ │ │ └── suite_test.go │ │ │ ├── artifacts │ │ │ │ ├── get │ │ │ │ │ └── suite_test.go │ │ │ │ ├── download │ │ │ │ │ └── suite_test.go │ │ │ │ └── transfer │ │ │ │ │ └── suite_test.go │ │ │ └── ctf │ │ │ │ └── create │ │ │ │ └── suite_test.go │ │ ├── misccmds │ │ │ ├── names │ │ │ │ └── names.go │ │ │ ├── hash │ │ │ │ └── sign │ │ │ │ │ └── suite_test.go │ │ │ ├── config │ │ │ │ └── get │ │ │ │ │ └── suite_test.go │ │ │ ├── credentials │ │ │ │ └── get │ │ │ │ │ └── suite_test.go │ │ │ └── rsakeypair │ │ │ │ └── suite_test.go │ │ ├── toicmds │ │ │ ├── names │ │ │ │ └── names.go │ │ │ └── config │ │ │ │ └── bootstrap │ │ │ │ └── suite_test.go │ │ └── verbs │ │ │ └── verb.go │ ├── testhelper │ │ ├── testdata │ │ │ └── testfile.txt │ │ ├── forward.go │ │ └── suite_test.go │ ├── common │ │ ├── processing │ │ │ ├── utils.go │ │ │ ├── logging.go │ │ │ └── suite_test.go │ │ ├── data │ │ │ ├── suite_test.go │ │ │ └── convert.go │ │ ├── output │ │ │ ├── suite_test.go │ │ │ └── select.go │ │ ├── tree │ │ │ └── suite_test.go │ │ ├── options │ │ │ └── suite_test.go │ │ └── utils │ │ │ └── plural.go │ ├── coretests │ │ └── maven │ │ │ ├── suite_test.go │ │ │ └── testdata │ │ │ ├── components.yaml │ │ │ └── components2.yaml │ ├── suite_test.go │ ├── clippi │ │ └── config │ │ │ └── evaluated.go │ └── main.go ├── demoplugin │ ├── valuesets │ │ ├── testdata │ │ │ └── demo │ │ └── suite_test.go │ └── common │ │ └── const.go ├── cliplugin │ ├── cmds │ │ ├── testdata │ │ │ ├── plugins │ │ │ │ └── cliplugin │ │ │ ├── err.yaml │ │ │ ├── config.yaml │ │ │ └── logcfg.yaml │ │ └── suite_test.go │ └── testdata │ │ └── config.yaml ├── subcmdplugin │ └── cmds │ │ ├── testdata │ │ └── plugins │ │ │ └── cliplugin │ │ ├── suite_test.go │ │ └── group │ │ └── cmd.go ├── jfrogplugin │ └── suite_test.go ├── helminstaller │ └── main.go └── ecrplugin │ └── config │ ├── tweak.go │ └── config.go ├── hack ├── collapse │ └── .gitignore ├── brew │ └── go.mod ├── generate.sh └── tools.go ├── components ├── helmdemo │ ├── examples │ │ ├── config.yaml │ │ └── creds.yaml │ └── echoserver │ │ └── templates │ │ └── serviceaccount.yaml ├── demoplugin │ ├── README.md │ ├── bindings.yaml │ └── sources.yaml ├── subchartsdemo │ ├── podinfo │ │ └── podinfo-6.3.5.tgz │ ├── subchartsapp │ │ ├── values.yaml │ │ └── Chart.yaml │ └── echoserver │ │ └── templates │ │ └── serviceaccount.yaml ├── ecrplugin │ ├── bindings.yaml │ └── sources.yaml └── jfrogplugin │ ├── bindings.yaml │ └── sources.yaml ├── .github ├── secret_scanning.yml ├── config │ ├── markdownignore │ ├── markdownlint.yml │ └── markdown-link-check.json ├── settings.yml └── workflows │ ├── stale.yaml │ └── reuse_helper_tool.yaml ├── version.go ├── docs ├── development │ ├── context-structure.png │ └── ocm-cli-package-structure.drawio.png ├── pluginreference │ ├── plugin_info.md │ └── plugin_describe.md └── reference │ └── ocm_version.md ├── CODE_OF_CONDUCT.md └── CONTRIBUTING.md /VERSION: -------------------------------------------------------------------------------- 1 | 0.36.0-dev 2 | -------------------------------------------------------------------------------- /api/utils/filelock/testdata/lock: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/utils/tarutils/testdata/file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/make/VERSION: -------------------------------------------------------------------------------- 1 | 0.4.7 2 | -------------------------------------------------------------------------------- /api/utils/dirtree/testdata/fs/link: -------------------------------------------------------------------------------- 1 | data -------------------------------------------------------------------------------- /api/utils/tarutils/testdata/dir2/file2: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/a.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/utils/dirtree/testdata/fs/data: -------------------------------------------------------------------------------- 1 | data 2 | -------------------------------------------------------------------------------- /api/utils/tarutils/testdata/dir/link: -------------------------------------------------------------------------------- 1 | ../file -------------------------------------------------------------------------------- /api/utils/tarutils/testdata/dir/regular: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/utils/tarutils/testdata/dir/subdir/file: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cmds/ocm/testdata/env.values: -------------------------------------------------------------------------------- 1 | 2 | INFO: info -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/.joonix: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/helm.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/mast/a.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/mast/b.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/mast/c.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/rudder.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/tiller.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/tech/git/testdata/repo/file_in_repo: -------------------------------------------------------------------------------- 1 | Foobar -------------------------------------------------------------------------------- /api/utils/dirtree/testdata/fs/dir/file: -------------------------------------------------------------------------------- 1 | data 2 | -------------------------------------------------------------------------------- /api/utils/tarutils/testdata/dir/dirlink: -------------------------------------------------------------------------------- 1 | ../dir2 -------------------------------------------------------------------------------- /cmds/ocm/app/testdata/attr.yaml: -------------------------------------------------------------------------------- 1 | mode: shortHash -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/cargo/a.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/cargo/b.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/cargo/c.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cmds/ocm/testdata/testcontent: -------------------------------------------------------------------------------- 1 | this is test content -------------------------------------------------------------------------------- /hack/collapse/.gitignore: -------------------------------------------------------------------------------- 1 | test_example_collapsible.md -------------------------------------------------------------------------------- /api/helper/env/testdata/testfile.txt: -------------------------------------------------------------------------------- 1 | this is some test data -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/templates/.dotfile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/utils/blobaccess/git/testdata/repo/file_in_repo: -------------------------------------------------------------------------------- 1 | Foobar -------------------------------------------------------------------------------- /api/utils/compression/fixtures/Hello.uncompressed: -------------------------------------------------------------------------------- 1 | Hello -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/cli/download/testdata/bin/ocm: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /examples/make/.gitignore: -------------------------------------------------------------------------------- 1 | *.sw[pq] 2 | /local 3 | /gen 4 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/cli/download/testdata/bin/ocm.exe: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cmds/ocm/testhelper/testdata/testfile.txt: -------------------------------------------------------------------------------- 1 | this is some test data -------------------------------------------------------------------------------- /components/helmdemo/examples/config.yaml: -------------------------------------------------------------------------------- 1 | namespace: myechoserver -------------------------------------------------------------------------------- /.github/secret_scanning.yml: -------------------------------------------------------------------------------- 1 | paths-ignore: 2 | - "**/testdata" 3 | -------------------------------------------------------------------------------- /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/utils/blobaccess/git/testdata/repo/dir/file_in_dir_in_repo: -------------------------------------------------------------------------------- 1 | Foobar -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/helmblob/testdata/testchart1/.idea/somefile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/ocm/elements/artifactblob/helmblob/testdata/testchart2/.idea/somefile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/ocm/extensions/accessmethods/git/testdata/repo/file_in_repo: -------------------------------------------------------------------------------- 1 | Foobar -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/testchart/.idea/somefile: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/sourceconfig/add/testdata/testcontent: -------------------------------------------------------------------------------- 1 | some data -------------------------------------------------------------------------------- /hack/brew/go.mod: -------------------------------------------------------------------------------- 1 | module ocm.software/ocm/hack/brew 2 | 3 | go 1.25.4 4 | -------------------------------------------------------------------------------- /api/oci/ociutils/helm/testdata/testchart.prov: -------------------------------------------------------------------------------- 1 | --- 2 | data: some provider data -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/virtual/testdata/blobs/blob1: -------------------------------------------------------------------------------- 1 | my test data 2 | -------------------------------------------------------------------------------- /cmds/demoplugin/valuesets/testdata/demo: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | go run ../main.go "$@" -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/options/optutils/testdata/config: -------------------------------------------------------------------------------- 1 | name: Name -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resourceconfig/add/testdata/testcontent: -------------------------------------------------------------------------------- 1 | some data -------------------------------------------------------------------------------- /api/ocm/cpi/README.md: -------------------------------------------------------------------------------- 1 | # Context Provider Interface for Component Repositories 2 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/blueprint/testdata/blueprint/test/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cmds/ocm/commands/controllercmds/install/testdata/install.yaml: -------------------------------------------------------------------------------- 1 | test: content 2 | -------------------------------------------------------------------------------- /cmds/ocm/commands/controllercmds/uninstall/testdata/install.yaml: -------------------------------------------------------------------------------- 1 | test: content 2 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/testcontent: -------------------------------------------------------------------------------- 1 | this is some test data -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/sources/add/testdata/testcontent: -------------------------------------------------------------------------------- 1 | this is some test data -------------------------------------------------------------------------------- /api/config/cpi/README.md: -------------------------------------------------------------------------------- 1 | # Context Provider Interface for context configurations 2 | -------------------------------------------------------------------------------- /api/credentials/cpi/README.md: -------------------------------------------------------------------------------- 1 | # Context Provider Interface for credential providers 2 | -------------------------------------------------------------------------------- /api/oci/ociutils/helm/ignore/testdata/.helmignore: -------------------------------------------------------------------------------- 1 | mast/a.txt 2 | .DS_Store 3 | .git 4 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/dirtree/testdata/layers/0/testfile: -------------------------------------------------------------------------------- 1 | testdata 2 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/dirtree/testdata/layers/all/testfile: -------------------------------------------------------------------------------- 1 | testdata 2 | -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/virtual/testdata/blobs/blob2: -------------------------------------------------------------------------------- 1 | my second test data 2 | -------------------------------------------------------------------------------- /api/ocm/tools/transfer/debug.go: -------------------------------------------------------------------------------- 1 | package transfer 2 | 3 | var Breakpoints = false 4 | -------------------------------------------------------------------------------- /cmds/cliplugin/cmds/testdata/plugins/cliplugin: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | go run ../main.go "$@" -------------------------------------------------------------------------------- /cmds/demoplugin/common/const.go: -------------------------------------------------------------------------------- 1 | package common 2 | 3 | const CONSUMER_TYPE = "demo" 4 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/common/inputs/types/spiff/testdata/subdir/include.yaml: -------------------------------------------------------------------------------- 1 | bob: 26 -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/components/add/testdata/testdata: -------------------------------------------------------------------------------- 1 | this is some testdata 2 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/spiffcontent: -------------------------------------------------------------------------------- 1 | data: (( values.IMAGE )) -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/download/testdata/layers/0/testfile: -------------------------------------------------------------------------------- 1 | testdata 2 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/download/testdata/layers/all/testfile: -------------------------------------------------------------------------------- 1 | testdata 2 | -------------------------------------------------------------------------------- /cmds/subcmdplugin/cmds/testdata/plugins/cliplugin: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | go run ../main.go "$@" -------------------------------------------------------------------------------- /api/oci/cpi/README.md: -------------------------------------------------------------------------------- 1 | # Context Provider Interface for Repository with OCI-Artifact-Data 2 | -------------------------------------------------------------------------------- /api/ocm/extensions/repositories/comparch/testdata/directory/blobs/root/testfile: -------------------------------------------------------------------------------- 1 | testdata 2 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/cli/download/testdata/other/dummy: -------------------------------------------------------------------------------- 1 | just to checkin a directory in git -------------------------------------------------------------------------------- /examples/lib/tour/doc.go: -------------------------------------------------------------------------------- 1 | //go:generate mdref --headings docsrc . 2 | 3 | package tour 4 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/dirtree/testdata/layers/1/dir/nestedfile: -------------------------------------------------------------------------------- 1 | other test data 2 | -------------------------------------------------------------------------------- /api/utils/misc/const.go: -------------------------------------------------------------------------------- 1 | package misc 2 | 3 | const OCM_TYPE_GROUP_SUFFIX = ".ocm.software" 4 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/download/testdata/layers/1/dir/nestedfile: -------------------------------------------------------------------------------- 1 | other test data 2 | -------------------------------------------------------------------------------- /examples/make/content/contrib/someother: -------------------------------------------------------------------------------- 1 | same other data 2 | new data 3 | fixifixi 4 | yeah 5 | -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/dirtree/testdata/layers/all/dir/nestedfile: -------------------------------------------------------------------------------- 1 | other test data 2 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /cmds/cliplugin/cmds/testdata/err.yaml: -------------------------------------------------------------------------------- 1 | type: err.config.acme.org 2 | start: jul/1 3 | end: jul/31 4 | -------------------------------------------------------------------------------- /cmds/ocm/commands/cachecmds/names/names.go: -------------------------------------------------------------------------------- 1 | package names 2 | 3 | var Cache = []string{"cache"} 4 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/download/testdata/layers/all/dir/nestedfile: -------------------------------------------------------------------------------- 1 | other test data 2 | -------------------------------------------------------------------------------- /api/ocm/ocmutils/localize/testdata/dir/some.json: -------------------------------------------------------------------------------- 1 | { "manifest": { "value1": "orig1", "value2": "orig2" }} -------------------------------------------------------------------------------- /cmds/cliplugin/testdata/config.yaml: -------------------------------------------------------------------------------- 1 | type: rhabarber.config.acme.org 2 | start: jul/1 3 | end: jul/31 4 | -------------------------------------------------------------------------------- /version.go: -------------------------------------------------------------------------------- 1 | package ocm 2 | 3 | import _ "embed" 4 | 5 | //go:embed VERSION 6 | var Version string 7 | -------------------------------------------------------------------------------- /.github/config/markdownignore: -------------------------------------------------------------------------------- 1 | examples/lib/tour/0* 2 | docs/reference 3 | docs/pluginreference 4 | hack/collapse/* -------------------------------------------------------------------------------- /cmds/cliplugin/cmds/testdata/config.yaml: -------------------------------------------------------------------------------- 1 | type: rhabarber.config.acme.org 2 | start: jul/1 3 | end: jul/31 4 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/components/transfer/ctf.copy/artifact-index.json: -------------------------------------------------------------------------------- 1 | {"schemaVersion":1,"artifacts":null} -------------------------------------------------------------------------------- /examples/lib/area-ocm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/examples/lib/area-ocm.png -------------------------------------------------------------------------------- /examples/make/content/contrib/bin/validate: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | echo this is an additional validation step 4 | -------------------------------------------------------------------------------- /cmds/ocm/commands/controllercmds/names/names.go: -------------------------------------------------------------------------------- 1 | package names 2 | 3 | var Controller = []string{"controller"} 4 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/references/add/testdata/settings: -------------------------------------------------------------------------------- 1 | # 2 | # name of generated content file 3 | VERSION: v1.1.1 -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/sources/add/testdata/settings: -------------------------------------------------------------------------------- 1 | # 2 | # name of generated content file 3 | CONTENT: testcontent -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/testdata/settings: -------------------------------------------------------------------------------- 1 | # 2 | # name of generated content file 3 | CONTENT: testcontent -------------------------------------------------------------------------------- /examples/lib/functionalarea.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/examples/lib/functionalarea.png -------------------------------------------------------------------------------- /hack/generate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | echo "> Generate" 6 | 7 | GO111MODULE=on go generate -mod=mod $@ 8 | -------------------------------------------------------------------------------- /api/tech/maven/maventest/testdata/.m2/fail/test/repository/42/repository-42.pom.sha1: -------------------------------------------------------------------------------- 1 | 44a77645201d1a8fc5213ace787c220eabbd0967 -------------------------------------------------------------------------------- /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) )) -------------------------------------------------------------------------------- /api/oci/extensions/attrs/init.go: -------------------------------------------------------------------------------- 1 | package attrs 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/oci/extensions/attrs/cacheattr" 5 | ) 6 | -------------------------------------------------------------------------------- /api/ocm/cpi/repocpi/ocmimpllayers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/api/ocm/cpi/repocpi/ocmimpllayers.png -------------------------------------------------------------------------------- /api/ocm/plugin/internal/valueset.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | type ValueSetInfo struct { 4 | Short string `json:"description"` 5 | } 6 | -------------------------------------------------------------------------------- /api/utils/compression/fixtures/Hello.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/api/utils/compression/fixtures/Hello.gz -------------------------------------------------------------------------------- /api/utils/compression/fixtures/Hello.xz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/api/utils/compression/fixtures/Hello.xz -------------------------------------------------------------------------------- /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/common/processing/utils.go: -------------------------------------------------------------------------------- 1 | package processing 2 | 3 | func IdentityMapper(e interface{}) interface{} { 4 | return e 5 | } 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /docs/development/context-structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/docs/development/context-structure.png -------------------------------------------------------------------------------- /api/ocm/elements/artifacts.go: -------------------------------------------------------------------------------- 1 | package elements 2 | 3 | type ArtifactOption interface { 4 | ResourceMetaOption 5 | SourceMetaOption 6 | } 7 | -------------------------------------------------------------------------------- /api/utils/compression/fixtures/Hello.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/api/utils/compression/fixtures/Hello.bz2 -------------------------------------------------------------------------------- /api/utils/compression/fixtures/Hello.zst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/api/utils/compression/fixtures/Hello.zst -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/cli/download/is_windows.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | 3 | package download 4 | 5 | const EXECUTABLE_SUFFIX = ".exe" 6 | -------------------------------------------------------------------------------- /components/demoplugin/bindings.yaml: -------------------------------------------------------------------------------- 1 | values: 2 | GEN: ../../gen/demoplugin 3 | PLATFORMS: linux/amd64 linux/arm64 4 | VERSION: "1.0" 5 | -------------------------------------------------------------------------------- /components/helmdemo/examples/creds.yaml: -------------------------------------------------------------------------------- 1 | credentials: 2 | target: 3 | credentials: 4 | KUBECONFIG: (( read("~/k8s/CLUSTERS/test") )) -------------------------------------------------------------------------------- /api/datacontext/context-refcount-model.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/api/datacontext/context-refcount-model.png -------------------------------------------------------------------------------- /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/plugin/internal/action.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | type ActionSpecInfo struct { 4 | Name string 5 | Arguments interface{} 6 | } 7 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /cmds/ocm/app/testdata/logcfg.yaml: -------------------------------------------------------------------------------- 1 | defaultLevel: Warn 2 | rules: 3 | - rule: 4 | level: Debug 5 | conditions: 6 | - realm: test -------------------------------------------------------------------------------- /examples/lib/helper/settings.yaml: -------------------------------------------------------------------------------- 1 | username: mandelsoft 2 | password: ghp_xyz 3 | component: github.com/mandelsoft/examples/cred1 4 | version: 0.1.0 -------------------------------------------------------------------------------- /api/ocm/tools/transfer/transferhandler/standard/testdata/v0.18.0/blobs/sha256.916f0027a575074ce72a331777c3478d6513f786a591bd892da1a577bf2335f9: -------------------------------------------------------------------------------- 1 | test data -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/pubsub/providers/init.go: -------------------------------------------------------------------------------- 1 | package providers 2 | 3 | import ( 4 | _ "ocm.software/ocm/api/ocm/extensions/pubsub/providers/ocireg" 5 | ) 6 | -------------------------------------------------------------------------------- /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/utils/cobrautils/logopts/logging/global.go: -------------------------------------------------------------------------------- 1 | package logging 2 | 3 | var ( 4 | GlobalLogFile *LogFile 5 | GlobalLogFileOverride string 6 | ) 7 | -------------------------------------------------------------------------------- /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/references/add/testdata/references.tmpl: -------------------------------------------------------------------------------- 1 | --- 2 | name: testdata 3 | componentName: github.com/mandelsoft/ref 4 | version: ${VERSION} -------------------------------------------------------------------------------- /cmds/ocm/testdata/resources.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | name: testdata 3 | type: PlainText 4 | input: 5 | type: file 6 | path: testcontent 7 | mediaType: text/plain -------------------------------------------------------------------------------- /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/tools/signing/signingtest/testdata/compat/component-archive/blobs/sha256.c893900c1106f13d55648a425f502dd6518e40eaa3ac7d24023d4c73d55dc12e: -------------------------------------------------------------------------------- 1 | this is test data -------------------------------------------------------------------------------- /api/ocm/tools/transfer/transferhandler/standard/testdata/v0.18.0/blobs/sha256.920ce99fb13b43ca0408caee6e61f6335ea5156d79aa98e733e1ed2393e0f649: -------------------------------------------------------------------------------- 1 | extended test data -------------------------------------------------------------------------------- /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/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/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/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 | -------------------------------------------------------------------------------- /components/subchartsdemo/podinfo/podinfo-6.3.5.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/components/subchartsdemo/podinfo/podinfo-6.3.5.tgz -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /docs/development/ocm-cli-package-structure.drawio.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/docs/development/ocm-cli-package-structure.drawio.png -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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/extensions/accessmethods/s3/testdata/repo.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/api/ocm/extensions/accessmethods/s3/testdata/repo.tar.gz -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /examples/make/content/config.yaml: -------------------------------------------------------------------------------- 1 | 2 | landscape: 3 | version: 1.0.0 4 | name: "<<>>" 5 | domain: newdefault 6 | iaas: 7 | type: "<<>>" 8 | -------------------------------------------------------------------------------- /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.sha1: -------------------------------------------------------------------------------- 1 | dbabd43828eccd27e3a109b58454e4ff43c8673e -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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/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/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/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 -------------------------------------------------------------------------------- /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/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/ocm/extensions/accessmethods/github/testdata/repo.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/api/ocm/extensions/accessmethods/github/testdata/repo.tar.gz -------------------------------------------------------------------------------- /api/tech/npm/npmtest/testdata/content/yargs/yargs-17.7.1.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/api/tech/npm/npmtest/testdata/content/yargs/yargs-17.7.1.tgz -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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/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 -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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/extensions/blobhandler/handlers/generic/npm/testdata/testdata.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/api/ocm/extensions/blobhandler/handlers/generic/npm/testdata/testdata.tgz -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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/download/handlers/helm/testdata/test-chart-oci-artifact.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/api/ocm/extensions/download/handlers/helm/testdata/test-chart-oci-artifact.tgz -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/ocm/extensions/download/handlers/helm/testdata/legacy-pre-hip-helm-chart.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/api/ocm/extensions/download/handlers/helm/testdata/legacy-pre-hip-helm-chart.tgz -------------------------------------------------------------------------------- /api/ocm/extensions/download/handlers/helm/testdata/unusual-ordered-helm-chart.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/open-component-model/ocm/HEAD/api/ocm/extensions/download/handlers/helm/testdata/unusual-ordered-helm-chart.tgz -------------------------------------------------------------------------------- /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/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 -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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/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/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 -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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/HEAD/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/HEAD/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/maxworkersattr/suite_test.go: -------------------------------------------------------------------------------- 1 | package maxworkersattr_test 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/onsi/ginkgo/v2" 7 | . "github.com/onsi/gomega" 8 | ) 9 | 10 | func TestMaxWorkers(t *testing.T) { 11 | RegisterFailHandler(Fail) 12 | RunSpecs(t, "MaxWorkers 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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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/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/preferrelativeattr/suite_test.go: -------------------------------------------------------------------------------- 1 | package preferrelativeattr_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 Prefer Relative Access Attribute") 13 | } 14 | -------------------------------------------------------------------------------- /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/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/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/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 | -------------------------------------------------------------------------------- /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/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/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 -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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/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 -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/ocm/extensions/blobhandler/handlers/oci/ocirepo/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 Uploader forOCI OCM Repositories Test Suite") 13 | } 14 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /.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 -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /.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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 13 | - name: REUSE Compliance Check 14 | uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0 -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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" -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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" -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /cmds/ocm/commands/ocmcmds/resources/add/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/ocm/extensions/download/logging.go: -------------------------------------------------------------------------------- 1 | package download 2 | 3 | import ( 4 | "github.com/mandelsoft/logging" 5 | 6 | ocmlog "ocm.software/ocm/api/utils/logging" 7 | ) 8 | 9 | var REALM = ocmlog.DefineSubRealm("Downloaders", "downloader") 10 | 11 | func Logger(ctx logging.ContextProvider, messageContext ...logging.MessageContext) logging.Logger { 12 | return ctx.LoggingContext().Logger(append([]logging.MessageContext{REALM}, messageContext...)) 13 | } 14 | -------------------------------------------------------------------------------- /cmds/ocm/testdata/sources.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | sources: 3 | - name: testdata 4 | type: git 5 | input: 6 | type: file 7 | path: testcontent 8 | mediaType: text/plain 9 | - name: 'myothersrc' 10 | type: 'git' 11 | input: 12 | type: "dir" 13 | path: . 14 | compress: true # defaults to false 15 | excludeFiles: 16 | - "*.yaml" 17 | preserveDir: false # optional, defaulted to false; if true, the top level folder "my/path" is included -------------------------------------------------------------------------------- /cmds/subcmdplugin/cmds/group/cmd.go: -------------------------------------------------------------------------------- 1 | package group 2 | 3 | import ( 4 | "github.com/spf13/cobra" 5 | 6 | "ocm.software/ocm/cmds/subcmdplugin/cmds/demo" 7 | ) 8 | 9 | const Name = "group" 10 | 11 | func New() *cobra.Command { 12 | cmd := &cobra.Command{ 13 | Use: Name + " ", 14 | Short: "a provided command group", 15 | Long: "A provided command group with a demo command", 16 | } 17 | 18 | cmd.AddCommand(demo.New()) 19 | return cmd 20 | } 21 | --------------------------------------------------------------------------------