awsi

package
v0.0.0-...-4e2fb3a Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFromS3

func DownloadFromS3(bucket, region, objKey string, fileHd *os.File) (int64, error)

Download obj from s3 into fileHd (must be writable), return size of download in bytes

func GetConfig

func GetConfig() (aws.Config, error)

func GetDsnFromJson

func GetDsnFromJson(dsnJson string, useLocalhost bool, poolSize int) (string, error)

func GetDsnFromSecret

func GetDsnFromSecret(secret string, useLocalhost bool, poolSize int) (string, error)

func GetPrivateIp

func GetPrivateIp() (string, error)

func GetSecretValue

func GetSecretValue(secret string) (string, error)

func LogMetric

func LogMetric(metricName string, dimentions *map[string]string, count int)

func StartExecution

func StartExecution(stateMachineARN string, stateMachineInput map[string]interface{}, name string) (string, error)

func SyncS3Files

func SyncS3Files(dbpool *pgxpool.Pool, workspaceName, keyPrefix, trimPrefix, contentType string) error

func UploadToS3

func UploadToS3(bucket, region, objKey string, fileHd *os.File) error

upload object to S3, reading the obj from fileHd (from current position to EOF)

Types

type S3Object

type S3Object struct {
	Key  string
	Size int64
}

func ListS3Objects

func ListS3Objects(prefix *string) ([]*S3Object, error)

ListObjects lists the objects in a bucket with prefix if not nil.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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