handlers

package
v0.0.0-...-0cb12c1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NumOfFilesPerUploadJobPart = 2
)

Variables

This section is empty.

Functions

func ApplyFlags

func ApplyFlags(commandLineInput *common.CopyCmdArgsAndFlags, jobPartOrderToFill *common.CopyJobPartOrder)

func HandleCopyCommand

func HandleCopyCommand(commandLineInput common.CopyCmdArgsAndFlags) string

handles the copy command dispatches the job order (in parts) to the storage engine

func HandleDownloadFromWastoreToLocal

func HandleDownloadFromWastoreToLocal(
	commandLineInput *common.CopyCmdArgsAndFlags,
	jobPartOrderToFill *common.CopyJobPartOrder,
	dispatchJobPartOrderFunc func(jobPartOrder *common.CopyJobPartOrder))

func HandleListCommand

func HandleListCommand(commandLineInput common.ListCmdArgsAndFlags)

handles the list command dispatches the list order to the storage engine

func HandleUploadFromLocalToWastore

func HandleUploadFromLocalToWastore(commandLineInput *common.CopyCmdArgsAndFlags,
	jobPartOrderToFill *common.CopyJobPartOrder,
	dispatchJobPartOrderFunc func(jobPartOrder *common.CopyJobPartOrder))

func PrintExistingJobIds

func PrintExistingJobIds(data []byte)

PrintExistingJobIds prints the response of listOrder command when listOrder command requested the list of existing jobs

func PrintJobProgressSummary

func PrintJobProgressSummary(summaryData []byte, jobId string) (status common.Status)

PrintJobProgressSummary prints the response of listOrder command when listOrder command requested the progress summary of an existing job

func PrintJobTransfers

func PrintJobTransfers(data []byte, jobId string)

PrintJobTransfers prints the response of listOrder command when list Order command requested the list of specific transfer of an existing job

Types

This section is empty.

Jump to

Keyboard shortcuts

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