page

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 14 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,
) EntityPage

func (EntityPage) ContentToPersist added in v0.3.0

func (p EntityPage) ContentToPersist() []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) Update

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

func (EntityPage) View

func (p EntityPage) View() string

func (EntityPage) WithDimensions

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

func (EntityPage) WithEntityTree

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

func (EntityPage) WithMaintainSelection

func (p EntityPage) WithMaintainSelection(maintainSelection bool) EntityPage

type GenericPage

type GenericPage interface {
	Update(msg tea.Msg) (GenericPage, tea.Cmd)
	View() string
	ContentToPersist() []string
	HighjackingInput() bool
	HasAppliedFilter() bool
	WithDimensions(width, height int) 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) LogsPage

func (LogsPage) ContentToPersist added in v0.3.0

func (p LogsPage) ContentToPersist() []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) 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) WithDimensions

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

func (LogsPage) WithLogsRemovedForContainer

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

func (LogsPage) WithLogsTerminatedForContainer

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

func (LogsPage) WithNoStickyness

func (p LogsPage) WithNoStickyness() LogsPage

func (LogsPage) WithStickyness

func (p LogsPage) WithStickyness() LogsPage

func (LogsPage) WithUpdatedShortNames

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

type SingleLogPage

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

func NewSingleLogPage

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

func (SingleLogPage) ContentToPersist added in v0.3.0

func (p SingleLogPage) ContentToPersist() []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) Update

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

func (SingleLogPage) View

func (p SingleLogPage) View() string

func (SingleLogPage) WithDimensions

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

func (SingleLogPage) WithLog

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

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