#include <resource_manager.h>
◆ ResourceManager()
cuttlefish::ResourceManager::ResourceManager |
( |
| ) |
|
|
default |
◆ ~ResourceManager()
cuttlefish::ResourceManager::~ResourceManager |
( |
| ) |
|
◆ AddInterface()
bool cuttlefish::ResourceManager::AddInterface |
( |
const std::string & |
iface, |
|
|
IfaceType |
ty, |
|
|
uint32_t |
id, |
|
|
uid_t |
uid |
|
) |
| |
|
private |
◆ AllocateResourceID()
uint32_t cuttlefish::ResourceManager::AllocateResourceID |
( |
| ) |
|
|
private |
◆ AllocateSessionID()
uint32_t cuttlefish::ResourceManager::AllocateSessionID |
( |
| ) |
|
|
private |
◆ CheckCredentials()
bool cuttlefish::ResourceManager::CheckCredentials |
( |
SharedFD |
client_socket, |
|
|
uid_t |
uid |
|
) |
| |
|
private |
◆ FindSession()
std::optional< std::shared_ptr< Session > > cuttlefish::ResourceManager::FindSession |
( |
uint32_t |
id | ) |
|
|
private |
◆ JsonHandleCreateInterfaceRequest()
Json::Value cuttlefish::ResourceManager::JsonHandleCreateInterfaceRequest |
( |
SharedFD |
client_socket, |
|
|
const Json::Value & |
request |
|
) |
| |
|
private |
◆ JsonHandleDestroyInterfaceRequest()
Json::Value cuttlefish::ResourceManager::JsonHandleDestroyInterfaceRequest |
( |
const Json::Value & |
request | ) |
|
|
private |
◆ JsonHandleIdRequest()
Json::Value cuttlefish::ResourceManager::JsonHandleIdRequest |
( |
| ) |
|
|
private |
◆ JsonHandleShutdownRequest()
Json::Value cuttlefish::ResourceManager::JsonHandleShutdownRequest |
( |
SharedFD |
client_socket | ) |
|
|
private |
◆ JsonHandleStopSessionRequest()
Json::Value cuttlefish::ResourceManager::JsonHandleStopSessionRequest |
( |
const Json::Value & |
request, |
|
|
uid_t |
uid |
|
) |
| |
|
private |
◆ JsonServer()
void cuttlefish::ResourceManager::JsonServer |
( |
| ) |
|
◆ RemoveInterface()
bool cuttlefish::ResourceManager::RemoveInterface |
( |
const std::string & |
iface, |
|
|
IfaceType |
ty |
|
) |
| |
|
private |
◆ SetSocketLocation()
void cuttlefish::ResourceManager::SetSocketLocation |
( |
const std::string & |
sock_name | ) |
|
◆ SetUseEbtablesLegacy()
void cuttlefish::ResourceManager::SetUseEbtablesLegacy |
( |
bool |
use_legacy | ) |
|
◆ SetUseIpv4Bridge()
void cuttlefish::ResourceManager::SetUseIpv4Bridge |
( |
bool |
ipv4 | ) |
|
|
inlineprivate |
◆ SetUseIpv6Bridge()
void cuttlefish::ResourceManager::SetUseIpv6Bridge |
( |
bool |
ipv6 | ) |
|
|
inlineprivate |
◆ ValidateConfigRequest()
bool cuttlefish::ResourceManager::ValidateConfigRequest |
( |
const Json::Value & |
config | ) |
|
|
private |
◆ ValidateRequest()
bool cuttlefish::ResourceManager::ValidateRequest |
( |
const Json::Value & |
request | ) |
|
|
private |
◆ ValidateRequestList()
bool cuttlefish::ResourceManager::ValidateRequestList |
( |
const Json::Value & |
config | ) |
|
|
private |
◆ active_interfaces_
std::set<std::string> cuttlefish::ResourceManager::active_interfaces_ |
|
private |
◆ global_resource_id_
std::atomic_uint32_t cuttlefish::ResourceManager::global_resource_id_ = 0 |
|
private |
◆ location_
◆ managed_sessions_
std::map<uint32_t, std::shared_ptr<Session> > cuttlefish::ResourceManager::managed_sessions_ |
|
private |
◆ pending_add_
std::map<uint32_t, std::shared_ptr<StaticResource> > cuttlefish::ResourceManager::pending_add_ |
|
private |
◆ session_id_
std::atomic_uint32_t cuttlefish::ResourceManager::session_id_ = 0 |
|
private |
◆ shutdown_socket_
◆ use_ebtables_legacy_
bool cuttlefish::ResourceManager::use_ebtables_legacy_ = false |
|
private |
◆ use_ipv4_bridge_
bool cuttlefish::ResourceManager::use_ipv4_bridge_ = true |
|
private |
◆ use_ipv6_bridge_
bool cuttlefish::ResourceManager::use_ipv6_bridge_ = true |
|
private |
The documentation for this struct was generated from the following files: