scuttlebutt

A Rust interface for kubernetes events


Keywords
hyper, kubernetes, k8s
License
MIT

Documentation

scuttlebutt Build Status Coverage Status Software License crates.io

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