smsecrets

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSecretArns

func GetSecretArns(secretsFile string) map[interface{}][]map[string]string

This function reads the secrets ARNs and names from the `secrets.yaml` file provided with the application

func WriteEnvFile

func WriteEnvFile(outputFileName string)

Write secrets in dotenv file

Types

type SecretsEnv

type SecretsEnv map[string]string

type SecretsManager

type SecretsManager struct {
	// contains filtered or unexported fields
}

SecretsManage is a simple struct for config params

func NewSecretsManager

func NewSecretsManager(region string, timeout int) *SecretsManager

NewClient returns a Lambda Extensions API client

func (*SecretsManager) FetchSecrets

func (sm *SecretsManager) FetchSecrets(secretsList []map[string]string)

This function initializes the AWS API context and config, `secretsEnv`, the mutex and the waitGroup, launches the go routines and waits for them to return

Jump to

Keyboard shortcuts

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