Skip to content

MadsRC/configuration-secret-files

Repository files navigation

Go Report Card

configuration-secret-files

A provider for BoRuDar's configuration package that loads configuration values from files in a given directory.

On your configuration struct, you define the secret_file tag with the name of the file that contains the value you want to load. The provider will read the file and provide the content of the file as the value for the field.

The provider will look for files in the /run/secrets directory by default. As such specifying the secret_file tag with the value my_secret will make the provider look for a file named /run/secrets/my_secret.

The tag and the directory can be customized when creating the provider. Please refer to the documentation for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages