Documentation
¶
Index ¶
- Constants
- func CreateTasks(cmd string, issuer resource.Resource, fn task.Func, ids ...resource.ID) tea.Cmd
- func HandleCompletedTasks(msg CompletedTasksMsg) (info string, err error)
- func HandleCreatedTasks(msg CreatedTasksMsg) (cmd tea.Cmd, info string, err error)
- func WaitTasks(created CreatedTasksMsg) tea.Cmd
- type CompletedTasksMsg
- type CreatedTasksMsg
- type ListMaker
- type Maker
Constants ¶
View Source
const ( ApplyCommand = "apply" ReloadStateCommand = "reload state" )
Variables ¶
This section is empty.
Functions ¶
func CreateTasks ¶ added in v0.1.11
CreateTasks returns a command that creates one or more tasks using the given IDs. If a task fails to be created then no further tasks will be created, and an error notification is sent. If all tasks are successfully created then a status notification is sent accordingly.
func HandleCompletedTasks ¶ added in v0.1.11
func HandleCompletedTasks(msg CompletedTasksMsg) (info string, err error)
func HandleCreatedTasks ¶ added in v0.1.11
func HandleCreatedTasks(msg CreatedTasksMsg) (cmd tea.Cmd, info string, err error)
func WaitTasks ¶ added in v0.1.11
func WaitTasks(created CreatedTasksMsg) tea.Cmd
Types ¶
type CompletedTasksMsg ¶ added in v0.1.11
type CompletedTasksMsg CreatedTasksMsg
type CreatedTasksMsg ¶ added in v0.1.11
type CreatedTasksMsg struct {
// The command of the completed tasks (all tasks are assumed to be running
// the same command).
Command string
// The parent resource of the page on which the request to create tasks was
// issued.
Issuer resource.Resource
// Successfully created tasks
Tasks task.Multi
// Errors from creating tasks
CreateErrs []error
}
type ListMaker ¶
type ListMaker struct {
ModuleService tui.ModuleService
WorkspaceService tui.WorkspaceService
RunService tui.RunService
TaskService tui.TaskService
MaxTasks int
Helpers *tui.Helpers
}
Click to show internal directories.
Click to hide internal directories.