#kubernetes #command-line #serde-json #cli #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

#39 in #kubernetes

Download history 41/week @ 2024-01-22 55/week @ 2024-01-29 26/week @ 2024-02-05 98/week @ 2024-02-19 68/week @ 2024-02-26 176/week @ 2024-03-04 65/week @ 2024-03-11 13/week @ 2024-03-18 37/week @ 2024-04-01

123 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.5MB
~35K SLoC