This repository implements:
- The CAS-Engine Protocols in
read/registry.go
. - A generic interface used by the registry in
read/interface.go
. - The OCI CAS Template Protocol in
read/template
.
There are command-line bindings in oci-cas
, which reads a CAS-engine configurations from stdin, resolves digests given as arguments, and writes their verified content to stdout.
$ cat cas-engines.json
[
{
"config": {
"protocol": "oci-cas-template-v1",
"uri": "cas/{algorithm}/{encoded}"
},
"uri": "https://example.com"
}
]
$ oci-cas get sha256:c98c24b677eff44860afea6f493bbaec5bb1c4cbb209c6fc2bbb47f66ff2ad31 <cas-engines.json
Hello, World!
For more information, see oci-cas help
.