Documentation ¶
Index ¶
- Constants
- Variables
- func AwsAccessKeyFromEnv(k string) (string, error)
- func LoadAwsConfig(access, secret, region string) (aws.Config, error)
- func LoadFromData[C any](data []byte) (*C, error)
- func LoadFromFile[C any](path string) (*C, error)
- func LoadFromS3[C any](client *s3.Client, bucket, key string) (*C, error)
- func RegionFromEnv(k string) (string, error)
- func SecretKeyFromEnv(k string) (string, error)
- type Config
Constants ¶
View Source
const ( DefaultAccessKeyEnvVar = "AWS_ACCESS_KEY_ID" DefaultSecretKeyEnvVar = "AWS_SECRET_ACCESS_KEY" DefaultRegionEnvVar = "AWS_REGION" )
Variables ¶
Functions ¶
func AwsAccessKeyFromEnv ¶ added in v0.0.9
func LoadAwsConfig ¶ added in v0.0.10
func LoadFromData ¶
Loads the application config from a byte slice.
func LoadFromFile ¶
Loads the application config from a file at the specified path.
func LoadFromS3 ¶
Loads the application config from an S3 bucket.
func RegionFromEnv ¶ added in v0.0.9
func SecretKeyFromEnv ¶ added in v0.0.9
Types ¶
Click to show internal directories.
Click to hide internal directories.