ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
connection Struct Referencefinal

Represents a saved connection with credentials. More...

#include <connection.hpp>

Collaboration diagram for connection:
Collaboration graph

Public Attributes

boost::uuids::uuid id
 Unique identifier for this connection.
 
std::optional< boost::uuids::uuid > folder_id
 Folder this connection belongs to.
 
std::optional< boost::uuids::uuid > environment_id
 Environment this connection is linked to.
 
std::string name
 Display name for this connection.
 
std::optional< std::string > host
 Host name or IP address of the server.
 
std::optional< int > port
 Port number the server is listening on.
 
std::string username
 Username for authentication.
 
std::string encrypted_password
 Encrypted password for authentication.
 
std::string description
 Optional description or notes about this connection.
 

Detailed Description

Represents a saved connection with credentials.

A connection stores the credentials needed to authenticate to a server. When linked to an environment (via environment_id), the host and port are resolved live from the environment. When standalone, host and port are stored directly.

The encrypted_password field stores the AES-encrypted password. Use the connection_manager service to encrypt/decrypt passwords.

Member Data Documentation

◆ folder_id

std::optional<boost::uuids::uuid> folder_id

Folder this connection belongs to.

If empty, the connection is at the root level.

◆ environment_id

std::optional<boost::uuids::uuid> environment_id

Environment this connection is linked to.

When set, host and port are resolved from the environment rather than from the host/port fields on this connection.

◆ host

std::optional<std::string> host

Host name or IP address of the server.

Only used when environment_id is not set.

◆ port

std::optional<int> port

Port number the server is listening on.

Only used when environment_id is not set.

◆ encrypted_password

std::string encrypted_password

Encrypted password for authentication.

This field stores the AES-encrypted password. Use the connection_manager service to encrypt passwords before storing and decrypt when connecting.