#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

#842 in Encoding

Download history 1/week @ 2024-07-04 6/week @ 2024-08-08 19/week @ 2024-08-15 24/week @ 2024-09-19 17/week @ 2024-09-26 23/week @ 2024-10-03 16/week @ 2024-10-10 28/week @ 2024-10-17

93 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