17 #ifndef __MESOS_DOCKER_SPEC_HPP__ 18 #define __MESOS_DOCKER_SPEC_HPP__ 29 #include <mesos/docker/spec.pb.h> 61 std::ostream&
operator<<(std::ostream& stream,
const ImageReference& reference);
143 #endif // __MESOS_DOCKER_SPEC_HPP__ std::string getRegistryHost(const std::string ®istry)
std::string parseAuthUrl(const std::string &_url)
Try< ImageReference > parseImageReference(const std::string &s)
constexpr char WHITEOUT_PREFIX[]
Definition: spec.hpp:39
Try< hashmap< std::string, Config::Auth > > parseAuthConfig(const JSON::Object &_config)
std::ostream & operator<<(std::ostream &stream, const ImageReference &reference)
Option< Error > validate(const ImageManifest &manifest)
constexpr char WHITEOUT_OPAQUE_PREFIX[]
Definition: spec.hpp:43
URI manifest(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:47
Result< int > getRegistryPort(const std::string ®istry)
void json(JSON::ObjectWriter *writer, const asV1Protobuf &protobuf)
Try< std::string > getRegistryScheme(const std::string ®istry)
Try< ImageManifest > parse(const JSON::Object &json)