encrypt

package
v0.0.0-...-8c7aa0b Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2018 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "SpartaVault",
	Short: "CLI utility to encapsulate working with AWS KMS",
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type KMSEncryptedValue

type KMSEncryptedValue struct {
	KMSKeyARNOrGUID string
	PropertyName    string
	Key             string
	Nonce           string
	Value           string
	Created         string
}

KMSEncryptedValue represents the encrypted secret value

func (*KMSEncryptedValue) Decrypt

func (kmsValue *KMSEncryptedValue) Decrypt(awsSession *session.Session) ([]byte, error)

Decrypt attempts to decrypt the given KMSEncryptedValue using the optional awsSession. If the awsSession value is nil, a default session will be used

Jump to

Keyboard shortcuts

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