job

package
v3.17.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CancelCmd

type CancelCmd struct {
	JobID string `arg:"" help:"Job ID to cancel" required:""`
	Web   bool   `help:"Open the job in a web browser after it has been cancelled" short:"w"`
}

func (*CancelCmd) Help

func (c *CancelCmd) Help() string

func (*CancelCmd) Run

func (c *CancelCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type ClusterInfo

type ClusterInfo struct {
	ID   string
	Name string
}

type ListCmd

type ListCmd struct {
	Pipeline string   `help:"Filter by pipeline slug" short:"p"`
	Since    string   `help:"Filter jobs from builds created since this time (e.g. 1h, 30m)"`
	Until    string   `help:"Filter jobs from builds created before this time (e.g. 1h, 30m)"`
	Duration string   `help:"Filter by duration (e.g. >10m, <5m, 20m) - supports >, <, >=, <= operators"`
	State    []string `help:"Filter by job state"`
	Queue    string   `help:"Filter by queue name"`
	OrderBy  string   `help:"Order results by field (start_time, duration)" name:"order-by"`
	Limit    int      `help:"Maximum number of jobs to return" default:"100"`
	NoLimit  bool     `help:"Fetch all jobs (overrides --limit)" name:"no-limit"`
	Output   string   `help:"Output format. One of: json, yaml, text" short:"o" default:"${output_default_format}" enum:"json,yaml,text"`
}

func (*ListCmd) Help

func (c *ListCmd) Help() string

func (*ListCmd) Run

func (c *ListCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type RetryCmd

type RetryCmd struct {
	JobID string `arg:"" help:"Job UUID to retry"`
}

func (*RetryCmd) Help

func (c *RetryCmd) Help() string

func (*RetryCmd) Run

func (c *RetryCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

type UnblockCmd

type UnblockCmd struct {
	JobID string `arg:"" help:"Job UUID to unblock"`
	Data  string `help:"JSON formatted data to unblock the job"`
}

func (*UnblockCmd) Help

func (c *UnblockCmd) Help() string

func (*UnblockCmd) Run

func (c *UnblockCmd) Run(kongCtx *kong.Context, globals cli.GlobalFlags) error

Jump to

Keyboard shortcuts

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