3 releases
Uses old Rust 2015
0.9.2 | Mar 8, 2017 |
---|---|
0.9.1 | Feb 13, 2017 |
0.9.0 | Feb 13, 2017 |
#12 in #watching
7KB
110 lines
Kubewatch
This library serves as a base component for Kubernetes event watching. It allows user to specify which resource should be monitored. Deserialization of events is done via Serde, thanks to it it is possible to use both dynamic on-the-fly deserialization and also beforehand generated Deserializer for specific structure.
Example
extern crate kubewatch;
extern crate serde_json;
use kubewatch::Events;
fn main() {
let cluster = kubewatch::Cluster::new("http://localhost:8080").unwrap();
let events = cluster.events::<serde_json::Value>("api/v1/pods").unwrap();
for event in events.into_iter() {
println!("{:#?}", event);
}
}
Check for more in examples/
.
TODO
- namespaces
- TLS/SSL
- filtering
Dependencies
~5.5MB
~123K SLoC