credentialsmanager

package
v2.16.6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialsFetcher added in v2.16.0

type CredentialsFetcher interface {
	GetDataStore(ctx context.Context, secretsName string) (*DataStore, error)
}

type CredentialsManager

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

func New

func New() *CredentialsManager

func (*CredentialsManager) GetDataStore

func (cm *CredentialsManager) GetDataStore(ctx context.Context, secretsName string) (*DataStore, error)

func (*CredentialsManager) UsingSDKV1

func (cm *CredentialsManager) UsingSDKV1(sm SMAPIV1) *CredentialsManager

func (*CredentialsManager) UsingSDKV1Session

func (cm *CredentialsManager) UsingSDKV1Session(sess *sessV1.Session) *CredentialsManager

func (*CredentialsManager) UsingSDKV2

func (cm *CredentialsManager) UsingSDKV2(sm SMAPIV2) *CredentialsManager

func (*CredentialsManager) UsingSDKV2Config

func (cm *CredentialsManager) UsingSDKV2Config(cfg awsV2.Config) *CredentialsManager

type DataStore

type DataStore struct {
	CA  []byte `json:"ca"`
	Key []byte `json:"key"`
	Crt []byte `json:"crt"`
}

type SMAPIV1

type SMAPIV1 interface {
	GetSecretValue(input *smV1.GetSecretValueInput) (*smV1.GetSecretValueOutput, error)
}

type SMAPIV2

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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