ui

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FKey = 'F'
)

Variables

This section is empty.

Functions

func Show

func Show(option Option) error

Entry point of the app

Types

type App

type App struct {
	// tview Application
	*tview.Application
	// Info + table area pages UI for MainScreen
	*tview.Pages
	// Notice text UI in MainScreen footer
	Notice *Notice
	// MainScreen content UI
	MainScreen *tview.Flex
	// API client
	*api.Store

	// Option from cli args
	Option
	// Current screen item content
	Entity
	// contains filtered or unexported fields
}

tview App

func (*App) SwitchPage added in v1.0.24

func (app *App) SwitchPage(reload bool) bool

Switch app.Pages page

type ClusterView

type ClusterView struct {
	View
	// contains filtered or unexported fields
}

type ContainerView

type ContainerView struct {
	View
	// contains filtered or unexported fields
}

type DataView

type DataView interface {
	// contains filtered or unexported methods
}

Interface to show each view

type Entity

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

Entity contains ECS resources to show

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

View footer struct

type InfoItem

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

Info item name and value

type KeyInput

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

Keyboard key and description

type Kind

type Kind int
const (
	ClusterPage Kind = iota
	ServicePage
	TaskPage
	ContainerPage
	TaskDefinitionPage
	TaskDefinitionRevisionsPage
	DescriptionPage
	ServiceEventsPage
	LogPage
	AutoScalingPage
	EmptyKind
)

func (Kind) String

func (k Kind) String() string

type Notice added in v1.0.24

type Notice struct {
	*tview.TextView
	// contains filtered or unexported fields
}

func (*Notice) Error added in v1.0.24

func (n *Notice) Error(s string)

func (*Notice) Errorf added in v1.0.24

func (n *Notice) Errorf(s string, args ...interface{})

func (*Notice) Info added in v1.0.24

func (n *Notice) Info(s string)

func (*Notice) Infof added in v1.0.24

func (n *Notice) Infof(s string, args ...interface{})

func (*Notice) Warn added in v1.0.24

func (n *Notice) Warn(s string)

func (*Notice) Warnf added in v1.0.24

func (n *Notice) Warnf(s string, args ...interface{})

type Option added in v1.0.18

type Option struct {
	// Read only mode indicator
	ReadOnly bool
	// Reload resources in each move
	StaleData bool
	// Basic logger
	Logger *logrus.Logger
}

type ServiceView

type ServiceView struct {
	View
	// contains filtered or unexported fields
}

type TaskView

type TaskView struct {
	View
	// contains filtered or unexported fields
}

type View

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

Base struct of different views

Jump to

Keyboard shortcuts

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