17 #ifndef __APPC_PROVISIONER_CACHE_HPP__ 18 #define __APPC_PROVISIONER_CACHE_HPP__ 88 Key(
const Image::Appc& image);
90 Key(
const std::string&
name,
91 const std::map<std::string, std::string>& labels);
96 std::map<std::string, std::string> labels;
101 size_t operator()(
const Key& key)
const;
117 #endif // __APPC_PROVISIONER_CACHE_HPP__ Try< Nothing > recover()
Recovers/rebuilds the cache from its image store directory.
bool operator==(const DockerVolume &left, const DockerVolume &right)
Definition: state.hpp:29
Definition: hashmap.hpp:38
static Try< process::Owned< Cache > > create(const Path &storeDir)
Factory method for creating cache.
Represents a POSIX or Windows file system path and offers common path manipulations.
Definition: path.hpp:212
URI image(const std::string &repository, const std::string &reference, const std::string ®istry, const Option< std::string > &scheme=None(), const Option< int > &port=None())
Definition: docker.hpp:30
Definition: attributes.hpp:24
Try< Nothing > add(const std::string &imageId)
Adds an image to the cache by the image's id.
Encapsulates Appc image cache.
Definition: cache.hpp:42
Option< std::string > find(const Image::Appc &image) const
Finds image id of an image if it is present in the cache/store.
constexpr const char * name
Definition: shell.hpp:41