cloud

package
v0.0.0-...-0ede4e5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSKMS

type AWSKMS struct {
	kmsiface.KMSAPI
}

func New

func New(region, kmsEndpoint string, qps, burst int) (*AWSKMS, error)

type KMSMock

type KMSMock struct {
	kmsiface.KMSAPI
	// contains filtered or unexported fields
}

func (*KMSMock) Decrypt

func (m *KMSMock) Decrypt(input *kms.DecryptInput) (*kms.DecryptOutput, error)

func (*KMSMock) Encrypt

func (m *KMSMock) Encrypt(input *kms.EncryptInput) (*kms.EncryptOutput, error)

func (*KMSMock) SetDecryptResp

func (m *KMSMock) SetDecryptResp(dec string, decErr error) *KMSMock

func (*KMSMock) SetEncryptResp

func (m *KMSMock) SetEncryptResp(enc string, encErr error) *KMSMock

Jump to

Keyboard shortcuts

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