kms

package
v0.0.0-...-88f351d Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: MIT, CC-BY-4.0, MIT, + 1 more Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const AwsKMSType = security.KMSType("aws")

Variables

This section is empty.

Functions

This section is empty.

Types

type KMS

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

func New

func New(region, keyID string) (*KMS, error)

func (*KMS) DecryptKey

func (k *KMS) DecryptKey(key *security.ManagedKey) error

func (*KMS) GenerateEncryptedKey

func (k *KMS) GenerateEncryptedKey(keyType security.KeyType, ctxKey, ctxVal string) (
	*security.ManagedKey, error)

func (*KMS) GenerateNonce

func (k *KMS) GenerateNonce(bytes int) ([]byte, error)

type KMSCredential

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

func (*KMSCredential) IsExpired

func (c *KMSCredential) IsExpired() bool

func (*KMSCredential) KMS

func (c *KMSCredential) KMS() security.KMS

func (*KMSCredential) KMSType

func (c *KMSCredential) KMSType() security.KMSType

func (*KMSCredential) MarshalJSON

func (c *KMSCredential) MarshalJSON() ([]byte, error)

func (*KMSCredential) Retrieve

func (c *KMSCredential) Retrieve() (credentials.Value, error)

func (*KMSCredential) UnmarshalJSON

func (c *KMSCredential) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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