nomad

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocIDAndTaskNameFromKey

func AllocIDAndTaskNameFromKey(key string) (string, string)

func FetchAllocSpec

func FetchAllocSpec(url, token, allocID string) tea.Cmd

func FetchAllocations

func FetchAllocations(url, token, jobID, jobNamespace string) tea.Cmd

func FetchJobSpec

func FetchJobSpec(url, token, jobID, jobNamespace string) tea.Cmd

func FetchJobs

func FetchJobs(url, token string) tea.Cmd

func FetchLogLine

func FetchLogLine(logline string) tea.Cmd

func FetchLogs

func FetchLogs(url, token, allocID, taskName string, logType LogType) tea.Cmd

func GetPageKeyHelp

func GetPageKeyHelp(currentPage Page) string

func JobIDAndNamespaceFromKey

func JobIDAndNamespaceFromKey(key string) (string, string)

Types

type ChangePageMsg

type ChangePageMsg struct{ NewPage Page }

type LogType

type LogType int8
const (
	StdOut LogType = iota
	StdErr
)

func (LogType) ShortString

func (p LogType) ShortString() string

func (LogType) String

func (p LogType) String() string

type Page

type Page int8
const (
	Unset Page = iota
	JobsPage
	JobSpecPage
	AllocationsPage
	AllocSpecPage
	LogsPage
	LoglinePage
)

func (Page) Backward

func (p Page) Backward() Page

func (Page) Forward

func (p Page) Forward() Page

func (Page) GetFilterPrefix

func (p Page) GetFilterPrefix(jobID, taskName, allocID string) string

func (Page) LoadingString

func (p Page) LoadingString() string

func (Page) Loads

func (p Page) Loads() bool

func (Page) String

func (p Page) String() string

type PageLoadedMsg

type PageLoadedMsg struct {
	Page        Page
	TableHeader []string
	AllPageData []page.Row
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL