tui

package
v0.0.0-...-a4d814b Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(providers []provider.Provider) error

func RunWithSearch

func RunWithSearch(providers []provider.Provider) error

Types

type AccountList

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

func NewAccountList

func NewAccountList(p provider.Provider, accounts []provider.Account) *AccountList

func (*AccountList) Init

func (m *AccountList) Init() tea.Cmd

func (*AccountList) Update

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

func (*AccountList) View

func (m *AccountList) View() string

type AccountsLoadedMsg

type AccountsLoadedMsg struct {
	ProviderIdx int
	Accounts    []provider.Account
	Err         error
}

type CacheLoadedMsg

type CacheLoadedMsg struct {
	Entries []provider.SearchEntry
	Err     error
}

type ConfirmDialog

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

func NewConfirmDialog

func NewConfirmDialog(message string, confirmCmd tea.Cmd) *ConfirmDialog

func (*ConfirmDialog) Init

func (m *ConfirmDialog) Init() tea.Cmd

func (*ConfirmDialog) Update

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

func (*ConfirmDialog) View

func (m *ConfirmDialog) View() string

type ErrorMsg

type ErrorMsg struct{ Err error }

type GlobalSearch

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

func NewGlobalSearch

func NewGlobalSearch(entries []provider.SearchEntry) *GlobalSearch

func (*GlobalSearch) Init

func (m *GlobalSearch) Init() tea.Cmd

func (*GlobalSearch) Update

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

func (*GlobalSearch) View

func (m *GlobalSearch) View() string

type Model

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

func New

func New(providers []provider.Provider) Model

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

type PopMsg

type PopMsg struct{ FollowUp tea.Cmd }

type ProviderList

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

func NewProviderList

func NewProviderList(providers []provider.Provider) *ProviderList

func (*ProviderList) Init

func (m *ProviderList) Init() tea.Cmd

func (*ProviderList) Update

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

func (*ProviderList) View

func (m *ProviderList) View() string

type PushMsg

type PushMsg struct{ Model tea.Model }

type RecordDeletedMsg

type RecordDeletedMsg struct{ Err error }

type RecordForm

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

func NewRecordForm

func NewRecordForm(p provider.Provider, z provider.Zone, rec provider.Record, isEdit bool) *RecordForm

func (*RecordForm) Init

func (m *RecordForm) Init() tea.Cmd

func (*RecordForm) Update

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

func (*RecordForm) View

func (m *RecordForm) View() string

type RecordList

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

func NewRecordList

func NewRecordList(p provider.Provider, z provider.Zone) *RecordList

func (*RecordList) Init

func (m *RecordList) Init() tea.Cmd

func (*RecordList) Update

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

func (*RecordList) View

func (m *RecordList) View() string

type RecordSavedMsg

type RecordSavedMsg struct {
	Record provider.Record
	Err    error
}

type RecordsLoadedMsg

type RecordsLoadedMsg struct {
	ZoneID  string
	Records []provider.Record
	Err     error
}

type StatusMsg

type StatusMsg struct{ Text string }

type ZoneList

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

func NewZoneList

func NewZoneList(p provider.Provider, accounts []provider.Account) *ZoneList

func (*ZoneList) Init

func (m *ZoneList) Init() tea.Cmd

func (*ZoneList) Update

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

func (*ZoneList) View

func (m *ZoneList) View() string

type ZonesLoadedMsg

type ZonesLoadedMsg struct {
	AccountID string
	Zones     []provider.Zone
	Err       error
}

Jump to

Keyboard shortcuts

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