#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

#896 in Encoding

Download history 11/week @ 2024-08-09 14/week @ 2024-08-16 25/week @ 2024-09-20 18/week @ 2024-09-27 28/week @ 2024-10-04 11/week @ 2024-10-11 37/week @ 2024-10-18 10/week @ 2024-10-25

88 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