poddialogs

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PodCreateDialog

type PodCreateDialog struct {
	*tview.Box
	// contains filtered or unexported fields
}

PodCreateDialog implements pod create dialog

func NewPodCreateDialog

func NewPodCreateDialog() *PodCreateDialog

NewPodCreateDialog returns new pod create dialog primitive PodCreateDialog

func (*PodCreateDialog) Display

func (d *PodCreateDialog) Display()

Display displays this primitive

func (*PodCreateDialog) Draw

func (d *PodCreateDialog) Draw(screen tcell.Screen)

Draw draws this primitive onto the screen.

func (*PodCreateDialog) Focus

func (d *PodCreateDialog) Focus(delegate func(p tview.Primitive))

Focus is called when this primitive receives focus

func (*PodCreateDialog) GetPodSpec

func (d *PodCreateDialog) GetPodSpec() pods.CreateOptions

GetPodSpec returns pod create option spec

func (*PodCreateDialog) HasFocus

func (d *PodCreateDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus

func (*PodCreateDialog) Hide

func (d *PodCreateDialog) Hide()

Hide stops displaying this primitive

func (*PodCreateDialog) InputHandler

func (d *PodCreateDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

InputHandler returns input handler function for this primitive

func (*PodCreateDialog) IsDisplay

func (d *PodCreateDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown

func (*PodCreateDialog) SetCancelFunc

func (d *PodCreateDialog) SetCancelFunc(handler func()) *PodCreateDialog

SetCancelFunc sets form cancel button selected function

func (*PodCreateDialog) SetCreateFunc

func (d *PodCreateDialog) SetCreateFunc(handler func()) *PodCreateDialog

SetCreateFunc sets form create button selected function

func (*PodCreateDialog) SetRect

func (d *PodCreateDialog) SetRect(x, y, width, height int)

SetRect set rects for this primitive.

type PodStatsDialog added in v0.2.0

type PodStatsDialog struct {
	*tview.Box
	// contains filtered or unexported fields
}

PodStatsDialog implements the pods stats dialog primitive

func NewPodStatsDialog added in v0.2.0

func NewPodStatsDialog() *PodStatsDialog

NewPodStatsDialog returns new pod stats dialog

func (*PodStatsDialog) Display added in v0.2.0

func (d *PodStatsDialog) Display()

Display displays this primitive

func (*PodStatsDialog) Draw added in v0.2.0

func (d *PodStatsDialog) Draw(screen tcell.Screen)

Draw draws this primitive onto the screen.

func (*PodStatsDialog) Focus added in v0.2.0

func (d *PodStatsDialog) Focus(delegate func(p tview.Primitive))

Focus is called when this primitive receives focus

func (*PodStatsDialog) HasFocus added in v0.2.0

func (d *PodStatsDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus

func (*PodStatsDialog) Hide added in v0.2.0

func (d *PodStatsDialog) Hide()

Hide stops displaying this primitive

func (*PodStatsDialog) InputHandler added in v0.2.0

func (d *PodStatsDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

InputHandler returns input handler function for this primitive

func (*PodStatsDialog) IsDisplay added in v0.2.0

func (d *PodStatsDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown

func (*PodStatsDialog) SetDoneFunc added in v0.2.0

func (d *PodStatsDialog) SetDoneFunc(handler func()) *PodStatsDialog

SetDoneFunc sets form cancel button selected function

func (*PodStatsDialog) SetPodsOptions added in v0.2.0

func (d *PodStatsDialog) SetPodsOptions(options []PodStatsDropDownOptions)

SetPodsOptions sets pod drop down options

func (*PodStatsDialog) SetRect added in v0.2.0

func (d *PodStatsDialog) SetRect(x, y, width, height int)

SetRect set rects for this primitive.

type PodStatsDropDownOptions added in v0.2.0

type PodStatsDropDownOptions struct {
	ID   string
	Name string
}

PodStatsDropDownOptions implements pods dropdown options.

Jump to

Keyboard shortcuts

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