Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigFromVault ¶
func ConfigFromVault(optionalName ...string) (*pb.ElasticConfigVault, error)
ConfigFromVault establishes a gRPC connection to the Ptolemaios service, checks the health status, and retrieves a secret from the service. It retries with an increasing sleep time for establishing the gRPC connection and for the health check. The maximum sleep duration for the health check is capped at 8 seconds for the last 5 attempts. If successful, it returns the retrieved secret and nil error. If the maximum number of attempts is reached without success, it returns an error indicating the failure.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.