job

package
v0.0.0-...-12b6483 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	None      = 0
	Activate  = 1
	Abort     = 2
	Suspend   = 3
	Resume    = 4
	Stop      = 5
	Terminate = 6
	Remove    = 7
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Id string

	// runtime
	StartTime time.Time
	Completed bool

	// channels
	PendingActions chan PendingAction
	Exceptions     chan string
	// contains filtered or unexported fields
}

func NewJob

func NewJob(sandboxId string, jobData jrds.JobData, jrdsClient jrdsClient) Job

func (*Job) Run

func (job *Job) Run()

type PendingAction

type PendingAction struct {
	Enum int
	Name string
}

func GetPendingAction

func GetPendingAction(enum int) PendingAction

type StreamHandler

type StreamHandler struct {
	// contains filtered or unexported fields
}

func NewStreamHandler

func NewStreamHandler(client streamClient, jobId, runbookVersionId string) StreamHandler

func (*StreamHandler) SetStream

func (s *StreamHandler) SetStream(message string)

Jump to

Keyboard shortcuts

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