secrets

package
v0.0.0-...-dc7e86f Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheTimeOut = "CACHE_EXTENSION_TTL"
)

Variables

View Source
var (
	ExtensionName = filepath.Base(os.Args[0])
	PrintPrefix   = fmt.Sprintf("[%s] ", ExtensionName)
)

Functions

func GetCacheExpiry

func GetCacheExpiry() time.Time

func GetSecret

func GetSecret(name string) string

func GetSecretCache

func GetSecretCache(name string, refresh string) string

func GetSecretClient

func GetSecretClient() *secretsmanager.SecretsManager

func IsExpired

func IsExpired(cacheExpiry time.Time) bool

Types

type CacheData

type CacheData struct {
	Data        string
	CacheExpiry time.Time
}

type Secret

type Secret struct {
	CacheData CacheData
}

Jump to

Keyboard shortcuts

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