Apache Mesos
Public Member Functions | Static Public Member Functions | List of all members
mesos::internal::slave::docker::ImageTarPuller Class Reference

ImageTarPuller assumes Docker images are stored in a local directory (configured with flags.docker_registry), with all the images saved as tars with file names in the form of <repo>:<tag>.tar. More...

#include <image_tar_puller.hpp>

Inheritance diagram for mesos::internal::slave::docker::ImageTarPuller:
mesos::internal::slave::docker::Puller

Public Member Functions

 ~ImageTarPuller () override
 
process::Future< Image > pull (const ::docker::spec::ImageReference &reference, const std::string &directory, const std::string &backend, const Option< Secret > &config=None()) override
 Pull a Docker image layers into the specified directory, and return the list of layer ids in that image in the right dependency order (i.e., base images are at the front). More...
 
- Public Member Functions inherited from mesos::internal::slave::docker::Puller
virtual ~Puller ()
 

Static Public Member Functions

static Try< process::Owned< Puller > > create (const Flags &flags, const process::Shared< uri::Fetcher > &fetcher)
 
- Static Public Member Functions inherited from mesos::internal::slave::docker::Puller
static Try< process::Owned< Puller > > create (const Flags &flags, const process::Shared< uri::Fetcher > &fetcher, SecretResolver *secretResolver=nullptr)
 

Detailed Description

ImageTarPuller assumes Docker images are stored in a local directory (configured with flags.docker_registry), with all the images saved as tars with file names in the form of <repo>:<tag>.tar.

Constructor & Destructor Documentation

mesos::internal::slave::docker::ImageTarPuller::~ImageTarPuller ( )
override

Member Function Documentation

static Try<process::Owned<Puller> > mesos::internal::slave::docker::ImageTarPuller::create ( const Flags flags,
const process::Shared< uri::Fetcher > &  fetcher 
)
static
process::Future<Image> mesos::internal::slave::docker::ImageTarPuller::pull ( const ::docker::spec::ImageReference &  reference,
const std::string &  directory,
const std::string &  backend,
const Option< Secret > &  config = None() 
)
overridevirtual

Pull a Docker image layers into the specified directory, and return the list of layer ids in that image in the right dependency order (i.e., base images are at the front).

Parameters
referenceThe docker image reference.
directoryThe target directory to store the layers.
Returns
an ordered list of layer ids.

Implements mesos::internal::slave::docker::Puller.


The documentation for this class was generated from the following file: