Android-cuttlefish cvd tool
Public Member Functions | Private Member Functions | Private Attributes | List of all members
cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl Class Referencefinal
Inheritance diagram for cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl:
Inheritance graph
[legend]
Collaboration diagram for cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl:
Collaboration graph
[legend]

Public Member Functions

 OpenwrtControlServiceImpl (HttpClient &http_client)
 
Status LuciRpc (ServerContext *context, const LuciRpcRequest *request, LuciRpcReply *response) override
 
Status OpenwrtIpaddr (ServerContext *context, const Empty *request, OpenwrtIpaddrReply *response) override
 

Private Member Functions

template<typename T >
std::vector< T > ToVector (const RepeatedPtrField< T > &repeated_field)
 
Result< std::string > LuciRpcAddress (const std::string &subpath)
 
Result< std::string > LuciRpcAddress (const std::string &subpath, const std::string &auth_key)
 
Json::Value LuciRpcData (const std::string &method, const std::vector< std::string > &params)
 
Json::Value LuciRpcData (int id, const std::string &method, const std::vector< std::string > &params)
 
Result< void > UpdateLuciRpcAuthKey ()
 
Result< Json::Value > RequestLuciRpc (const std::string &subpath, const std::string &method, const std::vector< std::string > &params)
 
Result< std::string > FindIpaddrLauncherLog ()
 

Private Attributes

HttpClienthttp_client_
 
const std::vector< std::string > header_ {"Content-Type: application/json"}
 
std::string auth_key_
 

Constructor & Destructor Documentation

◆ OpenwrtControlServiceImpl()

cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl::OpenwrtControlServiceImpl ( HttpClient http_client)
inline

Member Function Documentation

◆ FindIpaddrLauncherLog()

Result< std::string > cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl::FindIpaddrLauncherLog ( )
inlineprivate

◆ LuciRpc()

Status cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl::LuciRpc ( ServerContext *  context,
const LuciRpcRequest *  request,
LuciRpcReply *  response 
)
inlineoverride

◆ LuciRpcAddress() [1/2]

Result< std::string > cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl::LuciRpcAddress ( const std::string &  subpath)
inlineprivate

◆ LuciRpcAddress() [2/2]

Result< std::string > cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl::LuciRpcAddress ( const std::string &  subpath,
const std::string &  auth_key 
)
inlineprivate

◆ LuciRpcData() [1/2]

Json::Value cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl::LuciRpcData ( const std::string &  method,
const std::vector< std::string > &  params 
)
inlineprivate

◆ LuciRpcData() [2/2]

Json::Value cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl::LuciRpcData ( int  id,
const std::string &  method,
const std::vector< std::string > &  params 
)
inlineprivate

◆ OpenwrtIpaddr()

Status cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl::OpenwrtIpaddr ( ServerContext *  context,
const Empty *  request,
OpenwrtIpaddrReply *  response 
)
inlineoverride

◆ RequestLuciRpc()

Result< Json::Value > cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl::RequestLuciRpc ( const std::string &  subpath,
const std::string &  method,
const std::vector< std::string > &  params 
)
inlineprivate

◆ ToVector()

template<typename T >
std::vector< T > cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl::ToVector ( const RepeatedPtrField< T > &  repeated_field)
inlineprivate

◆ UpdateLuciRpcAuthKey()

Result< void > cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl::UpdateLuciRpcAuthKey ( )
inlineprivate

Member Data Documentation

◆ auth_key_

std::string cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl::auth_key_
private

◆ header_

const std::vector<std::string> cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl::header_ {"Content-Type: application/json"}
private

◆ http_client_

HttpClient& cuttlefish::anonymous_namespace{main.cpp}::OpenwrtControlServiceImpl::http_client_
private

The documentation for this class was generated from the following file: