configurationreader

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfiguration

func ReadConfiguration[T any](ctx context.Context, client awsssm.GetParameterAPI, name string) (*T, error)

Read a ParameterStore variable and/or environment variables into a config struct.

The struct should be annotated with a `json` tags and optionally `env` tags. to indicate which JSON properties and environment variable to read from. Struct fields should be of type string, bool or int.

If the environment variable is set, it overrides the value from ParameterStore.

Types

This section is empty.

Jump to

Keyboard shortcuts

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