aws

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 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 Client

type Client struct {
	KMS KMS
}

Client is an AWS client

func NewClient

func NewClient(d *schema.ResourceData) (*Client, error)

NewClient returns a new aws client

type KMS

type KMS struct {
	Svc kmsiface.KMSAPI
}

KMS is a kms client

func NewKMS

func NewKMS(s *session.Session, creds *credentials.Credentials) KMS

NewKMS returns a KMS client

func (*KMS) EncryptBytes

func (k *KMS) EncryptBytes(plaintext []byte, keyID string) (string, error)

EncryptBytes encrypts the plaintext using the keyID key, result is base64 encoded

Jump to

Keyboard shortcuts

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