3 unstable releases

Uses old Rust 2015

0.2.0 Apr 26, 2017
0.1.1 Sep 9, 2016
0.1.0 Sep 7, 2016

#1670 in Asynchronous

MIT license

15KB
191 lines

scuttlebutt Build Status Coverage Status Software License

Listen in on all the gossip going on in your kubernetes cluster

Documentation

install

Add the following to your Cargo.toml file

[dependencies]
scuttlebutt = "0.2"

usage

Central to scuttlebutt is a cluster. Clusters provide an interface for feeding off of kubernetes events via a Receiver.

The default use case is to connect to a kubernetes cluster behind kube-proxy. This interface may be extended to run outside a cluster with a set of kubeconfig credentials in the future.

extern crate scuttlebutt;
use scuttlebutt::{Cluster, Events};

fn main() {
    match Cluster::new().events() {
           Ok(events) => {
               for e in events.into_iter() {
                   println!("{:#?}", e)
               }
           }
           Err(e) => println!("{:#?}", e),
       }
}

Doug Tangren (softprops) 2016-2017

Dependencies

~8MB
~192K SLoC