Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAll ¶
GetAll returns a map of all secrets in the secrets manager. Example: secrets, err := GetAll()
if err != nil { log.Fatalf("Error getting secrets: %v", err) } for name, value := range secrets { fmt.Printf("Secret name: %s, value: %s\n", name, value) }
func GetSecret ¶
Get returns the value of the secret with the given name. Example: secretName := "dev/secrets/SOME_SECRET_KEY"
secretValue, err := getSecret(secretName) if err != nil { log.Fatalf("Error getting secret: %v", err) } fmt.Printf("Secret value: %s\n", secretValue)
func SetEnvironment ¶
func SetEnvironment(functionName, region string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.