Documentation ¶
Index ¶
- func RunTUI(ctx context.Context, state *state.State, ...) error
- func WithAccountSelectorShell(appStyle lipgloss.Style, ctx context.Context, state *state.State, ...) *accountSelectorShell
- func WithMachineSelectorShell(appStyle lipgloss.Style, ctx context.Context, state *state.State, ...) *machineSelectorShell
- func WithOrgSelectorShell(appStyle lipgloss.Style, ctx context.Context, state *state.State, ...) *orgSelectorShell
- type AppendLogsMsg
- type QuerierModel
- type SelectedAccountMsg
- type SelectedMachineMsg
- type SelectedOrganizationMsg
- type StartLogStreamMsg
- type SummaryMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTUI ¶
func RunTUI( ctx context.Context, state *state.State, userClient userv1connect.UserServiceClient, organizationClient organizationv1connect.OrganizationServiceClient, accountClient accountv1connect.AccountServiceClient, queryClient queryv1connect.QueryServiceClient, ) error
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) View ¶
func (m *QuerierModel) View() string
type SelectedAccountMsg ¶
type SelectedMachineMsg ¶
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
}
Click to show internal directories.
Click to hide internal directories.