aws

package
v0.101.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func NewManager

func NewManager(opts *NewManagerOpts) (*Manager, error)

func (*Manager) DeleteCredentials

func (m *Manager) DeleteCredentials(ctx context.Context, secretID string) error

func (*Manager) ReadCredentials

func (m *Manager) ReadCredentials(ctx context.Context, secretID string, creds any) error

func (*Manager) SaveCredentials

func (m *Manager) SaveCredentials(ctx context.Context, orgID string, creds any) (string, error)

Save Credentials, this is a generic function that can be used to save any type of credentials as long as they can be passed to json.Marshal

type NewManagerOpts

type NewManagerOpts struct {
	Region, AccessKey, SecretKey, SecretPrefix string
	Logger                                     log.Logger
	Role                                       credentials.Role
}

type SecretsManagerIface

type SecretsManagerIface interface {
	GetSecretValue(ctx context.Context, params *secretsmanager.GetSecretValueInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.GetSecretValueOutput, error)
	CreateSecret(ctx context.Context, params *secretsmanager.CreateSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.CreateSecretOutput, error)
	DeleteSecret(ctx context.Context, params *secretsmanager.DeleteSecretInput, optFns ...func(*secretsmanager.Options)) (*secretsmanager.DeleteSecretOutput, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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