helpers

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

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

Go to latest
Published: Mar 28, 2018 License: Apache-2.0 Imports: 7 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 types.SystemConfig, dbInstance db.Storage, jobID string) (string, error)

GetLocalDestination builds the path and filename of the local destination file

func GetLocalSourcePath

func GetLocalSourcePath(config types.SystemConfig, jobID string) (string, error)

GetLocalSourcePath builds the path and filename for the local source file

func GetNameAndContainer

func GetNameAndContainer(source string) (string, string, error)

GetNameAndContainer returns the name and the container of a media 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