summaryrefslogtreecommitdiffstats
path: root/src/rep.rs
AgeCommit message (Collapse)Author
2019-12-26Expand rep::Version (#212)Colvin Wellborn
* expand the fields of Version Expands `shiplift::rep::Version` to contain fields for the following elements of the `/version` API: - `min_api_version` (`MinAPIVersion`) - `os` (`Os`) - `arch` (`Arch`) - `kernel_version` (`KernelVersion`) - `build_time` (`BuildTime`) Adds a new example program to display version information. * order version fields according to api docs * remove min_api_version For backwards compat with older engines, remove the `min_api_version` field. It was apparently added in API version `1.25.0` (circa 2017).
2019-12-18expand rep::Container fields (#213)Colvin Wellborn
Add missing fields to `rep::Container`: - `image_id` (`ImageID`, API version 1.21) - `state` (`State`, API version 1.23)
2019-10-13Correctly rename `endpoint_id` field (#196)Pit
The `endpoint_id` field is stylized as `EndpointID` in the Docker API when returning container-details for a network ([1]). [1]: https://docs.docker.com/engine/api/v1.24/#35-networks
2019-09-14feat: use chrono to deserialize date times (#190)Marc Schreiber
2019-02-22Migrate serde dependency to use derive feature (#152)Vegard Sandengen
This is in line with best practices recommended by serde[1]. This will also resolve downstream crates depending on shiplift who enable the serde derive feature, due to Cargos unification of features for each crate[2]. [1]: https://github.com/serde-rs/serde/issues/1441 [2]: https://github.com/rust-lang/cargo/issues/4361#issuecomment-348538243
2019-02-13Copy from container (#150)Andy Caldwell
* Add 'copy_from' function to 'Container' * Run clippy * Update deps
2018-12-24update to 2018 edition (#141)doug tangren
* update to 2018 edition * remove more externs * bump version
2018-12-22feat: create, list, and delete volumes (#138)Marc Schreiber
2018-11-14Async api (#128)Antoine Büsch
* Refactored Transport for better async use Still a bit rough, but it now builds a big future using combinators. It still does one `Runtime::block_on()` to keep the existing API, but this is a first up before making the whole API async. * Migrate most APIs to be Future-based I still need to finish a few of the more tricky ones that I've commented out for now, but most of it compiles and some examples work. In particular, `Docker::stats()` now properly returns an async stream of stats. * Fix events and containerinspect examples * Fix imageinspect, images, info and top examples * Fix containercreate, imagedelete and imagepull examples * Fix more examples * Add back debug statement in Transport::request * De-glob imports in examples * Remove unused imports in examples * Fix NetworkCreateOptions serialization * Add back error message extraction in Transport * Fix Container::create serialization of options * Add containerdelete example * Simplify result * Fix some error handling to remove unwrap() * Fix Image::export() * Fix imagebuild example * Add adapter from Stream of Chunks to AsyncRead Having an `AsyncRead` is required to be able to use the `FramedRead` and `Decoder` stuff from tokio_codec. This code is "borrowed" from https:/github.com/ferristseng/rust-ipfs-api though should probably be moved to its own crate or to tokio_codec. * Fix Container::logs() It now properly demuxes stdout/stderr, and returns a `Stream<Item = TtyLine>`. * Fix Container::export() * Use LineCodec for streaming JSON Although in my limited testing it seemed to work fine, there is no guarantee that 1 chunk == 1 piece of valid JSON. However, each JSON structure seems to be serialized on one line, so use LineCodec to turn the body into a stream of lines, then deserialize over this. * Fix serialization of ExecContainerOptions * Fix Container::exec() (kind of...) * Simplify deserialisation in Image::delete() * Small clean-ups * More clean ups * Fix rustdoc + remove extraneous "extern crate" * Fix doc example * Fix formatting
2018-10-17[OK] Expose port (#127)Nurrl
* Added the 'expose' function to ContainerOptionBuilder impl. (Closes #73, Replaces #74) * Forgot the , nevermind :ok_hand:
2018-10-10fix a number of clippy warnings (#122)doug tangren
2018-10-08try to get a consistent and repeatable codestyle goingsoftprops
2018-10-07Fix OOMKilled nameAntoine Büsch
2018-10-07Fix some attributes namesAntoine Büsch
2018-10-07Rename fields from rep structs to use snake caseAntoine Büsch
2018-10-07Merge branch 'master' into serdeAntoine Büsch
2018-10-02Fixes a crash when the Docker API returns the 'Labels' value as 'null'Leon ROUX
2018-10-01Migrate to serde_jsonAntoine Büsch
2018-09-29Merge pull request #95 from abusch/image_repoTag_optionaldoug tangren
Image.RepoTags seems to be optional (can be null)
2018-09-29Merge pull request #97 from fkrull/add-network-entrydoug tangren
Add details entries for container networks
2018-09-29Merge pull request #96 from fkrull/remove-swap-fielddoug tangren
Remove swap fields from MemoryStat
2018-09-29Add new event info fields (Type, Action, Actor) to EventFelix Krull
These appear to be around since Docker Engine API v1.22: https://docs.docker.com/engine/api/v1.22/
2018-09-29Add details entries for container networksFelix Krull
2018-09-29Remove swap fields from MemoryStatFelix Krull
2018-09-29Image.RepoTags seems to be optional (can be null)Antoine Büsch
2018-09-29Merge pull request #89 from ic/search_rep_fixdoug tangren
Solution to the MissingFieldError problem on /images/search.
2018-09-29Merge pull request #86 from schrieveslaach/masterdoug tangren
feat: support --memory
2018-09-27Add Name field to inspect resultFelix Krull
2018-08-22Attempt to solve the MissingFieldError problem.Eric Platon
2018-07-18feat: support --memoryMarc Schreiber
2018-02-20feat: Use serde instead of rustc-serializeJacob ZAK
2017-09-07Return RustcSerialize types instead of local types. Fixes softprops/shiplift#65Pete Hayes
2017-04-20Make rep-types clonablePit Kleyersburg
2017-04-03Add support for docker networksAlexander Kirillov
commit 55008eea85dace74acc625914e11d87d15a46b1e Author: Alexander Kirillov <saratovsource@gmail.com> Date: Mon Apr 3 22:47:34 2017 +0400 Some DRY commit c9173593eb9827b30071cb6e42d439ec3d4c3bb1 Author: Alexander Kirillov <saratovsource@gmail.com> Date: Mon Apr 3 22:42:35 2017 +0400 Connect container to network commit 8d68406ef4c69c98e43b7b28923a78e1e9672955 Author: Alexander Kirillov <saratovsource@gmail.com> Date: Mon Apr 3 22:09:58 2017 +0400 Create docker network commit 868e2076988c0b16f6d5a200cf12e77f5bffaeab Author: Alexander Kirillov <saratovsource@gmail.com> Date: Mon Apr 3 18:49:12 2017 +0400 Delete network commit 58a08e77e5984847589eeb35bc097c8949752619 Author: Alexander Kirillov <saratovsource@gmail.com> Date: Mon Apr 3 18:42:28 2017 +0400 Add inspect docker network commit 9fa4143013aa43aaf73645b19565d6e606489952 Author: Alexander Kirillov <saratovsource@gmail.com> Date: Mon Apr 3 18:03:02 2017 +0400 Add list networks
2017-01-16Add support for status replies from build commandPete Hayes
2017-01-06OnBuild option is an array now.Mārtiņš Šulcs
2017-01-02raw size is always returned as non useful -1 in listingsoftprops
2017-01-02this field is not always presentsoftprops
2017-01-02ExecutionDriver no longer exists in remote apisoftprops
2016-12-26Make id and status optional for eventsRoey Darwish Dror
"id" and "status" are not present in network events.
2016-07-11ExecDriver field no longer exists (API version 1.23)Greg Weber
2016-01-18rust fmtsoftprops
2016-01-18cleanupsoftprops
2016-01-18massive progresssoftprops
2016-01-03images should have labels... sometimessoftprops
2016-01-03flesh out more container detailssoftprops
2016-01-03more examplessoftprops
2016-01-03rustfmtsoftprops
2016-01-03these are optionalsoftprops
2016-01-03less unwrappingsoftprops