secretsmgr

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAwsSecret

func GetAwsSecret(metadataClient *ec2metadata.EC2Metadata,
	secretId string, logger log.DebugLogger) (map[string]string, error)

Types

type CachedSecret

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

func NewCachedSecret

func NewCachedSecret(metadataClient *ec2metadata.EC2Metadata,
	secretId string, maximumAge time.Duration,
	logger log.DebugLogger) (*CachedSecret, error)

func (*CachedSecret) GetSecret

func (cs *CachedSecret) GetSecret() (map[string]string, error)

func (*CachedSecret) String

func (cs *CachedSecret) String() string

Jump to

Keyboard shortcuts

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