secrets_manager

package
v0.0.0-...-72b4f51 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 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