pub fn import<R>(
        self,
        mut tarball: R,
    ) -> impl Stream<Item = Result<Value>> + Unpin + 'docker
    where
        R: Read + Send + 'docker,
    {
        Box::pin(
            async move {
                let mut bytes = Vec::default();

                tarball.read_to_end(&mut bytes)?;

                let value_stream = self.docker.stream_post_into_values(
                    "/images/load",
                    Some((Body::from(bytes), tar())),
                    None::<iter::Empty<_>>,
                );
                Ok(value_stream)
            }
            .try_flatten_stream(),
        )
    }
/// imports an image or set of images from a given tarball source
/// source can be uncompressed on compressed via gzip, bzip2 or xz
imports an image or set of images from a given tarball source
source can be uncompressed on compressed via gzip, bzip2 or xz
imports an image or set of images from a given tarball source source can be uncompressed on compressed via gzip bzip2 or xz
pub fn import<R>(
        self,
        mut tarball: R,
    ) -> impl Stream<Item = Result<Value>> + Unpin + 'docker
    where
        R: Read + Send + 'docker,
    {
        Box::pin(
            async move {
                let mut bytes = Vec::default();
                tarball.read_to_end(&mut bytes)?;
                let value_stream = self.docker.stream_post_into_values(
                    "/images/load",
                    Some((Body::from(bytes), tar())),
                    None::<iter::Empty<_>>,
                );
                Ok(value_stream)
            }
            .try_flatten_stream(),
        )
    }
pub fn import < R > ( self , mut tarball : R , ) -> impl Stream < Item = Result < Value > > + Unpin + ' docker where R : Read + Send + ' docker , { Box :: pin ( async move { let mut bytes = Vec :: default ( ) ; tarball . read_to_end ( & mut bytes ) ? ; let value_stream = self . docker . stream_post_into_values ( " " , Some ( ( Body :: from ( bytes ) , tar ( ) ) ) , None :: < iter :: Empty < _ > > , ) ; Ok ( value_stream ) } . try_flatten_stream ( ) , ) }
imports an image or set of images from a given tarball source
source can be uncompressed on compressed via gzip, bzip2 or xz
imports an image or set of images from a given tarball source source can be uncompressed on compressed via gzip bzip2 or xz
self
tarball
R
self
tarball
R