helpers

package
v0.0.0-...-9862afa Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAWSBucket

func GetAWSBucket(jobURL string) (string, error)

GetAWSBucket grabs the bucket from a given s3 url

func GetAWSKey

func GetAWSKey(jobURL string) (string, error)

GetAWSKey grabs the path and filename for destination

func GetLocalDestination

func GetLocalDestination(config gonfig.Gonfig, dbInstance db.Storage, jobID string) (string, error)

GetLocalDestination builds the path and filename of the local destination file

func GetLocalSourcePath

func GetLocalSourcePath(config gonfig.Gonfig, jobID string) (string, error)

GetLocalSourcePath builds the path and filename for the local source file

func GetOutputFilename

func GetOutputFilename(dbInstance db.Storage, jobID string) (string, error)

GetOutputFilename build the destination path with the output filename

func SetAWSCredentials

func SetAWSCredentials(jobURL string) error

SetAWSCredentials will parse the job source and set the credentials on environment variables

Types

This section is empty.

Jump to

Keyboard shortcuts

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