Documentation ¶
Index ¶
- func CloseWebSocket(ws *websocket.Conn) tea.Cmd
- 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 FetchTasksForJob(client api.Client, jobID, jobNamespace string, columns []string) tea.Cmd
- func GetAllPageConfigs(width, height int, copySavePath bool) map[Page]page.Config
- func GetKeypress(msg tea.KeyMsg) (keypress string)
- func GetPageKeyHelp(currentPage Page, ...) string
- func InitiateWebSocket(host, token, allocID, taskName, command string) tea.Cmd
- func JobIDAndNamespaceFromKey(key string) (string, string)
- func LoadExecPage() tea.Cmd
- func PrettifyLine(l string, p Page) tea.Cmd
- func ReadEventsStreamNextMessage(c EventsStream, code *gojq.Code) tea.Cmd
- func ReadExecWebSocketNextMessage(ws *websocket.Conn) tea.Cmd
- func ReadLogsStreamNextMessage(c LogsStream) tea.Cmd
- func ResizeTty(ws *websocket.Conn, width, height int) tea.Cmd
- func SendHeartbeat(ws *websocket.Conn) tea.Cmd
- func SendHeartbeatWithDelay() tea.Cmd
- func SendWebSocketMessage(ws *websocket.Conn, keyPress string) tea.Cmd
- func UpdatePageDataWithDelay(id int, p Page, d time.Duration) tea.Cmd
- type Event
- type EventsStream
- type EventsStreamMsg
- type ExecWebSocketConnectedMsg
- type ExecWebSocketHeartbeatMsg
- type ExecWebSocketResponseMsg
- type LogType
- type LogsStream
- type LogsStreamMsg
- type Page
- func (p Page) Backward(inJobsMode bool) Page
- 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 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 FetchTasksForJob ¶ added in v0.10.0
func GetAllPageConfigs ¶ added in v0.4.3
func GetKeypress ¶ added in v0.2.0
func GetPageKeyHelp ¶
func InitiateWebSocket ¶ added in v0.2.0
func LoadExecPage ¶ added in v0.4.0
func ReadEventsStreamNextMessage ¶ added in v0.4.0
func ReadEventsStreamNextMessage(c EventsStream, code *gojq.Code) tea.Cmd
func ReadExecWebSocketNextMessage ¶ added in v0.2.0
func ReadLogsStreamNextMessage ¶ added in v0.9.0
func ReadLogsStreamNextMessage(c LogsStream) tea.Cmd
func SendHeartbeatWithDelay ¶ added in v0.2.0
func SendWebSocketMessage ¶ added in v0.2.0
Types ¶
type EventsStream ¶ added in v0.6.0
type EventsStreamMsg ¶ added in v0.4.0
type ExecWebSocketConnectedMsg ¶ added in v0.2.0
type ExecWebSocketHeartbeatMsg ¶ added in v0.2.0
type ExecWebSocketHeartbeatMsg struct{}
type ExecWebSocketResponseMsg ¶ added in v0.2.0
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) 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 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
Click to show internal directories.
Click to hide internal directories.