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
}
Click to show internal directories.
Click to hide internal directories.