Documentation
¶
Index ¶
- func CloseWebSocket(ws *websocket.Conn) tea.Cmd
- func FetchAllocSpec(url, token, allocID string) tea.Cmd
- func FetchAllocations(url, token, jobID, jobNamespace string) tea.Cmd
- func FetchJobSpec(url, token, jobID, jobNamespace string) tea.Cmd
- func FetchJobs(url, token string) tea.Cmd
- func FetchLogLine(logline string) tea.Cmd
- func FetchLogs(url, token, allocID, taskName string, logType LogType) tea.Cmd
- 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 ReadExecWebSocketNextMessage(ws *websocket.Conn) 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(p Page, d time.Duration) tea.Cmd
- type AllocationInfo
- type ExecWebSocketConnectedMsg
- type ExecWebSocketHeartbeatMsg
- type ExecWebSocketResponseMsg
- type LogType
- type Page
- type PageLoadedMsg
- type UpdatePageDataMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAllocSpec ¶
func FetchAllocations ¶
func FetchJobSpec ¶
func FetchLogLine ¶
func GetKeypress ¶ added in v0.2.0
func GetPageKeyHelp ¶
func InitiateWebSocket ¶ added in v0.2.0
func ReadExecWebSocketNextMessage ¶ added in v0.2.0
func SendHeartbeatWithDelay ¶ added in v0.2.0
func SendWebSocketMessage ¶ added in v0.2.0
Types ¶
type AllocationInfo ¶ added in v0.2.0
func AllocationInfoFromKey ¶ added in v0.2.0
func AllocationInfoFromKey(key string) (AllocationInfo, error)
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 Page ¶
type Page int8
func (Page) DoesReload ¶ added in v0.3.0
func (Page) GetFilterPrefix ¶
func (Page) LoadingString ¶
type PageLoadedMsg ¶
type UpdatePageDataMsg ¶ added in v0.3.0
type UpdatePageDataMsg struct{ Page Page }
Click to show internal directories.
Click to hide internal directories.