Module qcs_api_client_common::configuration
source · Expand description
This module is used for loading configuration that will be used to connect either to real QPUs (and supporting services) or the QVM.
By default, all settings are loaded from files located
under your home directory in a .qcs folder. settings.toml will be used to load general
settings (e.g. which URLs to connect to) and secrets.toml will be used to load tokens for
authentication. Both “settings” and “secrets” files should contain profiles. The
default_profile_name in settings sets the profile to be used when there is no override. You
can set the PROFILE_NAME_VAR to select a different profile. You can also use
SECRETS_PATH_VAR and SETTINGS_PATH_VAR to change which files are loaded.
Structs
- Okta authorization server.
- All the config data that’s parsed from config sources
- Builder for
ClientConfigurationto set/override items. - A single type containing an access token and an associated refresh token.
Enums
- Errors that may occur when building a
ClientConfiguration. - Errors that may occur while loading a
Configuration. - Errors that may occur while refreshing the access token.
Constants
- Default URL to access the QCS API.
- Default auth server name
- Default URL to access the gRPC API.
- Default URL to access
quilc. - Default URL to access QVM.
- Setting this environment variable will override the URL used to connect to the GRPC server.
- Setting this environment variable will change which profile is used from the loaded config files
- Setting this environment variable will override the URL used to access quilc.
- Setting this environment variable will override the URL used to access the QVM.
- Setting the
QCS_SECRETS_FILE_PATHenvironment variable will change which file is used for loading secrets - Setting the
QCS_SETTINGS_FILE_PATHenvironment variable will change which file is used for loading settings
Traits
- Get and refresh access tokens