示例#1
0
文件: mesos.hpp 项目: lodejard/mesos
inline Resource::ReservationInfo createReservationInfo(
    const std::string& principal)
{
  Resource::ReservationInfo info;
  info.set_principal(principal);
  return info;
}
示例#2
0
文件: mesos.hpp 项目: g7z6km/mesos
inline Resource::ReservationInfo createReservationInfo(
    const Option<std::string>& principal = None())
{
  Resource::ReservationInfo info;

  if (principal.isSome()) {
    info.set_principal(principal.get());
  }

  return info;
}