view

package
v0.0.0-...-51def66 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListView

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

func (*ListView) GetSelectedData

func (r *ListView) GetSelectedData() string

func (*ListView) HandleEvent

func (r *ListView) HandleEvent(event string)

func (*ListView) Render

func (r *ListView) Render()

func (*ListView) ScrollDown

func (r *ListView) ScrollDown()

func (*ListView) ScrollUp

func (r *ListView) ScrollUp()

func (*ListView) SetData

func (r *ListView) SetData(listData []string)

type RegionListView

type RegionListView struct {
	ListView
}

func NewRegionListView

func NewRegionListView(regionList []string) *RegionListView

This function should be called only once due to the fact that the coordinates of the widget is fixed. TODO: use view.TerminalEnvironment to determine actual terminal dimension

type ServiceInstanceHeaderFactory

type ServiceInstanceHeaderFactory func() []string

type ServiceInstanceListView

type ServiceInstanceListView struct {
	ListView
}

func NewServiceInstanceListView

func NewServiceInstanceListView(serviceInstanceList []string) *ServiceInstanceListView

This function should be called only once due to the fact that the coordinates of the widget is fixed. TODO: use view.TerminalEnvironment to determine actual terminal dimension

type ServiceInstanceTableView

type ServiceInstanceTableView struct {
	TableView
}

func NewServiceInstanceTableView

func NewServiceInstanceTableView(serviceId string, serviceInstanceData []string) *ServiceInstanceTableView

TODO: use view.TerminalEnvironment to determine actual terminal dimension

type ServiceListView

type ServiceListView struct {
	ListView
}

func NewServiceListView

func NewServiceListView(serviceList []string) *ServiceListView

This function should be called only once due to the fact that the coordinates of the widget is fixed. TODO: use view.TerminalEnvironment to determine actual terminal dimension

type TableView

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

func (*TableView) GetSelectedData

func (t *TableView) GetSelectedData() string

func (*TableView) HandleEvent

func (t *TableView) HandleEvent(event string)

func (*TableView) Render

func (t *TableView) Render()

func (*TableView) SetData

func (t *TableView) SetData(listData [][]string)

type TerminalEnvironment

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

func NewTerminalEnvironment

func NewTerminalEnvironment() *TerminalEnvironment

func (*TerminalEnvironment) Height

func (t *TerminalEnvironment) Height() int

func (*TerminalEnvironment) Update

func (t *TerminalEnvironment) Update()

func (*TerminalEnvironment) Width

func (t *TerminalEnvironment) Width() int

type View

type View interface {
	Render()
	HandleEvent(event string)
	GetSelectedData() string
}

Jump to

Keyboard shortcuts

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