views

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PipelineLogsKeysRegular = PipelineLogsKeyMap{
	Up: key.NewBinding(
		key.WithKeys("k", "up"),
		key.WithHelp("↑/k", "up"),
	),
	Down: key.NewBinding(
		key.WithKeys("j", "down"),
		key.WithHelp("↓/j", "down"),
	),
	Retry: key.NewBinding(
		key.WithKeys("r"),
		key.WithHelp("r", "refetch"),
	),
	Quit: key.NewBinding(
		key.WithKeys("q"),
		key.WithHelp("q", "quit"),
	),
}

Shown when the services are being updated

Functions

This section is empty.

Types

type ConnectionInitFormValues

type ConnectionInitFormValues struct {
	// contains filtered or unexported fields
}

type ConnectionsInitPage

type ConnectionsInitPage struct {
	// contains filtered or unexported fields
}

func (ConnectionsInitPage) Init

func (m ConnectionsInitPage) Init() tea.Cmd

func (ConnectionsInitPage) Update

func (m ConnectionsInitPage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ConnectionsInitPage) View

func (m ConnectionsInitPage) View() string

type ConnectionsManagePage

type ConnectionsManagePage struct {
	// contains filtered or unexported fields
}

func NewConnectionsManagePage

func NewConnectionsManagePage() ConnectionsManagePage

func (ConnectionsManagePage) Init

func (m ConnectionsManagePage) Init() tea.Cmd

func (ConnectionsManagePage) Update

func (m ConnectionsManagePage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ConnectionsManagePage) View

func (m ConnectionsManagePage) View() string

type InfoPage

type InfoPage struct {
	// contains filtered or unexported fields
}

func NewInfoPage

func NewInfoPage() InfoPage

func (InfoPage) Init

func (m InfoPage) Init() tea.Cmd

func (InfoPage) Update

