Age | Commit message (Collapse) | Author |
|
|
|
|
|
* 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).
|
|
Add missing fields to `rep::Container`:
- `image_id` (`ImageID`, API version 1.21)
- `state` (`State`, API version 1.23)
|
|
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
|
|
|
|
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
|
|
* Add 'copy_from' function to 'Container'
* Run clippy
* Update deps
|
|
* update to 2018 edition
* remove more externs
* bump version
|
|
|
|
* 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
|
|
* Added the 'expose' function to ContainerOptionBuilder impl. (Closes #73, Replaces #74)
* Forgot the , nevermind :ok_hand:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Image.RepoTags seems to be optional (can be null)
|
|
Add details entries for container networks
|
|
Remove swap fields from MemoryStat
|
|
These appear to be around since Docker Engine API v1.22:
https://docs.docker.com/engine/api/v1.22/
|
|
|
|
|
|
|
|
Solution to the MissingFieldError problem on /images/search.
|
|
feat: support --memory
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
"id" and "status" are not present in network events.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|