oras 2.2.0

OCI Registry As Storage


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

ORAS Client

<img src="https://github.com/skoppe/oras/workflows/test/badge.svg"/>

Client for OCI-registry-as-storage

Push and pull blobs to an oras compatible registry.

See oras.land for more information.

Push-Pull Example

import oras;

auto client = Client(Config("http://localhost:5000"));
auto name = Name("org/name");
ubyte[] bytes = [8,7,6,5,4,3,2,1];

auto push = client.push(name, Tag("v1.2.3"), (ref session) {
        auto layer = bytes.toBlob
            .toAnnotatedLayer("application/octet-stream")
            .withFilename("hex.bin");
        session.pushLayer(layer);
        return session.finish();
    })
    .get!(PushResult);

auto pull = client.pull(name, Reference(result.digest), (ref session) {
        return session.pullLayer(session.layers[0]);
    })
    .get!(BlobResponse!(Client.Transport.ByteStream));

pull.body.front.should == [8,7,6,5,4,3,2,1];
Authors:
  • skoppe
Dependencies:
mir-core, requests, mir-ion, mir-algorithm
Versions:
2.2.0 2022-Dec-14
2.1.0 2022-Dec-12
2.0.0 2022-Dec-08
1.0.0 2022-Dec-06
~master 2022-Dec-14
Show all 7 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 76 downloads total

Score:
0.5
Short URL:
oras.dub.pm