tui

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithEnvironmentSelectorShell added in v0.8.0

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

func WithMachineSelectorShell

func WithMachineSelectorShell(
	appStyle lipgloss.Style,
	ctx context.Context,
	state *state.State,
	environmentClient environmentv1connect.EnvironmentServiceClient,
	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 SelectedEnvironmentMsg added in v0.8.0

type SelectedEnvironmentMsg struct {
	Environment *typesv1.Environment
}

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