#kubernetes #serde-json #command-line #management #output #access #crictl

libcrio

A wrapper around the crictl cli to return serde_json objects

14 releases (8 stable)

2.1.0 Mar 6, 2024
2.0.0 May 27, 2022
1.4.0 Jan 25, 2022
0.2.0 Jan 23, 2022
0.1.5 Jan 22, 2022

#888 in Encoding

50 downloads per month

Apache-2.0

31KB
565 lines

libcrio

A library wrapping the crictl

libcrio crate libcrio documentation build status

With the libcrio, developers can programatically access the output of the crictl commandline without having to map directly to specific versions of crictl. Useful when you need to support multiple kubernetes flavours.

Used in IBM Core-Dump-Handler - A core management system for kubernetes.

Documentation

Using libcrio

libcrio is available on crates.io. The recommended way to use it is to add a line into your Cargo.toml such as:

[dependencies]
libcrio = "2.0.0"

Then use libcrio::Cli; in your code wherever you want to call the crictl client.

Dependencies

~0.7–1.7MB
~36K SLoC