kms

package
v0.12.4-pre5 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrCode

func ErrCode(msg string, err error) error

Types

type KMS

type KMS struct {
	Service *kms.KMS
	// contains filtered or unexported fields
}

KMS is a wrapper around the aws KMS service with some default config info

func New

func New(opts ...KMSOption) KMS

func NewSession

func NewSession(account common.Account) KMS

NewSession creates a new KMS session

func (*KMS) GetKmsKeyId

func (k *KMS) GetKmsKeyId(ctx context.Context, aliasName string) (string, error)

func (*KMS) GetKmsKeyIdByTags

func (k *KMS) GetKmsKeyIdByTags(ctx context.Context, inputTags []string, org string) (string, error)

type KMSOption

type KMSOption func(*KMS)

func WithCredentials

func WithCredentials(key, secret, token, region string) KMSOption

func WithSession

func WithSession(sess *session.Session) KMSOption

Jump to

Keyboard shortcuts

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