Class ClientApp#

Class Documentation#

class ClientApp#

Manages a karana-webui electron client instance.

Public Functions

ClientApp(std::string_view url)#

ClientApp constructor.

Parameters:

url – The server url to connect to

~ClientApp()#

ClientApp destructor.

ClientApp(const ClientApp&) = delete#
ClientApp &operator=(const ClientApp&) = delete#
void shutdown()#

Idempotently close the app.

std::string getStdout() const#

Get a buffer containing the app’s stdout.

Returns:

The stdout buffer

std::string getStderr() const#

Get a buffer containing the app’s stderr.

Returns:

The stderr buffer

Public Static Functions

static std::filesystem::path findExecutable()#

Find the full path of the karana-webui executable.

Returns:

The absolute path or empty if not found