aws_secrets_manager

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SecretsCache = utils.NewCache[AwsRdsSecrets]()

Functions

func GetAwsSecretsManagerRegion

func GetAwsSecretsManagerRegion(regionStr string, secretId string) (region_util.Region, error)

Types

type AwsRdsSecrets

type AwsRdsSecrets struct {
	Username string
	Password string
}

type AwsSecretsManagerClient

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

Aws Secrets Manager Client.

func NewAwsSecretsManagerClient

func NewAwsSecretsManagerClient(hostInfo *host_info_util.HostInfo,
	props *utils.RWMap[string, string],
	endpoint string,
	region string) (AwsSecretsManagerClient, error)

type AwsSecretsManagerPlugin

type AwsSecretsManagerPlugin struct {
	plugins.BaseConnectionPlugin

	SecretsCacheKey string
	// contains filtered or unexported fields
}

func NewAwsSecretsManagerPlugin

func NewAwsSecretsManagerPlugin(pluginService driver_infrastructure.PluginService,
	props *utils.RWMap[string, string],
	awsSecretsManagerClientProvider NewAwsSecretsManagerClientProvider,
) (*AwsSecretsManagerPlugin, error)

func (*AwsSecretsManagerPlugin) Connect

func (awsSecretsManagerPlugin *AwsSecretsManagerPlugin) Connect(
	hostInfo *host_info_util.HostInfo,
	props *utils.RWMap[string, string],
	_ bool,
	connectFunc driver_infrastructure.ConnectFunc) (driver.Conn, error)

func (*AwsSecretsManagerPlugin) ForceConnect

func (awsSecretsManagerPlugin *AwsSecretsManagerPlugin) ForceConnect(
	hostInfo *host_info_util.HostInfo,
	props *utils.RWMap[string, string],
	_ bool,
	connectFunc driver_infrastructure.ConnectFunc) (driver.Conn, error)

func (*AwsSecretsManagerPlugin) GetPluginCode added in v1.0.1

func (awsSecretsManagerPlugin *AwsSecretsManagerPlugin) GetPluginCode() string

func (*AwsSecretsManagerPlugin) GetSubscribedMethods

func (awsSecretsManagerPlugin *AwsSecretsManagerPlugin) GetSubscribedMethods() []string

type AwsSecretsManagerPluginFactory

type AwsSecretsManagerPluginFactory struct{}

func (AwsSecretsManagerPluginFactory) ClearCaches

func (factory AwsSecretsManagerPluginFactory) ClearCaches()

func (AwsSecretsManagerPluginFactory) GetInstance

type NewAwsSecretsManagerClientProvider

type NewAwsSecretsManagerClientProvider func(hostInfo *host_info_util.HostInfo,
	props *utils.RWMap[string, string],
	endpoint string,
	region string) (AwsSecretsManagerClient, error)

Jump to

Keyboard shortcuts

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