queue

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cause

type Cause struct {
	UpstreamURL      string
	UpstreamProject  string
	UpstreamBuild    int
	ShortDescription string
}

Cause represent the reason why job is triggered

type CauseAction

type CauseAction struct {
	Causes []Cause
}

CauseAction is the collection of causes

type Client

type Client struct {
	core.JenkinsCore
}

Client is the client of queue

func (*Client) Cancel

func (q *Client) Cancel(id int) (err error)

Cancel will cancel a job from the queue

func (*Client) Get

func (q *Client) Get() (status *JobQueue, err error)

Get returns the job queue

type Item

type Item struct {
	Blocked                    bool
	Buildable                  bool
	ID                         int
	Params                     string
	Pending                    bool
	Stuck                      bool
	URL                        string
	Why                        string
	BuildableStartMilliseconds int64
	InQueueSince               int64
	Actions                    []CauseAction
}

Item is the item of job queue

type JobQueue

type JobQueue struct {
	Items []Item
}

JobQueue represent the job queue

Jump to

Keyboard shortcuts

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