ui

package
v0.0.0-...-e1737ed Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() error

Types

type DetailPanelView

type DetailPanelView interface {
	DetailPanelViewName() string
	PanelView
}

type HeaderPanelData

type HeaderPanelData struct {
	Account   string
	Region    string
	Principal string
}

type HeaderPanelView

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

func NewHeaderPanelView

func NewHeaderPanelView(d HeaderPanelData) *HeaderPanelView

func (*HeaderPanelView) Render

func (v *HeaderPanelView) Render() string

type HomeDetailPanelView

type HomeDetailPanelView struct {
}

func (*HomeDetailPanelView) DetailPanelViewName

func (v *HomeDetailPanelView) DetailPanelViewName() string

func (*HomeDetailPanelView) Render

func (v *HomeDetailPanelView) Render() string

type HomeSidePanelData

type HomeSidePanelData struct {
	Services []string
}

type HomeSidePanelView

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

func NewHomeSidePanelView

func NewHomeSidePanelView(d HomeSidePanelData) *HomeSidePanelView

func (*HomeSidePanelView) Render

func (v *HomeSidePanelView) Render() string

func (*HomeSidePanelView) SidePanelViewName

func (v *HomeSidePanelView) SidePanelViewName() string

type PanelData

type PanelData interface {
}

type PanelView

type PanelView interface {
	Render() string
}

type Shell

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

func NewShell

func NewShell(vm *ViewModel) *Shell

func (*Shell) Render

func (s *Shell) Render() string

type SidePanelData

type SidePanelData interface {
	SidePanelDataName() string
	PanelData
}

type SidePanelView

type SidePanelView interface {
	SidePanelViewName() string
	PanelView
}

type ViewModel

type ViewModel struct {
	HeaderPanelData HeaderPanelData
	SidePanelData   PanelData
}

func (*ViewModel) Init

func (m *ViewModel) Init() tea.Cmd

func (*ViewModel) Update

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

func (*ViewModel) View

func (m *ViewModel) View() string

Jump to

Keyboard shortcuts

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