Type Alias PullOptionsBuilder

Source
pub type PullOptionsBuilder = PullOptionsBuilder;
👎Deprecated since 0.8.0: Please use docker_sdk::image::PullOptionsBuilder. This will be removed in 0.9.0.

Aliased Type§

pub struct PullOptionsBuilder { /* private fields */ }

Implementations

Source§

impl PullOptionsBuilder

Source

pub fn image<I>(&mut self, img: I) -> &mut Self
where I: Into<String>,

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.

Source

pub fn src<S>(&mut self, s: S) -> &mut Self
where S: Into<String>,

Source

pub fn repo<R>(&mut self, r: R) -> &mut Self
where R: Into<String>,

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.

By default a latest tag is added when calling PullOptionsBuilder::default(PullOptionsBuilder::default].

Source

pub fn tag<T>(&mut self, t: T) -> &mut Self
where T: Into<String>,

Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled.

Source

pub fn auth(&mut self, auth: RegistryAuth) -> &mut Self

Source

pub fn build(&mut self) -> PullOptions

Trait Implementations

Source§

impl Default for PullOptionsBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more