tui

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAccountSelectorShell

func WithAccountSelectorShell(
	appStyle lipgloss.Style,
	ctx context.Context,
	state *state.State,
	organizationClient organizationv1connect.OrganizationServiceClient,
	children tea.Model,
) *accountSelectorShell

func WithMachineSelectorShell

func WithMachineSelectorShell(
	appStyle lipgloss.Style,
	ctx context.Context,
	state *state.State,
	accountClient accountv1connect.AccountServiceClient,
	children tea.Model,
) *machineSelectorShell

func WithOrgSelectorShell

func WithOrgSelectorShell(
	appStyle lipgloss.Style,
	ctx context.Context,
	state *state.State,
	userClient userv1connect.UserServiceClient,
	children tea.Model,
) *orgSelectorShell

Types

type AppendLogsMsg

type AppendLogsMsg struct {
	Events []*typesv1.LogEventGroup
}

type QuerierModel

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

func NewQuerierModel

func NewQuerierModel(
	appStyle lipgloss.Style,
	ctx context.Context,
	state *state.State,
	queryClient queryv1connect.QueryServiceClient,
	sendMsg func(tea.Msg),
) *QuerierModel

func (*QuerierModel) Init

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

func (*QuerierModel) Update

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

func (*QuerierModel) View

func (m *QuerierModel) View() string

type SelectedAccountMsg

type SelectedAccountMsg struct {
	Account *typesv1.Account
}

type SelectedMachineMsg

type SelectedMachineMsg struct {
	Machine *typesv1.Machine
}

type SelectedOrganizationMsg

type SelectedOrganizationMsg struct {
	Organization *typesv1.Organization
}

type StartLogStreamMsg

type StartLogStreamMsg struct {
	Events   []*typesv1.LogEventGroup
	StopFunc func() tea.Msg
}

type SummaryMsg

type SummaryMsg struct {
	*queryv1.SummarizeEventsResponse
}

Directories

Path Synopsis
components

Jump to

Keyboard shortcuts

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