blob: 61e8a7a6ac5427fd5bec79c72587c5a0f941a29a [file] [log] [blame]
// Copyright 2021 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "patchpanel/guest_type.h"
namespace patchpanel {
std::ostream& operator<<(std::ostream& stream, const GuestType guest_type) {
switch (guest_type) {
case GuestType::ARC0:
return stream << "ARC0";
case GuestType::ARC_NET:
return stream << "ARC_NET";
case GuestType::VM_TERMINA:
return stream << "VM_TERMINA";
case GuestType::VM_PLUGIN:
return stream << "VM_PLUGIN";
case GuestType::LXD_CONTAINER:
return stream << "LXD_CONTAINER";
case GuestType::MINIJAIL_NETNS:
return stream << "MINIJAIL_NETNS";
default:
return stream << "UNKNOWN";
}
}
} // namespace patchpanel