Documentation ¶
Overview ¶
Package util implements utility methods
Package util implements utility methods ¶
Package util implements utility methods ¶
Package util implements utility methods ¶
Package util implements utility methods
Index ¶
- func CopyFile(awsSession *session.Session, filename string, bucket string) error
- func DownloadFile(awsSession *session.Session, folder string, filename string, bucket string) error
- func GetCurrentDirectory() (string, error)
- func GetEnvKey(key string, fallback string) string
- func GetSSMParameter(awsSession *session.Session, name string, decrypt bool) (string, error)
- func SendEmail(awsSession *session.Session, toAddress string, bodyContent string, ...) error
- func UploadFile(awsSession *session.Session, folder string, filename string, bucket string) error
- type HTTPResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
DownloadFile downloads a file from Amazon S3 and stores it in the specified location.
func GetCurrentDirectory ¶ added in v1.1.0
GetCurrentDirectory gets the directory in which the app was started and returns either the full directory or an error
func GetEnvKey ¶
GetEnvKey tries to get the specified key from the OS environment and returns either the value or the fallback that was provided
func GetSSMParameter ¶
GetSSMParameter gets a parameter from the AWS Simple Systems Manager service.
Types ¶
type HTTPResponse ¶
HTTPResponse is the response type for the HTTP requests
func HTTPGet ¶
HTTPGet executes a GET request to a URL and returns the response body as a JSON object
Click to show internal directories.
Click to hide internal directories.