RepertoireBuilderWithSecrets#

class rubin.repertoire.RepertoireBuilderWithSecrets(config, secrets_root)#

Bases: RepertoireBuilder

Construct service discovery from configuration with secrets.

This class is identical to RepertoireBuilder with the addition of local secrets. This allows it to build discovery information that requires secrets, such as InfluxDB connection information with credentials.

Parameters:
  • config (RepertoireSettings) – Repertoire configuration.

  • secrets_root (str | Path) – Root path to where Repertoire secrets are stored.

Methods Summary

build_influxdb_with_credentials(database)

Construct InfluxDB discovery information with credentials.

Methods Documentation

build_influxdb_with_credentials(database)#

Construct InfluxDB discovery information with credentials.

The files referenced in the password paths must exist locally when calling this method. This will be the case for the running Repertoire service but not when the library is being called outside of the service, such as when building static information.

Parameters:

database (str) – Name of the InfluxDB database.

Returns:

InfluxDB connection information or None if no such InfluxDB database was found.

Return type:

InfluxDatabase or None