kms

package
v0.0.0-...-a93c916 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KMSKeyTopic = "enckey"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

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

func NewKey

func NewKey(name string, session client.ConfigProvider) (*Key, error)

func (*Key) Create

func (*Key) Delete

func (k *Key) Delete(purge bool) error

Delete deletes a key. Use cloudobject.PurgeDeleteOpts as input.

func (*Key) Exists

func (k *Key) Exists() (bool, error)

func (*Key) ID

func (k *Key) ID() cloudobject.ID

func (*Key) Read

func (k *Key) Read() error

func (*Key) Status

func (k *Key) Status() cloudobject.Status

func (*Key) Update

type KeySecrets

type KeySecrets awskms.KeyMetadata

func (*KeySecrets) Map

func (secrets *KeySecrets) Map() map[string]string

type KeySpec

type KeySpec struct {
	KeyUsage KeyUsage
	KeyType  KeyType
	Policy   *string
	Tags     map[string]string
}

func EncryptSymmetric

func EncryptSymmetric() KeySpec

func (*KeySpec) CreateAliasInput

func (spec *KeySpec) CreateAliasInput(alias, id string) awskms.CreateAliasInput

func (*KeySpec) CreateKeyInput

func (spec *KeySpec) CreateKeyInput() awskms.CreateKeyInput

func (*KeySpec) Valid

func (spec *KeySpec) Valid() (bool, error)

type KeyStatus

type KeyStatus awskms.KeyMetadata

func (*KeyStatus) ProviderID

func (status *KeyStatus) ProviderID() cloudobject.ProviderID

func (*KeyStatus) String

func (status *KeyStatus) String() string

type KeyType

type KeyType string
const (
	SymmetricDefaultKeyType KeyType = "SYMMETRIC_DEFAULT"
	RSA2048KeyType          KeyType = "RSA_2048"
	RSA3072KeyType          KeyType = "RSA_3072"
	RSA4096KeyType          KeyType = "RSA_4096"
	NISTP256KeyType         KeyType = "ECC_NIST_P256"
	NISTP521KeyType         KeyType = "ECC_NIST_P521"
)

func (KeyType) String

func (kt KeyType) String() string

type KeyUsage

type KeyUsage string
const (
	SignVerifyKeyUsage     KeyUsage = "SIGN_VERIFY"
	EncryptDecryptKeyUsage KeyUsage = "ENCRYPT_DECRYPT"
)

func (KeyUsage) String

func (usage KeyUsage) String() string

Jump to

Keyboard shortcuts

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