job

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AttributeKindLink = "link"
	AttributeKindText = "text"
)

Attribute kinds for JobAttributes. Kind tells the UI how to render Value.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribute added in v1.5.2

type Attribute struct {
	Kind  string `yaml:"kind,omitempty" json:"kind,omitempty"`
	Value string `yaml:"value,omitempty" json:"value,omitempty"`
}

Attribute is a generic, plugin-agnostic value surfaced on a job in the UI.

type Job

type Job struct {
	object.Object   `yaml:",inline" json:",inline"`
	Status          status.Status        `yaml:"status,omitempty" json:"status,omitempty"`
	IsSync          bool                 `yaml:"is_sync,omitempty" json:"is_sync,omitempty"`
	StoreResultSync bool                 `yaml:"store_result_sync,omitempty" json:"store_result_sync,omitempty"`
	Error           string               `yaml:"error,omitempty" json:"error,omitempty"`
	CommandCriteria *set.Set[string]     `yaml:"command_criteria,omitempty" json:"command_criteria,omitempty"`
	ClusterCriteria *set.Set[string]     `yaml:"cluster_criteria,omitempty" json:"cluster_criteria,omitempty"`
	CommandID       string               `yaml:"command_id,omitempty" json:"command_id,omitempty"`
	CommandName     string               `yaml:"command_name,omitempty" json:"command_name,omitempty"`
	ClusterID       string               `yaml:"cluster_id,omitempty" json:"cluster_id,omitempty"`
	ClusterName     string               `yaml:"cluster_name,omitempty" json:"cluster_name,omitempty"`
	CanceledBy      string               `yaml:"canceled_by,omitempty" json:"canceled_by,omitempty"`
	JobAttributes   map[string]Attribute `yaml:"job_attributes,omitempty" json:"job_attributes,omitempty"`
	Result          *result.Result       `yaml:"result,omitempty" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*Job) Init

func (j *Job) Init() error

func (*Job) Outputs added in v1.5.2

func (j *Job) Outputs() map[string]string

func (*Job) SetOutput added in v1.5.2

func (j *Job) SetOutput(key, value string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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