ui

package
v0.0.0-...-8c67aa0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	AddChildElement(ele Element)
	GetChildElement(id string) (Element, bool)
}

type Element

type Element interface {
	ID() string
	Update(fc int)
	Height() int
	Render(writer io.Writer, width int)
}

type ElementContainer

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

func NewElementContainer

func NewElementContainer(ui *Manager) *ElementContainer

func (*ElementContainer) AddChildElement

func (e *ElementContainer) AddChildElement(ele Element)

func (*ElementContainer) GetChildElement

func (e *ElementContainer) GetChildElement(id string) (Element, bool)

func (*ElementContainer) Height

func (e *ElementContainer) Height() int

func (*ElementContainer) Render

func (e *ElementContainer) Render(writer io.Writer, width int)

func (*ElementContainer) Update

func (e *ElementContainer) Update(fc int)

type ExecElement

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

func NewExecElement

func NewExecElement(ui *Manager, execID string, opts *executorv1.ExecOpts) *ExecElement

func (*ExecElement) Complete

func (e *ExecElement) Complete(exitCode int32, err string)

func (*ExecElement) Height

func (e *ExecElement) Height() int

func (*ExecElement) ID

func (e *ExecElement) ID() string

func (*ExecElement) Render

func (e *ExecElement) Render(writer io.Writer, width int)

func (*ExecElement) SetMessage

func (e *ExecElement) SetMessage(message string)

func (*ExecElement) Update

func (e *ExecElement) Update(fc int)

type Manager

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

func NewManager

func NewManager(stream event.Stream) *Manager

func (*Manager) AddChildElement

func (ui *Manager) AddChildElement(ele Element)

func (*Manager) GetChildElement

func (ui *Manager) GetChildElement(id string) (Element, bool)

func (*Manager) Start

func (ui *Manager) Start()

func (*Manager) Stop

func (ui *Manager) Stop()

type RuntimeElement

type RuntimeElement struct {
	*ElementContainer
	// contains filtered or unexported fields
}

func NewRuntimeElement

func NewRuntimeElement(ui *Manager, runtimeID string, opts *executorv1.Opts) *RuntimeElement

func (*RuntimeElement) Complete

func (e *RuntimeElement) Complete(err string)

func (*RuntimeElement) EndExec

func (e *RuntimeElement) EndExec()

func (*RuntimeElement) EndExport

func (e *RuntimeElement) EndExport()

func (*RuntimeElement) EndImport

func (e *RuntimeElement) EndImport()

func (*RuntimeElement) Height

func (e *RuntimeElement) Height() int

func (*RuntimeElement) ID

func (e *RuntimeElement) ID() string

func (*RuntimeElement) Render

func (e *RuntimeElement) Render(writer io.Writer, width int)

func (*RuntimeElement) SetMessage

func (e *RuntimeElement) SetMessage(message string)

func (*RuntimeElement) StartExec

func (e *RuntimeElement) StartExec()

func (*RuntimeElement) StartExport

func (e *RuntimeElement) StartExport()

func (*RuntimeElement) StartImport

func (e *RuntimeElement) StartImport()

func (*RuntimeElement) Update

func (e *RuntimeElement) Update(fc int)

Jump to

Keyboard shortcuts

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