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 FetchEventsStream(url, token, topics, namespace string) tea.Cmd
- func FetchJobSpec(url, token, jobID, jobNamespace string) tea.Cmd
- func FetchJobs(url, token string) tea.Cmd
- func FetchLogs(url, token, allocID, taskName string, logType LogType, logOffset int) 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(r *bufio.Reader) tea.Cmd
- 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(id int, p Page, d time.Duration) tea.Cmd
- type AllocationInfo
- type EventsStreamMsg
- type ExecWebSocketConnectedMsg
- type ExecWebSocketHeartbeatMsg
- type ExecWebSocketResponseMsg
- type LogType
- type Page
- type PageLoadedMsg
- type PersistentConnection
- type UpdatePageDataMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAllocSpec ¶
func FetchAllocations ¶
func FetchEventsStream ¶ added in v0.4.0
func FetchJobSpec ¶
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 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 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 Page ¶
type Page int8
func (Page) DoesReload ¶ added in v0.3.0
func (Page) GetFilterPrefix ¶
func (Page) LoadingString ¶
type PageLoadedMsg ¶
type PageLoadedMsg struct { Page Page TableHeader []string AllPageRows []page.Row Connection PersistentConnection }
type PersistentConnection ¶ added in v0.4.0
type PersistentConnection struct { Reader *bufio.Reader Body io.ReadCloser }
type UpdatePageDataMsg ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.