ui

package
v0.0.0-...-4c5a95e Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddonInfo

func AddonInfo(addonName string) *widgets.Paragraph

func AddonList

func AddonList() *widgets.List

func AddonOptions

func AddonOptions(addonName string) (*widgets.List, *widgets.Paragraph)

func App

func App()

func AppDynos

func AppDynos(appName string) *widgets.List

func AppFormation

func AppFormation(appName string) *widgets.List

func AppInfo

func AppInfo(appName string) *widgets.Paragraph

func AppList

func AppList() *widgets.List

func AppLogs

func AppLogs(screen *BaseScreen, cache *CacheStorage, signal chan bool)

func AppOptions

func AppOptions(appName string, withoutReturn ...bool) (*widgets.List, *widgets.Paragraph)

func BuildHeader

func BuildHeader() *widgets.Paragraph

func DynoInfo

func DynoInfo(selectedDyno string) *widgets.Paragraph

func DynoOptions

func DynoOptions(appName string, dynoName string) *widgets.List

func DynoSizesOptions

func DynoSizesOptions(selectedFormation string) *widgets.List

func FormationInfo

func FormationInfo(selectedFormation string) *widgets.Paragraph

func FormationOptions

func FormationOptions(appName string, formationType string) (*widgets.List, *widgets.Paragraph)

func FormationScalingOptions

func FormationScalingOptions(selectedFormation string) *widgets.List

func Help

func Help() *widgets.Paragraph

func HelpList

func HelpList() *widgets.List

func Home

func Home() (*widgets.List, *widgets.Paragraph)

func RestartSelectedDyno

func RestartSelectedDyno(selectedDyno string) (string, *widgets.Paragraph)

func UpdateFormationQuantity

func UpdateFormationQuantity(selectedFormation string, quantity int) *widgets.Paragraph

func UpdateFormationSize

func UpdateFormationSize(selectedFormation string, size string) *widgets.Paragraph

Types

type BaseScreen

type BaseScreen struct {
	Screen  string
	Header  *widgets.Paragraph
	UIList  *widgets.List
	Display *widgets.Paragraph

	Previous *BaseScreen
}

func (*BaseScreen) Create

func (screen *BaseScreen) Create()

func (*BaseScreen) HandleSelectItem

func (screen *BaseScreen) HandleSelectItem()

func (*BaseScreen) Update

func (screen *BaseScreen) Update()

type CacheStorage

type CacheStorage struct {
	AppName    string
	DynoName   string
	DynoState  string
	LogsBuffer chan string
}

Jump to

Keyboard shortcuts

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