|
ORE Studio 0.0.4
|
Manages commands related to tenants. More...
#include <tenants_commands.hpp>

Static Public Member Functions | |
| static void | register_commands (cli::Menu &root_menu, ores::nats::service::nats_client &session, pagination_context &pagination) |
| Register tenant-related commands. | |
| static void | process_get_tenants (std::ostream &out, ores::nats::service::nats_client &session, bool include_deleted) |
| Process a get tenants request. | |
| static void | process_add_tenant (std::ostream &out, ores::nats::service::nats_client &session, std::string code, std::string name, std::string type, std::string hostname, std::string description) |
| Process an add tenant request. | |
| static void | process_tenant_history (std::ostream &out, ores::nats::service::nats_client &session, std::string tenant_id) |
| Process a tenant history request. | |
| static void | process_delete_tenant (std::ostream &out, ores::nats::service::nats_client &session, std::string tenant_id) |
| Process a delete tenant request. | |
Manages commands related to tenants.
Provides CRUD operations for tenant management in multi-tenant systems.
|
static |
Register tenant-related commands.
Creates the tenants submenu and adds tenant operations.
Note: Tenant protocol doesn't support pagination yet, but the pagination_context is passed for API consistency.
|
static |
Process a get tenants request.
Retrieves tenants from the server and displays them.
| out | Output stream for results |
| session | Client session for connectivity. |
| include_deleted | When true, includes soft-deleted tenants. |

|
static |
Process an add tenant request.
Creates a new tenant with the provided details.
| out | Output stream for results |
| session | Client session for connectivity. |
| code | Unique tenant code |
| name | Human-readable tenant name |
| type | Tenant type classification |
| hostname | Unique hostname for tenant routing |
| description | Optional description |

|
static |
Process a tenant history request.
Retrieves version history for a specific tenant.
| out | Output stream for results |
| session | Client session for connectivity. |
| tenant_id | The tenant UUID to get history for. |

|
static |
Process a delete tenant request.
Deletes a tenant by ID.
| out | Output stream for results |
| session | Client session for connectivity. |
| tenant_id | The tenant UUID to delete. |
