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

#include <puller.hpp>

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

Public Member Functions

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

Static Public Member Functions

static Try< process::Owned< Puller > > create (const Flags &flags, const process::Shared< uri::Fetcher > &fetcher, SecretResolver *secretResolver=nullptr)
 

Constructor & Destructor Documentation

virtual mesos::internal::slave::docker::Puller::~Puller ( )
inlinevirtual

Member Function Documentation

static Try<process::Owned<Puller> > mesos::internal::slave::docker::Puller::create ( const Flags flags,
const process::Shared< uri::Fetcher > &  fetcher,
SecretResolver secretResolver = nullptr 
)
static
virtual process::Future<Image> mesos::internal::slave::docker::Puller::pull ( const ::docker::spec::ImageReference &  reference,
const std::string &  directory,
const std::string &  backend,
const Option< Secret > &  config = None() 
)
pure 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.

Implemented in mesos::internal::slave::docker::RegistryPuller, and mesos::internal::slave::docker::ImageTarPuller.


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