eratosthenes

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL