page

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityPage

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

func NewEntitiesPage

func NewEntitiesPage(
	keyMap keymap.KeyMap,
	width, height int,
	entityTree model.EntityTree,
	styles style.Styles,
) EntityPage

func (EntityPage) ContentForFile added in v0.4.0

func (p EntityPage) ContentForFile() []string

func (EntityPage) GetSelectionActions

func (p EntityPage) GetSelectionActions() (model.Entity, map[model.Entity]bool)

func (EntityPage) HasAppliedFilter added in v0.3.0

func (p EntityPage) HasAppliedFilter() bool

func (EntityPage) Help

func (p EntityPage) Help() string

func (EntityPage) HighjackingInput

func (p EntityPage) HighjackingInput() bool

func (EntityPage) ToggleShowContext added in v0.5.0

func (p EntityPage) ToggleShowContext() GenericPage

func (EntityPage) Update

func (p EntityPage) Update(msg tea.Msg) (GenericPage, tea.Cmd)

func (EntityPage) View

func (p EntityPage) View() string

func (EntityPage) WithBlur added in v0.4.0

func (p EntityPage) WithBlur() GenericPage

func (EntityPage) WithDimensions

func (p EntityPage) WithDimensions(width, height int) GenericPage

func (EntityPage) WithEntityTree

func (p EntityPage) WithEntityTree(entityTree model.EntityTree) EntityPage

func (EntityPage) WithFocus added in v0.4.0

func (p EntityPage) WithFocus() GenericPage

func (EntityPage) WithMaintainSelection

func (p EntityPage) WithMaintainSelection(maintainSelection bool) EntityPage

func (EntityPage) WithStyles added in v0.5.0

func (p EntityPage) WithStyles(styles style.Styles) GenericPage

type GenericPage

type GenericPage interface {
	Update(msg tea.Msg) (GenericPage, tea.Cmd)
	View() string
	ContentForFile() []string
	ToggleShowContext() GenericPage
	HasAppliedFilter() bool
	HighjackingInput() bool
	WithDimensions(width, height int) GenericPage
	WithFocus() GenericPage
	WithBlur() GenericPage
	WithStyles(style.Styles) GenericPage
	Help() string
}

type LogsPage

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

func NewLogsPage

func NewLogsPage(
	keyMap keymap.KeyMap,
	width, height int,
	descending bool,
	styles style.Styles,
) LogsPage

func (LogsPage) ContentForFile added in v0.4.0

func (p LogsPage) ContentForFile() []string

func (LogsPage) GetSelectedLog

func (p LogsPage) GetSelectedLog() *model.PageLog

func (LogsPage) HasAppliedFilter added in v0.3.0

func (p LogsPage) HasAppliedFilter() bool

func (LogsPage) Help

func (p LogsPage) Help() string

func (LogsPage) HighjackingInput

func (p LogsPage) HighjackingInput() bool

func (LogsPage) ScrolledDownByOne

func (p LogsPage) ScrolledDownByOne() LogsPage

func (LogsPage) ScrolledUpByOne

func (p LogsPage) ScrolledUpByOne() LogsPage

func (LogsPage) ToggleShowContext added in v0.5.0

func (p LogsPage) ToggleShowContext() GenericPage

func (LogsPage) Update

func (p LogsPage) Update(msg tea.Msg) (GenericPage, tea.Cmd)

func (LogsPage) View

func (p LogsPage) View() string

func (LogsPage) WithAppendedLogs

func (p LogsPage) WithAppendedLogs(logs []model.PageLog) LogsPage

func (LogsPage) WithBlur added in v0.4.0

func (p LogsPage) WithBlur() GenericPage

func (LogsPage) WithContainerColors added in v0.4.0

func (p LogsPage) WithContainerColors(containerIdToColor map[string]model.ContainerColors) LogsPage

func (LogsPage) WithDimensions

func (p LogsPage) WithDimensions(width, height int) GenericPage

func (LogsPage) WithFocus added in v0.4.0

func (p LogsPage) WithFocus() GenericPage

func (LogsPage) WithLogFilter added in v0.4.0

func (p LogsPage) WithLogFilter(lf model.LogFilter) LogsPage

func (LogsPage) WithLogsRemovedForContainer

func (p LogsPage) WithLogsRemovedForContainer(containerSpec model.Container) LogsPage

func (LogsPage) WithLogsTerminatedForContainer

func (p LogsPage) WithLogsTerminatedForContainer(containerSpec model.Container) LogsPage

func (LogsPage) WithNewNameFormat added in v0.4.0

func (p LogsPage) WithNewNameFormat() LogsPage

func (LogsPage) WithNewTimestampFormat added in v0.4.0

func (p LogsPage) WithNewTimestampFormat() LogsPage

func (LogsPage) WithNoStickyness

func (p LogsPage) WithNoStickyness() LogsPage

func (LogsPage) WithReversedLogOrder added in v0.4.0

func (p LogsPage) WithReversedLogOrder() LogsPage

func (LogsPage) WithStickyness

func (p LogsPage) WithStickyness() LogsPage

func (LogsPage) WithStyles added in v0.5.0

func (p LogsPage) WithStyles(styles style.Styles) GenericPage

func (LogsPage) WithUpdatedShortNames

func (p LogsPage) WithUpdatedShortNames(f func(model.Container) (model.PageLogContainerName, error)) (LogsPage, error)

type SingleLogPage

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

func NewSingleLogPage

func NewSingleLogPage(
	keyMap keymap.KeyMap,
	width, height int,
	styles style.Styles,
) SingleLogPage

func (SingleLogPage) ContentForClipboard added in v0.4.0

func (p SingleLogPage) ContentForClipboard() []string

func (SingleLogPage) ContentForFile added in v0.4.0

func (p SingleLogPage) ContentForFile() []string

func (SingleLogPage) HasAppliedFilter

func (p SingleLogPage) HasAppliedFilter() bool

func (SingleLogPage) Help

func (p SingleLogPage) Help() string

func (SingleLogPage) HighjackingInput

func (p SingleLogPage) HighjackingInput() bool

func (SingleLogPage) ToggleShowContext added in v0.5.0

func (p SingleLogPage) ToggleShowContext() GenericPage

func (SingleLogPage) Update

func (p SingleLogPage) Update(msg tea.Msg) (GenericPage, tea.Cmd)

func (SingleLogPage) View

func (p SingleLogPage) View() string

func (SingleLogPage) WithBlur added in v0.4.0

func (p SingleLogPage) WithBlur() GenericPage

func (SingleLogPage) WithDimensions

func (p SingleLogPage) WithDimensions(width, height int) GenericPage

func (SingleLogPage) WithFocus added in v0.4.0

func (p SingleLogPage) WithFocus() GenericPage

func (SingleLogPage) WithLog

func (p SingleLogPage) WithLog(log model.PageLog) SingleLogPage

func (SingleLogPage) WithStyles added in v0.5.0

func (p SingleLogPage) WithStyles(styles style.Styles) GenericPage

type Type

type Type int
const (
	EntitiesPageType Type = iota
	LogsPageType
	SingleLogPageType
)

Jump to

Keyboard shortcuts

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