jobexec

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteJob

func ExecuteJob(confPath string, jobToRun string) error

func GetJobList

func GetJobList(confPath string) []string

Types

type JobItemView added in v1.11.0

type JobItemView struct {
	// contains filtered or unexported fields
}

func NewJobItemView added in v1.11.0

func NewJobItemView(id string, focusable bool, paddingLeft int, label string, stater *Stater, spinner *iface.SharedSpinner, theme iface.Theme, width int) *JobItemView

func (*JobItemView) Focusable added in v1.11.0

func (m *JobItemView) Focusable() bool

func (*JobItemView) Height added in v1.11.0

func (m *JobItemView) Height() int

func (*JobItemView) Id added in v1.11.0

func (m *JobItemView) Id() string

func (*JobItemView) Resize added in v1.11.0

func (m *JobItemView) Resize(w int)

func (*JobItemView) SetFocus added in v1.11.0

func (m *JobItemView) SetFocus(level int)

func (*JobItemView) SetLabel added in v1.11.0

func (m *JobItemView) SetLabel(label string)

func (*JobItemView) View added in v1.11.0

func (m *JobItemView) View() string

type RefreshStatusMsg

type RefreshStatusMsg time.Time

type Stater added in v1.11.0

type Stater struct {
	// contains filtered or unexported fields
}

func (*Stater) SetState added in v1.11.0

func (s *Stater) SetState(newState TaskState)

func (*Stater) State added in v1.11.0

func (s *Stater) State() TaskState

type StepStatus

type StepStatus struct {
	Stater

	BeforeHooks *TaskStatus
	Tasks       []TaskStatus
	AfterHooks  *TaskStatus
}

type TaskState

type TaskState int
const (
	STATE_NOT_STARTED TaskState = iota
	STATE_RUNNING
	STATE_SUCCESSFUL
	STATE_FAILED
)

type TaskStatus

type TaskStatus struct {
	Stater

	Output cmdrunr.SafeBuffer
}

Jump to

Keyboard shortcuts

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