storage

package
v0.0.0-...-ce299e0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServerSideEncryption = "AES256"
)

Functions

func DeleteAttachment

func DeleteAttachment(testid string, attachmentName string) error

DeleteAttachment is used for deleting attachments that were uploaded for a test.

func DownloadAttachment

func DownloadAttachment(testid string, attachmentName string) (*aws.WriteAtBuffer, error)

DownloadAttachment is used for downloading attachments that were uploaded for a test.

func DownloadScript

func DownloadScript(scriptid string, zipFileName string) (*aws.WriteAtBuffer, error)

DownloadScript is used to download test scripts

func SetS3

func SetS3(accessKey, secretAccessKey, region, bucketName string) error

SetS3 is used to set the aws session and bucket name for s3 access

func UploadAttachment

func UploadAttachment(testid string, attachmentName string, file multipart.File) error

UploadAttachment is used for uploading attachments for a test.

func UploadScript

func UploadScript(testid string, scriptid string, zipFileName string, file multipart.File) error

UploadScript is used for uploading test scripts

Types

This section is empty.

Jump to

Keyboard shortcuts

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