tasksview

package
v1.13.0-rc3 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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const PollInterval = 2 * time.Second
View Source
const ViewName = "tasks"

Variables

This section is empty.

Functions

func CheckTasksCmd

func CheckTasksCmd(lastHash uint64, stackName string) tea.Cmd

CheckTasksCmd checks if tasks have changed and returns update message if so

func GetTasksHelpContent

func GetTasksHelpContent() []helpview.HelpCategory

GetTasksHelpContent returns categorized help for the tasks view

func LoadTasksCmd

func LoadTasksCmd(stackName string) tea.Cmd

Types

type Model

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

func New

func New(width, height int, stackName string) *Model

func (*Model) FrameContent

func (m *Model) FrameContent() string

func (*Model) FrameFooter

func (m *Model) FrameFooter() string

func (*Model) FrameHeader

func (m *Model) FrameHeader() string

func (*Model) FrameTitle

func (m *Model) FrameTitle() string

func (*Model) HasErrors

func (m *Model) HasErrors() bool

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Name

func (m *Model) Name() string

func (*Model) OnEnter

func (m *Model) OnEnter() tea.Cmd

func (*Model) OnExit

func (m *Model) OnExit() tea.Cmd

func (*Model) SetSize

func (m *Model) SetSize(width, height int)

func (*Model) ShortHelpItems

func (m *Model) ShortHelpItems() []helpbar.HelpEntry

func (*Model) Update

func (m *Model) Update(msg tea.Msg) tea.Cmd

func (*Model) View

func (m *Model) View() string

type PollRetryMsg

type PollRetryMsg struct{}

PollRetryMsg signals that polling found no changes; the Update handler should schedule the next tick.

type SortField

type SortField int
const (
	SortByName SortField = iota
	SortByService
	SortByNode
	SortByState
)

type TasksLoadedMsg

type TasksLoadedMsg struct {
	Tasks []docker.TaskEntry
	Error error
}

type TickMsg

type TickMsg time.Time

Jump to

Keyboard shortcuts

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