Documentation
¶
Index ¶
- func AllocExec(client *api.Client, allocID, task string, args []string) (int, error)
- func FetchAllTasks(client api.Client, columns []string) tea.Cmd
- func FetchAllocSpec(client api.Client, allocID string) tea.Cmd
- func FetchEventsStream(client api.Client, topics Topics, namespace string, page Page) tea.Cmd
- func FetchJobMeta(client api.Client, jobID, jobNamespace string) tea.Cmd
- func FetchJobSpec(client api.Client, jobID, jobNamespace string) tea.Cmd
- func FetchJobs(client api.Client, columns []string) tea.Cmd
- func FetchLogs(client api.Client, alloc api.Allocation, taskName string, logType LogType, ...) tea.Cmd
- func FetchStats(client api.Client, allocID, allocName string) tea.Cmd
- func FetchTasksForJob(client api.Client, jobID, jobNamespace string, columns []string) tea.Cmd
- func GetAllPageConfigs(width, height int, compactTables bool) map[Page]page.Config
- func GetPageKeyHelp(currentPage Page, filterFocused, filterApplied, saving bool, logType LogType, ...) string
- func JobIDAndNamespaceFromKey(key string) (string, string)
- func NewReader(r io.Reader, c byte, h Handler) io.Reader
- func PrettifyLine(l string, p Page) tea.Cmd
- func ReadEventsStreamNextMessage(c EventsStream, code *gojq.Code) tea.Cmd
- func ReadLogsStreamNextMessage(c LogsStream) tea.Cmd
- func UpdatePageDataWithDelay(id int, p Page, d time.Duration) tea.Cmd
- type Event
- type EventsStream
- type EventsStreamMsg
- type ExecCompleteMsg
- type Handler
- type LogType
- type LogsStream
- type LogsStreamMsg
- type Page
- func (p Page) Backward(inJobsMode bool) Page
- func (p Page) CanBeFirstPage() bool
- func (p Page) DoesLoad() bool
- func (p Page) DoesReload() bool
- func (p Page) Forward() Page
- func (p Page) GetFilterPrefix(namespace, jobID, taskName, allocName, allocID string, eventTopics Topics, ...) string
- func (p Page) LoadingString() string
- func (p Page) ShowsTasks() bool
- func (p Page) String() string
- type PageLoadedMsg
- type StdoutProxy
- type TaskInfo
- type Topics
- type UpdatePageDataMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAllTasks ¶ added in v0.10.0
func FetchEventsStream ¶ added in v0.4.0
func FetchJobMeta ¶ added in v0.10.0
func FetchStats ¶ added in v0.12.0
func FetchTasksForJob ¶ added in v0.10.0
func GetAllPageConfigs ¶ added in v0.4.3
func GetPageKeyHelp ¶
func NewReader ¶ added in v0.14.0
NewReader returns a reader that escapes the c character (following new lines), in the same manner OpenSSH handling, which defaults to `~`.
For illustrative purposes, we use `~` in documentation as a shorthand for escaping character.
If following a new line, reader sees:
- `~~`, only one is emitted
- `~.` (or any character), the handler is invoked with the character. If handler returns true, `~.` will be skipped; otherwise, it's propagated.
- `~` and it's the last character in stream, it's propagated
Appearances of `~` when not preceded by a new line are propagated unmodified.
func ReadEventsStreamNextMessage ¶ added in v0.4.0
func ReadEventsStreamNextMessage(c EventsStream, code *gojq.Code) tea.Cmd
func ReadLogsStreamNextMessage ¶ added in v0.9.0
func ReadLogsStreamNextMessage(c LogsStream) tea.Cmd
Types ¶
type EventsStream ¶ added in v0.6.0
type EventsStreamMsg ¶ added in v0.4.0
type ExecCompleteMsg ¶ added in v0.14.0
type ExecCompleteMsg struct {
Output string
}
type Handler ¶ added in v0.14.0
Handler is a callback for handling an escaped char. Reader would skip the escape char and passed char if returns true; otherwise, it preserves them in output
type LogsStream ¶ added in v0.9.0
type LogsStream struct { Chan <-chan *api.StreamFrame LogType LogType }
type LogsStreamMsg ¶ added in v0.9.0
type Page ¶
type Page int8
func (Page) CanBeFirstPage ¶ added in v0.12.0
func (Page) DoesReload ¶ added in v0.3.0
func (Page) GetFilterPrefix ¶
func (Page) LoadingString ¶
func (Page) ShowsTasks ¶ added in v0.10.0
type PageLoadedMsg ¶
type PageLoadedMsg struct { Page Page TableHeader []string AllPageRows []page.Row EventsStream EventsStream LogsStream LogsStream }
type StdoutProxy ¶ added in v0.14.0
type StdoutProxy struct {
SavedOutput []byte
}
type TaskInfo ¶ added in v0.10.0
type TaskInfo struct { Alloc api.Allocation TaskName string Running bool }
func TaskInfoFromKey ¶ added in v0.10.0
type Topics ¶ added in v0.6.0
func TopicsForAlloc ¶ added in v0.7.0
func TopicsForJob ¶ added in v0.5.0
type UpdatePageDataMsg ¶ added in v0.3.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.