Skip to content

flouthoc/oci_lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oci_lib

Oci-Spec for your container runtime or container registry.


Most of the code is mirrored from upstream libocispec

Oci-lib is a rust port for original oci spec written in go. Following crate contains rust equivalent spec for OCI Image Format Specification ( https://github.com/opencontainers/image-spec ) and OCI Runtime format specification (https://github.com/opencontainers/runtime-spec).

Motivation

Initially written as a dependency for vas-quod ( https://github.com/flouthoc/vas-quod ).

Usage

extern crate oci_lib;
use oci_lib::runtime;
use oci_lib::image;

fn main() {
    let runtime_spec = match runtime::Spec::load("path") {
        Ok(spec) => spec,
        Err(e) => panic!("{}", e),
    }
    let image_spec = match image::ImageConfig::load("path") {
        Ok(spec) => spec,
        Err(e) => panic!("{}", e),
    }
}

References

About

oci-image and oci-runtime spec in rust. Un-official mirror of libocispec.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published