Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jimmycuadra/rust-fleet
A Rust client library for fleet.
https://github.com/jimmycuadra/rust-fleet
client coreos fleet library rust systemd
Last synced: 2 months ago
JSON representation
A Rust client library for fleet.
- Host: GitHub
- URL: https://github.com/jimmycuadra/rust-fleet
- Owner: jimmycuadra
- License: mit
- Created: 2015-03-06T09:45:52.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-19T09:39:15.000Z (almost 10 years ago)
- Last Synced: 2024-11-13T18:47:43.347Z (3 months ago)
- Topics: client, coreos, fleet, library, rust, systemd
- Language: Rust
- Size: 242 KB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fleet
A Rust client library for [fleet](https://github.com/coreos/fleet).
## Documentation
https://jimmycuadra.github.io/rust-fleet/fleet/
## Example
``` rust
extern crate fleet;use fleet::Client;
let client = Client::new("http://localhost:2999");
match client.list_units() {
Ok(unit_page) => {
for unit in unit_page.units {
println!("{}", unit.name);
}
},
None => println!("No units in fleet!"),
};
```## Running the tests
The test suite includes integration tests that assume the fleet API to be running on localhost:2999. A Vagrant environment for this is provided. Simply follow these steps:
1. Install Vagrant.
1. `vagrant up`
1. `vagrant ssh`
1. `cd share`
1. `docker run -it --rm -v $(pwd):/source --net host jimmycuadra/rust`
1. `cargo test`# License
[MIT](http://opensource.org/licenses/MIT)