Documentation
¶
Index ¶
- func RunTUI(ctx context.Context, state *state.State, ...) error
- func WithEnvironmentSelectorShell(appStyle lipgloss.Style, ctx context.Context, state *state.State, ...) *environmentSelectorShell
- 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 SelectedEnvironmentMsg
- 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, environmentClient environmentv1connect.EnvironmentServiceClient, queryClient queryv1connect.QueryServiceClient, ) error
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) View ¶
func (m *QuerierModel) View() string
type SelectedEnvironmentMsg ¶ added in v0.8.0
type SelectedEnvironmentMsg struct {
Environment *typesv1.Environment
}
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.