pub trait ConfigManager:
Send
+ Sync
+ Lifecycle {
Show 38 methods
// Required methods
fn get_instance_config_location(&self) -> PathBuf;
fn set_instance_config_location(&self, instance_config_location: PathBuf);
fn get_graphql_server_config_location(&self) -> PathBuf;
fn set_graphql_server_config_location(
&self,
graphql_server_config_location: PathBuf,
);
fn get_plugins_config_location(&self) -> PathBuf;
fn set_plugins_config_location(&self, plugins_config_location: PathBuf);
fn get_remotes_config_location(&self) -> PathBuf;
fn set_remotes_config_location(&self, remotes_config_location: PathBuf);
fn get_instance_config(&self) -> InstanceConfig;
fn set_instance_config(&self, instance_config: InstanceConfig);
fn read_instance_config(&self);
fn set_instance_name(&self, instance_name: &str);
fn set_instance_description(&self, instance_description: &str);
fn get_graphql_server_config(&self) -> GraphQLServerConfig;
fn set_graphql_server_config(
&self,
graphql_server_config: GraphQLServerConfig,
);
fn read_graphql_server_config(&self);
fn set_graphql_hostname(&self, hostname: &str);
fn set_graphql_port(&self, port: u16);
fn set_graphql_secure(&self, secure: bool);
fn set_graphql_ssl_certificate_path(&self, ssl_certificate_path: &str);
fn set_graphql_ssl_private_key_path(&self, ssl_private_key_path: &str);
fn set_graphql_shutdown_timeout(&self, shutdown_timeout: u64);
fn set_graphql_workers(&self, workers: usize);
fn get_graphql_default_context_path(&self) -> Option<String>;
fn set_graphql_default_context_path(&self, default_context_path: String);
fn get_plugins_config(&self) -> PluginsConfig;
fn set_plugins_config(&self, plugins_config: PluginsConfig);
fn read_plugins_config(&self);
fn set_disable_all_plugins(&self, disable_all_plugins: bool);
fn set_disabled_plugins(&self, disabled_plugins: Vec<String>);
fn set_enabled_plugins(&self, enabled_plugins: Vec<String>);
fn set_disable_hot_deploy(&self, disable_hot_deploy: bool);
fn set_hot_deploy_location(&self, hot_deploy_location: Option<String>);
fn set_install_location(&self, install_location: Option<String>);
fn get_remotes_config(&self) -> RemotesConfig;
fn set_remotes_config(&self, remotes: RemotesConfig);
fn read_remotes_config(&self);
fn write_remotes_config(&self);
}
Required Methods§
Sourcefn get_instance_config_location(&self) -> PathBuf
fn get_instance_config_location(&self) -> PathBuf
Returns the location of the configuration of the instance.
Sourcefn set_instance_config_location(&self, instance_config_location: PathBuf)
fn set_instance_config_location(&self, instance_config_location: PathBuf)
Sets the location of the configuration of the instance.
Sourcefn get_graphql_server_config_location(&self) -> PathBuf
fn get_graphql_server_config_location(&self) -> PathBuf
Returns the location of the configuration of the GraphQL server.
Sourcefn set_graphql_server_config_location(
&self,
graphql_server_config_location: PathBuf,
)
fn set_graphql_server_config_location( &self, graphql_server_config_location: PathBuf, )
Sets the location of the configuration of the GraphQL server.
Sourcefn get_plugins_config_location(&self) -> PathBuf
fn get_plugins_config_location(&self) -> PathBuf
Returns the location of the plugins configuration.
Sourcefn set_plugins_config_location(&self, plugins_config_location: PathBuf)
fn set_plugins_config_location(&self, plugins_config_location: PathBuf)
Sets the location of the plugins configuration.
Sourcefn get_remotes_config_location(&self) -> PathBuf
fn get_remotes_config_location(&self) -> PathBuf
Returns the location of the remotes configuration.
Sourcefn set_remotes_config_location(&self, remotes_config_location: PathBuf)
fn set_remotes_config_location(&self, remotes_config_location: PathBuf)
Sets the location of the remotes configuration.
Sourcefn get_instance_config(&self) -> InstanceConfig
fn get_instance_config(&self) -> InstanceConfig
Returns the configuration of the instance.
Sourcefn set_instance_config(&self, instance_config: InstanceConfig)
fn set_instance_config(&self, instance_config: InstanceConfig)
Sets the configuration of the instance.
Sourcefn read_instance_config(&self)
fn read_instance_config(&self)
Reads the configuration of the instance from file.
Sourcefn set_instance_name(&self, instance_name: &str)
fn set_instance_name(&self, instance_name: &str)
Sets the instance name.
Sourcefn set_instance_description(&self, instance_description: &str)
fn set_instance_description(&self, instance_description: &str)
Sets the instance description.
Sourcefn get_graphql_server_config(&self) -> GraphQLServerConfig
fn get_graphql_server_config(&self) -> GraphQLServerConfig
Returns the configuration of the GraphQL server.
Sourcefn set_graphql_server_config(&self, graphql_server_config: GraphQLServerConfig)
fn set_graphql_server_config(&self, graphql_server_config: GraphQLServerConfig)
Sets the configuration of the GraphQL server.
Sourcefn read_graphql_server_config(&self)
fn read_graphql_server_config(&self)
Reads the configuration of the GraphQL server from file.
Sourcefn set_graphql_hostname(&self, hostname: &str)
fn set_graphql_hostname(&self, hostname: &str)
Sets the host name.
Sourcefn set_graphql_port(&self, port: u16)
fn set_graphql_port(&self, port: u16)
Sets the port.
Sourcefn set_graphql_secure(&self, secure: bool)
fn set_graphql_secure(&self, secure: bool)
Enables / disables HTTPS.
Sourcefn set_graphql_ssl_certificate_path(&self, ssl_certificate_path: &str)
fn set_graphql_ssl_certificate_path(&self, ssl_certificate_path: &str)
Sets the SSL certificate path.
Sourcefn set_graphql_ssl_private_key_path(&self, ssl_private_key_path: &str)
fn set_graphql_ssl_private_key_path(&self, ssl_private_key_path: &str)
Sets the SSL private key path.
Sourcefn set_graphql_shutdown_timeout(&self, shutdown_timeout: u64)
fn set_graphql_shutdown_timeout(&self, shutdown_timeout: u64)
Sets the timeout for graceful workers shutdown in seconds.
Sourcefn set_graphql_workers(&self, workers: usize)
fn set_graphql_workers(&self, workers: usize)
Sets the number of workers.
Sourcefn get_graphql_default_context_path(&self) -> Option<String>
fn get_graphql_default_context_path(&self) -> Option<String>
Returns the default context path which redirects the root context to a web resource provider.
Sourcefn set_graphql_default_context_path(&self, default_context_path: String)
fn set_graphql_default_context_path(&self, default_context_path: String)
Sets the default context path which redirects the root context to a web resource provider.
Sourcefn get_plugins_config(&self) -> PluginsConfig
fn get_plugins_config(&self) -> PluginsConfig
Returns the plugins configuration.
Sourcefn set_plugins_config(&self, plugins_config: PluginsConfig)
fn set_plugins_config(&self, plugins_config: PluginsConfig)
Sets the plugins configuration.
Sourcefn read_plugins_config(&self)
fn read_plugins_config(&self)
Reads the plugins configuration from file.
Sourcefn set_disable_all_plugins(&self, disable_all_plugins: bool)
fn set_disable_all_plugins(&self, disable_all_plugins: bool)
Enables / disables all plugins.
Sourcefn set_disabled_plugins(&self, disabled_plugins: Vec<String>)
fn set_disabled_plugins(&self, disabled_plugins: Vec<String>)
Sets the plugins to disable.
Sourcefn set_enabled_plugins(&self, enabled_plugins: Vec<String>)
fn set_enabled_plugins(&self, enabled_plugins: Vec<String>)
Sets the plugins to enable. If set, set_disabled_plugins will have no effect.
Sourcefn set_disable_hot_deploy(&self, disable_hot_deploy: bool)
fn set_disable_hot_deploy(&self, disable_hot_deploy: bool)
Enables / disables hot deploy.
Sourcefn set_hot_deploy_location(&self, hot_deploy_location: Option<String>)
fn set_hot_deploy_location(&self, hot_deploy_location: Option<String>)
Sets the plugins hot deploy location.
Sourcefn set_install_location(&self, install_location: Option<String>)
fn set_install_location(&self, install_location: Option<String>)
Sets the plugins install location.
Sourcefn get_remotes_config(&self) -> RemotesConfig
fn get_remotes_config(&self) -> RemotesConfig
Returns the remotes.
Sourcefn set_remotes_config(&self, remotes: RemotesConfig)
fn set_remotes_config(&self, remotes: RemotesConfig)
Sets the remotes configuration.
Sourcefn read_remotes_config(&self)
fn read_remotes_config(&self)
Reads the remotes configuration from file.
Sourcefn write_remotes_config(&self)
fn write_remotes_config(&self)
Writes the remotes configuration to file.