jobs

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

jobs models represent and manipulate jobs within a Galaxy instance Relevant api endpoints are: `/api/jobs`, `/api/job_lock`

Index

Constants

View Source
const BasePath = "/api/jobs"

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Id         blend4go.GalaxyID `json:"id,omitempty"`
	ToolId     string            `json:"tool_id,omitempty"`
	UpdateTime string            `json:"update_time,omitempty"`
	HistoryId  string            `json:"history_id,omitempty"`
	ExitCode   uint              `json:"exit_code,omitempty"`
	State      string            `json:"state,omitempty"`
	CreateTime string            `json:"create_time,omitempty"`
	ModelClass string            `json:"model_class,omitempty"`
	Inputs     interface{}       `json:"inputs,omitempty"`
	Outputs    interface{}       `json:"outputs,omitempty"`
	Params     interface{}       `json:"params,omitempty"`
	// contains filtered or unexported fields
}

func Get added in v0.1.7

func List added in v0.1.7

func List(ctx context.Context, g *blend4go.GalaxyInstance) ([]*Job, error)

func NewJob added in v0.1.7

Execute tool with a given parameter payload

func (*Job) Delete added in v0.1.7

func (j *Job) Delete(ctx context.Context) error

Delete or stop a job

func (*Job) GetBasePath

func (j *Job) GetBasePath() string

func (*Job) GetID added in v0.1.4

func (j *Job) GetID() blend4go.GalaxyID

func (*Job) Resume added in v0.1.7

func (j *Job) Resume(ctx context.Context) error

Resume paused job

func (*Job) SetGalaxyInstance

func (j *Job) SetGalaxyInstance(g *blend4go.GalaxyInstance)

func (*Job) SetID added in v0.1.4

func (j *Job) SetID(id blend4go.GalaxyID)

Jump to

Keyboard shortcuts

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