Asylo
Classes | Public Member Functions | List of all members
asylo::EnclaveManagerOptions Class Reference

Enclave Manager configuration. More...

#include <enclave_manager.h>

Classes

struct  ConfigServerConnectionAttributes
 Configuration server connection attributes. More...
 

Public Member Functions

 EnclaveManagerOptions ()
 Constructs a default EnclaveManagerOptions object. More...
 
EnclaveManagerOptionsset_config_server_connection_attributes (std::string address, absl::Duration timeout)
 Configures a connection to the config server. More...
 
EnclaveManagerOptionsset_host_config (HostConfig config)
 Sets the HostConfig proto within this object. More...
 
StatusOr< std::string > get_config_server_address () const
 Returns the address of the configuration server. More...
 
StatusOr< absl::Duration > get_config_server_connection_timeout () const
 Returns the configuration server connection timeout. More...
 
StatusOr< HostConfig > get_host_config () const
 Returns the embedded HostConfig object. More...
 
bool holds_host_config () const
 Returns true if a HostConfig instance is embedded in this object. More...
 

Detailed Description

Enclave Manager configuration.

Constructor & Destructor Documentation

◆ EnclaveManagerOptions()

asylo::EnclaveManagerOptions::EnclaveManagerOptions ( )

Constructs a default EnclaveManagerOptions object.

Member Function Documentation

◆ get_config_server_address()

StatusOr<std::string> asylo::EnclaveManagerOptions::get_config_server_address ( ) const

Returns the address of the configuration server.

Returns
The address of the server from which the HostConfig information can be obtained. Returns an error if ConfigServerConnectionAttributes are not set.

◆ get_config_server_connection_timeout()

StatusOr<absl::Duration> asylo::EnclaveManagerOptions::get_config_server_connection_timeout ( ) const

Returns the configuration server connection timeout.

Returns
The connection timeout for the server from which the HostConfig information can be obtained, or an error if ConfigServerConnectionAttributes are not set.

◆ get_host_config()

StatusOr<HostConfig> asylo::EnclaveManagerOptions::get_host_config ( ) const

Returns the embedded HostConfig object.

Returns
The HostConfig information embedded within this object, or an error if such information is not embedded within the object.

◆ holds_host_config()

bool asylo::EnclaveManagerOptions::holds_host_config ( ) const

Returns true if a HostConfig instance is embedded in this object.

◆ set_config_server_connection_attributes()

EnclaveManagerOptions& asylo::EnclaveManagerOptions::set_config_server_connection_attributes ( std::string  address,
absl::Duration  timeout 
)

Configures a connection to the config server.

Sets the information necessary for contacting the config server within the Asylo daemon.

Returns
A reference to this EnclaveManagerOptions object.

◆ set_host_config()

EnclaveManagerOptions& asylo::EnclaveManagerOptions::set_host_config ( HostConfig  config)

Sets the HostConfig proto within this object.

Returns
A reference to this EnclaveManagerOptions object.

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