amazon

package
v0.0.0-...-4f58271 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsSvc

type AwsSvc struct {
	Cfg  aws.Config
	Keys KmsKeys
}
var Service *AwsSvc

func BuildAWSClient

func BuildAWSClient(awsRegion string, kmsKeys KmsKeys) *AwsSvc

func (*AwsSvc) Init

func (awsSvc *AwsSvc) Init()

func (*AwsSvc) KMS

func (awsSvc *AwsSvc) KMS() *KMSClient

func (*AwsSvc) SecretsManager

func (awsSvc *AwsSvc) SecretsManager() *SecretsClient

type KMSClient

type KMSClient struct {
	*kms.Client
}

func (*KMSClient) DecryptString

func (svc *KMSClient) DecryptString(data []byte) string

func (*KMSClient) EncryptString

func (svc *KMSClient) EncryptString(data string, keyId string) []byte

type KmsKeys

type KmsKeys struct {
	EncryptionKey string
	JwtKey        string
}

type SecretsClient

type SecretsClient struct {
	*secretsmanager.Client
}

func (*SecretsClient) GetSecretData

func (svc *SecretsClient) GetSecretData(data string) string

func (*SecretsClient) StoreSecret

func (svc *SecretsClient) StoreSecret(name string, data string) string

Jump to

Keyboard shortcuts

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