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

LocalPuller 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 <local_puller.hpp>

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

Public Member Functions

 ~LocalPuller ()
 
process::Future< std::vector
< std::string > > 
pull (const ::docker::spec::ImageReference &reference, const std::string &directory, const std::string &backend, const Option< Secret > &config=None())
 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)
 
- 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

LocalPuller 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::LocalPuller::~LocalPuller ( )

Member Function Documentation

static Try<process::Owned<Puller> > mesos::internal::slave::docker::LocalPuller::create ( const Flags flags)
static
process::Future<std::vector<std::string> > mesos::internal::slave::docker::LocalPuller::pull ( const ::docker::spec::ImageReference &  reference,
const std::string &  directory,
const std::string &  backend,
const Option< Secret > &  config = None() 
)
virtual

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: