jobs

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CTXJob   = "job"
	CTXUser  = "user"
	CTXJobID = "job_id"
)

Keys for credential releated items stored in the Gin Context

Variables

This section is empty.

Functions

func Cancel added in v0.0.3

func Cancel(c *gin.Context)

Cancel cancels the pending job. The response status code will be 202 if successful, or 405 if the job cannot be canceled.

func CancelInfo added in v0.0.3

func CancelInfo(c *gin.Context)

CancelInfo to determine if the job can be cancelled. The response will include the following field: can_cancel: [boolean] Indicates whether this job can be canceled

func GetJob

func GetJob(c *gin.Context)

GetJob is a Gin handler function which returns the job as a JSON object

func GetJobs

func GetJobs(c *gin.Context)

GetJobs is a Gin handler function which returns list of jobs This takes lookup parameters and order parameters to filter and sort output data

func Middleware

func Middleware(c *gin.Context)

Middleware generates a middleware handler function that works inside of a Gin request. This function takes CTXJobID from Gin Context and retrives credential data from the collection and store credential data under key CTXJob in Gin Context

func StdOut added in v0.0.4

func StdOut(c *gin.Context)

StdOut returns ANSI standard output of a Job

Types

This section is empty.

Jump to

Keyboard shortcuts

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