journal

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogsMsg

type LogsMsg struct {
	Err        error
	Logs       []resource.Log
	ResourceID string
}

type Model

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

Model is the model for the confirm component.

func Journal

func Journal(state ui.ApplicationState, r resource.Resource, width, height int) Model

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the journal component.

func (*Model) SetDimensions

func (m *Model) SetDimensions(width, height int)

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type Status

type Status int
const (
	// StatusLoading indicates that the logs are being loaded.
	StatusLoading Status = iota
	// StatusLoaded indicates that the logs have been loaded.
	StatusLoaded
)

Jump to

Keyboard shortcuts

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