Documentation ¶
Index ¶
- func DownloadFromS3(bucket, region, objKey string, fileHd *os.File) (int64, error)
- func DownloadFromS3v2(downloader *manager.Downloader, bucket, objKey string, fileHd *os.File) (int64, error)
- func GetConfig() (aws.Config, error)
- func GetDsnFromJson(dsnJson string, useLocalhost bool, poolSize int) (string, error)
- func GetDsnFromSecret(secret string, useLocalhost bool, poolSize int) (string, error)
- func GetPrivateIp() (string, error)
- func GetSecretValue(secret string) (string, error)
- func LogMetric(metricName string, dimentions *map[string]string, count int)
- func NewDownloader(region string) (*manager.Downloader, error)
- func StartExecution(stateMachineARN string, stateMachineInput map[string]interface{}, name string) (string, error)
- func SyncS3Files(dbpool *pgxpool.Pool, workspaceName, keyPrefix, trimPrefix, contentType string) error
- func UploadToS3(bucket, region, objKey string, fileHd *os.File) error
- type S3Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFromS3 ¶
Download obj from s3 into fileHd (must be writable), return size of download in bytes
func DownloadFromS3v2 ¶
func DownloadFromS3v2(downloader *manager.Downloader, bucket, objKey string, fileHd *os.File) (int64, error)
Use a shared Downloader to download obj from s3 into fileHd (must be writable), return size of download in bytes
func GetDsnFromJson ¶
func GetDsnFromSecret ¶
func GetPrivateIp ¶
func GetSecretValue ¶
func NewDownloader ¶
func NewDownloader(region string) (*manager.Downloader, error)
func StartExecution ¶
func SyncS3Files ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.