Documentation ¶
Overview ¶
Package awsfuncs contains all the code that deals directly with AWS services
Index ¶
- func FetchFile(remfilename string, bucket string) ([]byte, []byte, []byte)
- func FetchKey(remfilename string, bucket string, context string) []byte
- func GenerateEnvKey(cmkID string, context string) ([]byte, []byte)
- func PutEncFile(filedata []byte, remfilename string, bucket string, iv []byte, ...)
- func PutEncKey(key []byte, remfilename string, bucket string, sse string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchFile ¶
FetchFile This function is used to fetch the decrypted file from S3 and grab all pertinent metatdata (IV, key)
func FetchKey ¶
FetchKey This function is used to fetch a saved encrypted key from S3 and decrypt it with KMS
func GenerateEnvKey ¶
GenerateEnvKey This function is used to generate KMS encryption keys for envelope encryption
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.