secrets_manager

package
v0.0.0-...-6e646ca Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SecretsCache = ttlcache.New[string, string](ttlcache.WithTTL[string, string](30 * time.Minute))

SecretsCache is a cache of secrets from Secrets Manager and is used to avoid making multiple calls to Secrets Manager for the same secret.

Functions

This section is empty.

Types

type SecretsManagerService

type SecretsManagerService interface {
	GetSecretValue(cc call.Call, key string) (string, error)
}

type Service

type Service struct {
	Svc *secretsmanager.SecretsManager
}

func InitSM

func InitSM(cc call.Call) (service *Service)

func (*Service) GetSecretValue

func (s *Service) GetSecretValue(cc call.Call, key string) (string, error)

GetSecretValue gets a corresponding value string for a key in secrets manager

Jump to

Keyboard shortcuts

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