view

package
v1.0.35 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterKind kind = iota
	ServiceKind
	TaskKind
	ContainerKind
	TaskDefinitionKind
	HelpKind
	DescriptionKind
	ServiceEventsKind
	LogKind
	AutoScalingKind
	ModalKind
	EmptyKind
)

Variables

This section is empty.

Functions

func Start

func Start(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 *ui.Notice

	// API client
	*api.Store
	// Option from cli args
	Option
	// Current screen item content, use uppercase to make items like app.cluster easy to access
	Entity
	// contains filtered or unexported fields
}

tview App

func (*App) LogValue added in v1.0.35

func (app *App) LogValue() slog.Value

type Entity

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

Entity contains ECS resources to show, use uppercase to make items like app.cluster easy to access

type Option

type Option struct {
	// Read only mode indicator
	ReadOnly bool
	// Reload resources every x second(s), -1 is stop auto refresh
	Refresh int
	// ECS exec shell
	Shell string
	// Here for help view
	Debug bool
	// Here for help view
	JSON bool
	// Here for help view
	LogFile string
	// Here for help view
	ConfigFile string
	// Here for help view
	Theme string
	// Default cluster name
	Cluster string
}

type PortForwardingSession

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

Jump to

Keyboard shortcuts

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