Documentation ¶
Index ¶
- Constants
- func CreateKmsSigner(uri string) (signature.Signer, error)
- func GetEncryptionKey(secretName string) ([]byte, error)
- func S3CreatePresignedDownload(uri string) (string, error)
- func S3DownloadResource(uri string) ([]byte, error)
- func S3UploadArchive(reader io.ReadSeeker, uri string) error
- type S3Uri
Constants ¶
View Source
const ( PresignValidDuration = 5 * time.Minute S3UriPrefix = "s3://" )
Variables ¶
This section is empty.
Functions ¶
func CreateKmsSigner ¶
CreateKmsSigner creates a signer instance from a KMS ARN
func GetEncryptionKey ¶
GetEncryptionKey loads an encryption key from Secrets Manager. In Secrets Manager it is stored base64-encoded, so it gets decoded and returned as binary byte slice.
func S3CreatePresignedDownload ¶
S3CreatePresignedDownload creates a presigned link to an object and returns it as string.
func S3DownloadResource ¶
S3DownloadResource downloads an object by its key and returns the contents as byte slice.
func S3UploadArchive ¶
func S3UploadArchive(reader io.ReadSeeker, uri string) error
S3UploadArchive uploads the byte slice of the archive to S3.
Types ¶
Click to show internal directories.
Click to hide internal directories.