handler

package
v0.0.0-...-f1d8a81 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleRequest

func HandleRequest(ctx context.Context, event map[string]interface{}) (string, error)

Types

type CloudWatchLogsClient

type CloudWatchLogsClient struct {
	Client cloudwatchlogsiface.CloudWatchLogsAPI
	Mutex  sync.Mutex
}

type Config

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

func NewConfig

func NewConfig() *Config

type SecretCacheClient

type SecretCacheClient struct {
	Client SecretCacheInterface
}

SecretCacheClient is a client for AWS Secret cache

type SecretCacheInterface

type SecretCacheInterface interface {
	GetSecretString(string) (string, error)
}

SecretCacheInterface is an interface for secret cache

type SecretManagerClient

type SecretManagerClient struct {
	Client SecretsManagerAPIInterface
}

SecretManagerClient is a client for AWS Secrets Manager API

type SecretsManagerAPIInterface

type SecretsManagerAPIInterface interface {
	GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error)
	ListSecretVersionIds(ctx context.Context, params *secretsmanager.ListSecretVersionIdsInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.ListSecretVersionIdsOutput, error)
}

SecretsManagerAPIInterface AWS SDK v2 doesn't provide an interface for each service client like v1

Jump to

Keyboard shortcuts

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