diff options
author | softprops <d.tangren@gmail.com> | 2018-12-24 14:19:48 +0900 |
---|---|---|
committer | softprops <d.tangren@gmail.com> | 2018-12-24 14:19:48 +0900 |
commit | 386d37c09073456ec17cba88f19f661324a32bdd (patch) | |
tree | 4660fa930b322a68b58db9a09b657e8b3713129d /src | |
parent | 233235645004d6694a91be14c62e16cefd6429f4 (diff) |
document images.pull behavior
Diffstat (limited to 'src')
-rw-r--r-- | src/builder.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/builder.rs b/src/builder.rs index bf7500f..63e8e92 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -43,6 +43,11 @@ pub struct PullOptionsBuilder { } impl PullOptionsBuilder { + /// Name of the image to pull. The name may include a tag or digest. + /// This parameter may only be used when pulling an image. + /// If an untagged value is provided and no `tag` is provided, _all_ + /// tags will be pulled + /// The pull is cancelled if the HTTP connection is closed. pub fn image<I>( &mut self, img: I, @@ -65,6 +70,8 @@ impl PullOptionsBuilder { self } + /// Repository name given to an image when it is imported. The repo may include a tag. + /// This parameter may only be used when importing an image. pub fn repo<R>( &mut self, r: R, @@ -76,6 +83,8 @@ impl PullOptionsBuilder { self } + /// Tag or digest. If empty when pulling an image, + /// this causes all tags for the given image to be pulled. pub fn tag<T>( &mut self, t: T, |