ssmcache

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

ssmcache

This is a simple cache library which only retrieves params from SSM parameter store when the cache time expires or when a version updated has occurred.

Note the versions checks are done without decryption to ensure we limit the calls to KMS to keep the costs down.

GitHub Actions status Go Report Card Documentation

License

This code is released under the Apache 2.0 license.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultExpiry

func SetDefaultExpiry(expires time.Duration)

SetDefaultExpiry update the default expiry for all cached parameters

Note this will update expires value on the next refresh of entries.

Types

type Cache

type Cache interface {
	GetKey(string, bool) (string, error)
	PutKey(string, string, bool) error
}

Cache SSM cache which provides read access to parameters

func New

func New(cfgs ...*aws.Config) Cache

New new SSM cache

type Entry

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

Entry an SSM entry in the cache

Directories

Path Synopsis
Package mocks provides mock implementations for AWS services
Package mocks provides mock implementations for AWS services
awsmock
Package awsmock is a generated GoMock package.
Package awsmock is a generated GoMock package.

Jump to

Keyboard shortcuts

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