func (m InfoPage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (InfoPage) View

func (m InfoPage) View() string

type MainModel

type MainModel struct {
	// contains filtered or unexported fields
}

This is the main model that will be used to render all sub-models

func RootScreen

func RootScreen(s *state.AppState) MainModel

func (MainModel) Init

func (m MainModel) Init() tea.Cmd

func (MainModel) SwitchScreen

func (m MainModel) SwitchScreen(model tea.Model) (tea.Model, tea.Cmd)

This function is used to switch between screens, the caller should supply the "route" taken so far to get to this screen, so that users can return to the previous screen

func (MainModel) Update

func (m MainModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (MainModel) View

func (m MainModel) View() string

type OfficialRelease

type OfficialRelease struct {
	NewVersion string // The new version of the source
}

replace with download manager

type PipelineConfiguratorKeyMap

type PipelineConfiguratorKeyMap struct {
	Retry   key.Binding
	Confirm key.Binding
	Switch  key.Binding // switch table focus
	Remove  key.Binding // remove service from pipeline
	Back    key.Binding // go back one level
	Save    key.Binding // save the pipeline
	Quit    key.Binding
	Refetch key.Binding
}

Keys to navigate

func (PipelineConfiguratorKeyMap) FullHelp

func (k PipelineConfiguratorKeyMap) FullHelp() [][]key.Binding

func (PipelineConfiguratorKeyMap) ShortHelp

func (k PipelineConfiguratorKeyMap) ShortHelp() []key.Binding

type PipelineConfiguratorPage

type PipelineConfiguratorPage struct {
	// contains filtered or unexported fields
}

func NewPipelineConfiguratorPage

func NewPipelineConfiguratorPage() PipelineConfiguratorPage

func (PipelineConfiguratorPage) Init

func (m PipelineConfiguratorPage) Init() tea.Cmd

func (PipelineConfiguratorPage) Update

func (m PipelineConfiguratorPage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (PipelineConfiguratorPage) View

type PipelineDetailsKeyMap

type PipelineDetailsKeyMap struct {
	Retry   key.Binding
	Confirm key.Binding
	Quit    key.Binding
}

Keys to navigate

func (PipelineDetailsKeyMap) FullHelp

func (k PipelineDetailsKeyMap) FullHelp() [][]key.Binding

func (PipelineDetailsKeyMap) ShortHelp

func (k PipelineDetailsKeyMap) ShortHelp() []key.Binding

type PipelineDetailsPage

type PipelineDetailsPage struct {
	// contains filtered or unexported fields
}

func (PipelineDetailsPage) Init

func (m PipelineDetailsPage) Init() tea.Cmd

func (PipelineDetailsPage) Update

func (m PipelineDetailsPage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (PipelineDetailsPage) View

func (m PipelineDetailsPage) View() string

type PipelineLogsKeyMap

type PipelineLogsKeyMap struct {
	Up      key.Binding
	Down    key.Binding
	Retry   key.Binding
	Confirm key.Binding
	Quit    key.Binding
}

Keys to navigate

func (PipelineLogsKeyMap) FullHelp

func (k PipelineLogsKeyMap) FullHelp() [][]key.Binding

func (PipelineLogsKeyMap) ShortHelp

func (k PipelineLogsKeyMap) ShortHelp() []key.Binding

type PipelineLogsPage

type PipelineLogsPage struct {
	// contains filtered or unexported fields
}

func NewPipelineLogsPage

func NewPipelineLogsPage(service string, author string, version string) PipelineLogsPage

func (PipelineLogsPage) Init

func (m PipelineLogsPage) Init() tea.Cmd

func (PipelineLogsPage) Update

func (m PipelineLogsPage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (PipelineLogsPage) View

func (m PipelineLogsPage) View() string

type PipelineOverviewKeyMap

type PipelineOverviewKeyMap struct {
	Retry     key.Binding
	Toggle    key.Binding // start/stop pipeline
	Logs      key.Binding
	Details   key.Binding
	Configure key.Binding
	Quit      key.Binding
}

Keys to navigate

func (PipelineOverviewKeyMap) FullHelp

func (k PipelineOverviewKeyMap) FullHelp() [][]key.Binding

func (PipelineOverviewKeyMap) ShortHelp

func (k PipelineOverviewKeyMap) ShortHelp() []key.Binding

type PipelineOverviewPage

type PipelineOverviewPage struct {
	// contains filtered or unexported fields
}

func NewPipelineOverviewPage

func NewPipelineOverviewPage() PipelineOverviewPage

func (PipelineOverviewPage) Init

func (m PipelineOverviewPage) Init() tea.Cmd

func (PipelineOverviewPage) Update

func (m PipelineOverviewPage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (PipelineOverviewPage) View

func (m PipelineOverviewPage) View() string

type PipelineOverviewServiceInfo

type PipelineOverviewServiceInfo struct {
	Name          string
	Version       string
	Author        string
	Configuration openapi.ServicesAuthorServiceVersionGet200Response
}

type PipelineOverviewSummary

type PipelineOverviewSummary struct {
	// Basic pipeline GET request
	Pipeline openapi.PipelineGet200Response
	// Information about services specifically
	Services []PipelineOverviewServiceInfo
	// Status from roverd (for CPU and memory usage)
	Status openapi.StatusGet200Response
}

type PipelineOverviewTab

type PipelineOverviewTab int
const (
	PipelineOverviewTabNone PipelineOverviewTab = iota
	PipelineOverviewTabServiceDetails
	PipelineOverviewTabLogs
)

type ServiceInitFormValues

type ServiceInitFormValues struct {
	Name    string
	Author  string
	Source  string
	Version string
}

type ServiceInitPage

type ServiceInitPage struct {
	// contains filtered or unexported fields
}

func NewServiceInitPage

func NewServiceInitPage() ServiceInitPage

func (ServiceInitPage) Init

func (m ServiceInitPage) Init() tea.Cmd

func (ServiceInitPage) Update

func (m ServiceInitPage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ServiceInitPage) View

func (m ServiceInitPage) View() string

type ServicesListKeyMap

type ServicesListKeyMap struct {
	Retry   key.Binding
	Confirm key.Binding
	Delete  key.Binding
	Back    key.Binding
	Quit    key.Binding
}

Keys to navigate

func (ServicesListKeyMap) FullHelp

func (k ServicesListKeyMap) FullHelp() [][]key.Binding

func (ServicesListKeyMap) ShortHelp

func (k ServicesListKeyMap) ShortHelp() []key.Binding

type ServicesListPage

type ServicesListPage struct {
	// contains filtered or unexported fields
}

func NewServicesListPage

func NewServicesListPage() ServicesListPage

func (ServicesListPage) Init

func (m ServicesListPage) Init() tea.Cmd

func (ServicesListPage) Update

func (m ServicesListPage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ServicesListPage) View

func (m ServicesListPage) View() string

type ServicesOverviewPage

type ServicesOverviewPage struct {
	// contains filtered or unexported fields
}

func NewServicesOverviewPage

func NewServicesOverviewPage() ServicesOverviewPage

func (ServicesOverviewPage) Init

func (m ServicesOverviewPage) Init() tea.Cmd

func (ServicesOverviewPage) Update

func (m ServicesOverviewPage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ServicesOverviewPage) View

func (m ServicesOverviewPage) View() string

type ServicesSyncKeyMap

type ServicesSyncKeyMap struct {
	Retry key.Binding
	Quit  key.Binding
}

func (ServicesSyncKeyMap) FullHelp

func (k ServicesSyncKeyMap) FullHelp() [][]key.Binding

func (ServicesSyncKeyMap) ShortHelp

func (k ServicesSyncKeyMap) ShortHelp() []key.Binding

type ServicesSyncPage

type ServicesSyncPage struct {
	// contains filtered or unexported fields
}

func NewServicesSyncPage

func NewServicesSyncPage() ServicesSyncPage

func (ServicesSyncPage) Init

func (m ServicesSyncPage) Init() tea.Cmd

func (ServicesSyncPage) Update

func (m ServicesSyncPage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ServicesSyncPage) View

func (m ServicesSyncPage) View() string

type ServicesUpdateKeyMap

type ServicesUpdateKeyMap struct {
	Retry     key.Binding
	Confirm   key.Binding
	Quit      key.Binding
	Queue     key.Binding
	QueueAll  key.Binding
	QueueNone key.Binding
}

ServicesUpdateKeyMap defines a set of keybindings. To work for help it must satisfy key.Map

func (ServicesUpdateKeyMap) FullHelp

func (k ServicesUpdateKeyMap) FullHelp() [][]key.Binding

FullHelp returns keybindings for the expanded help view. It's part of the key.Map interface.

func (ServicesUpdateKeyMap) ShortHelp

func (k ServicesUpdateKeyMap) ShortHelp() []key.Binding

ShortHelp returns keybindings to be shown in the mini help view. It's part of the key.Map interface.

type ServicesUpdatePage

type ServicesUpdatePage struct {
	// contains filtered or unexported fields
}

func NewServicesUpdatePage

func NewServicesUpdatePage() ServicesUpdatePage

func (ServicesUpdatePage) Init

func (m ServicesUpdatePage) Init() tea.Cmd

func (ServicesUpdatePage) Update

func (m ServicesUpdatePage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (ServicesUpdatePage) View

func (m ServicesUpdatePage) View() string

type StartPage

type StartPage struct {
	// contains filtered or unexported fields
}

func NewStartPage

func NewStartPage() StartPage

func (StartPage) Init

func (m StartPage) Init() tea.Cmd

func (StartPage) Update

func (m StartPage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (StartPage) View

func (m StartPage) View() string

type TemplateKeyMap

type TemplateKeyMap struct {
	Retry   key.Binding
	Confirm key.Binding
	Quit    key.Binding
}

Keys to navigate

func (TemplateKeyMap) FullHelp

func (k TemplateKeyMap) FullHelp() [][]key.Binding

func (TemplateKeyMap) ShortHelp

func (k TemplateKeyMap) ShortHelp() []key.Binding

type TemplatePage

type TemplatePage struct {
	// contains filtered or unexported fields
}

func NewTemplatePage

func NewTemplatePage() TemplatePage

func (TemplatePage) Init

func (m TemplatePage) Init() tea.Cmd

func (TemplatePage) Update

func (m TemplatePage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (TemplatePage) View

func (m TemplatePage) View() string

type UpdatableItem

type UpdatableItem struct {
	RoverdSource openapi.SourcesGet200ResponseInner
	Release      OfficialRelease
	Queued       bool // whether the user wants to update this source
}

func (UpdatableItem) FilterValue

func (i UpdatableItem) FilterValue() string

type UpdateListItemDelegate

type UpdateListItemDelegate struct{}

func (UpdateListItemDelegate) Height

func (d UpdateListItemDelegate) Height() int

func (UpdateListItemDelegate) Render

func (d UpdateListItemDelegate) Render(w io.Writer, m list.Model, index int, listItem list.Item)

func (UpdateListItemDelegate) Spacing

func (d UpdateListItemDelegate) Spacing() int

func (UpdateListItemDelegate) Update

func (d UpdateListItemDelegate) Update(_ tea.Msg, _ *list.Model) tea.Cmd

type UtilitiesPage

type UtilitiesPage struct {
	// contains filtered or unexported fields
}

func NewUtilitiesPage

func NewUtilitiesPage() UtilitiesPage

func (UtilitiesPage) Init

func (m UtilitiesPage) Init() tea.Cmd

func (UtilitiesPage) Update

func (m UtilitiesPage) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (UtilitiesPage) View

func (m UtilitiesPage) View() string

Jump to

Keyboard shortcuts

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