cntdialogs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerCheckpointDialog added in v0.7.0

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

ContainerCheckpointDialog implements container checkpoint dialog primitive.

func NewContainerCheckpointDialog added in v0.7.0

func NewContainerCheckpointDialog() *ContainerCheckpointDialog

NewContainerCheckpointDialog returns new container checkpoint dialog primitive.

func (*ContainerCheckpointDialog) Display added in v0.7.0

func (d *ContainerCheckpointDialog) Display()

Display displays this primitive.

func (*ContainerCheckpointDialog) Draw added in v0.7.0

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

Draw draws this primitive into the screen.

func (*ContainerCheckpointDialog) Focus added in v0.7.0

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

Focus is called when this primitive receives focus.

func (*ContainerCheckpointDialog) GetCheckpointOptions added in v0.7.0

func (d *ContainerCheckpointDialog) GetCheckpointOptions() containers.CntCheckPointOptions

GetOptions returns checkpoint options.

func (*ContainerCheckpointDialog) HasFocus added in v0.7.0

func (d *ContainerCheckpointDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus.

func (*ContainerCheckpointDialog) Hide added in v0.7.0

func (d *ContainerCheckpointDialog) Hide()

Hide stops displaying this primitive.

func (*ContainerCheckpointDialog) InputHandler added in v0.7.0

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

InputHandler returns input handler function for this primitive.

func (*ContainerCheckpointDialog) IsDisplay added in v0.7.0

func (d *ContainerCheckpointDialog) IsDisplay() bool

IsDisplay returns true if this primitive is shown.

func (*ContainerCheckpointDialog) SetCancelFunc added in v0.7.0

func (d *ContainerCheckpointDialog) SetCancelFunc(handler func()) *ContainerCheckpointDialog

SetCancelFunc sets form cancel button selected function.

func (*ContainerCheckpointDialog) SetCheckpointFunc added in v0.7.0

func (d *ContainerCheckpointDialog) SetCheckpointFunc(handler func()) *ContainerCheckpointDialog

SetCheckpointFunc sets form checkpoint button selected function.

func (*ContainerCheckpointDialog) SetContainerInfo added in v0.7.0

func (d *ContainerCheckpointDialog) SetContainerInfo(id string, name string)

SetContainerInfo sets selected container ID and name information.

func (*ContainerCheckpointDialog) SetRect added in v0.7.0

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

SetRect set rects for this primitive.

type ContainerCommitDialog added in v0.5.0

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

ContainerCommitDialog represents container commit dialog primitive.

func NewContainerCommitDialog added in v0.5.0

func NewContainerCommitDialog() *ContainerCommitDialog

NewContainerCommitDialog returns new container commit dialog primitive.

func (*ContainerCommitDialog) Display added in v0.5.0

func (d *ContainerCommitDialog) Display()

Display displays this primitive.

func (*ContainerCommitDialog) Draw added in v0.5.0

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

Draw draws this primitive onto the screen.

func (*ContainerCommitDialog) Focus added in v0.5.0

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

Focus is called when this primitive receives focus.

func (*ContainerCommitDialog) GetContainerCommitOptions added in v0.5.0

func (d *ContainerCommitDialog) GetContainerCommitOptions() containers.CntCommitOptions

GetContainerCommitOptions returns container commit options based on user inputs.

func (*ContainerCommitDialog) HasFocus added in v0.5.0

func (d *ContainerCommitDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus.

func (*ContainerCommitDialog) Hide added in v0.5.0

func (d *ContainerCommitDialog) Hide()

Hide stops displaying this primitive.

func (*ContainerCommitDialog) InputHandler added in v0.5.0

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

InputHandler returns input handler function for this primitive.

func (*ContainerCommitDialog) IsDisplay added in v0.5.0

func (d *ContainerCommitDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown.

func (*ContainerCommitDialog) SetCancelFunc added in v0.5.0

func (d *ContainerCommitDialog) SetCancelFunc(handler func()) *ContainerCommitDialog

SetCancelFunc sets form cancel button selected function.

func (*ContainerCommitDialog) SetCommitFunc added in v0.5.0

func (d *ContainerCommitDialog) SetCommitFunc(handler func()) *ContainerCommitDialog

SetCommitFunc sets form commit button selected function.

func (*ContainerCommitDialog) SetContainerInfo added in v0.5.0

func (d *ContainerCommitDialog) SetContainerInfo(id string, name string)

SetContainerInfo sets selected container ID and name in commit dialog.

func (*ContainerCommitDialog) SetRect added in v0.5.0

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

SetRect set rects for this primitive.

type ContainerCreateDialog

type ContainerCreateDialog struct {
	*tview.Box

	ContainerPortPublishAllField *tview.Checkbox
	// contains filtered or unexported fields
}

ContainerCreateDialog implements container create dialog.

func NewContainerCreateDialog

func NewContainerCreateDialog() *ContainerCreateDialog

NewContainerCreateDialog returns new container create dialog primitive ContainerCreateDialog.

func (*ContainerCreateDialog) ContainerCreateOptions

func (d *ContainerCreateDialog) ContainerCreateOptions() containers.CreateOptions

ContainerCreateOptions returns new network options.

func (*ContainerCreateDialog) Display

func (d *ContainerCreateDialog) Display()

Display displays this primitive.

func (*ContainerCreateDialog) Draw

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

Draw draws this primitive onto the screen.

func (*ContainerCreateDialog) Focus

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

Focus is called when this primitive receives focus.

func (*ContainerCreateDialog) HasFocus

func (d *ContainerCreateDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus.

func (*ContainerCreateDialog) Hide

func (d *ContainerCreateDialog) Hide()

Hide stops displaying this primitive.

func (*ContainerCreateDialog) InputHandler

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

InputHandler returns input handler function for this primitive.

func (*ContainerCreateDialog) IsDisplay

func (d *ContainerCreateDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown.

func (*ContainerCreateDialog) SetCancelFunc

func (d *ContainerCreateDialog) SetCancelFunc(handler func()) *ContainerCreateDialog

SetCancelFunc sets form cancel button selected function.

func (*ContainerCreateDialog) SetCreateFunc

func (d *ContainerCreateDialog) SetCreateFunc(handler func()) *ContainerCreateDialog

SetCreateFunc sets form create button selected function.

func (*ContainerCreateDialog) SetRect

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

SetRect set rects for this primitive.

type ContainerExecDialog added in v0.2.0

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

ContainerExecDialog represents container exec dialog primitive.

func NewContainerExecDialog added in v0.2.0

func NewContainerExecDialog() *ContainerExecDialog

NewContainerExecDialog returns new container exec dialog.

func (*ContainerExecDialog) ContainerExecOptions added in v0.2.0

func (d *ContainerExecDialog) ContainerExecOptions() containers.ExecOption

ContainerExecOptions returns new container exec options.

func (*ContainerExecDialog) Display added in v0.2.0

func (d *ContainerExecDialog) Display()

Display displays this primitive.

func (*ContainerExecDialog) Draw added in v0.2.0

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

Draw draws this primitive onto the screen.

func (*ContainerExecDialog) Focus added in v0.2.0

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

Focus is called when this primitive receives focus.

func (*ContainerExecDialog) HasFocus added in v0.2.0

func (d *ContainerExecDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus.

func (*ContainerExecDialog) Hide added in v0.2.0

func (d *ContainerExecDialog) Hide()

Hide stops displaying this primitive.

func (*ContainerExecDialog) InputHandler added in v0.2.0

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

InputHandler returns input handler function for this primitive.

func (*ContainerExecDialog) IsDisplay added in v0.2.0

func (d *ContainerExecDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown.

func (*ContainerExecDialog) SetCancelFunc added in v0.2.0

func (d *ContainerExecDialog) SetCancelFunc(handler func()) *ContainerExecDialog

SetCancelFunc sets form cancel button selected function.

func (*ContainerExecDialog) SetContainerID added in v0.2.0

func (d *ContainerExecDialog) SetContainerID(id string, name string)

SetContainerID sets container ID label.

func (*ContainerExecDialog) SetExecFunc added in v0.2.0

func (d *ContainerExecDialog) SetExecFunc(handler func()) *ContainerExecDialog

SetExecFunc sets form execute button selected function.

func (*ContainerExecDialog) SetRect added in v0.2.0

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

SetRect set rects for this primitive.

type ContainerRestoreDialog added in v0.7.0

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

ContainerRestoreDialog implements container restore dialog primitive.

func NewContainerRestoreDialog added in v0.7.0

func NewContainerRestoreDialog() *ContainerRestoreDialog

NewContainerRestoreDialog returns new container dialog primitive.

func (*ContainerRestoreDialog) Display added in v0.7.0

func (d *ContainerRestoreDialog) Display()

Display displays this primitive.

func (*ContainerRestoreDialog) Draw added in v0.7.0

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

Draw draws this primitive into the screen.

func (*ContainerRestoreDialog) Focus added in v0.7.0

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

Focus is called when this primitive receives focus.

func (*ContainerRestoreDialog) GetRestoreOptions added in v0.7.0

func (d *ContainerRestoreDialog) GetRestoreOptions() containers.CntRestoreOptions

func (*ContainerRestoreDialog) HasFocus added in v0.7.0

func (d *ContainerRestoreDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus.

func (*ContainerRestoreDialog) Hide added in v0.7.0

func (d *ContainerRestoreDialog) Hide()

Hide stops displaying this primitive.

func (*ContainerRestoreDialog) InputHandler added in v0.7.0

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

InputHandler returns input handler function for this primitive.

func (*ContainerRestoreDialog) IsDisplay added in v0.7.0

func (d *ContainerRestoreDialog) IsDisplay() bool

IsDisplay returns true if this primitive is shown.

func (*ContainerRestoreDialog) SetCancelFunc added in v0.7.0

func (d *ContainerRestoreDialog) SetCancelFunc(handler func()) *ContainerRestoreDialog

SetCancelFunc sets form cancel button selected function.

func (*ContainerRestoreDialog) SetContainers added in v0.7.0

func (d *ContainerRestoreDialog) SetContainers(cnts [][]string)

SetContainers sets containers dropdown options.

func (*ContainerRestoreDialog) SetPods added in v0.7.0

func (d *ContainerRestoreDialog) SetPods(pods [][]string)

SetPods sets pods dropdown options.

func (*ContainerRestoreDialog) SetRect added in v0.7.0

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

SetRect set rects for this primitive.

func (*ContainerRestoreDialog) SetRestoreFunc added in v0.7.0

func (d *ContainerRestoreDialog) SetRestoreFunc(handler func()) *ContainerRestoreDialog

SetRestoreFunc sets form restore button selected function.

type ContainerStatsDialog added in v0.2.0

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

ContainerStatsDialog implements the containers stats dialog primitive.

func NewContainerStatsDialog added in v0.2.0

func NewContainerStatsDialog() *ContainerStatsDialog

NewContainerStatsDialog returns new container stats dialog.

func (*ContainerStatsDialog) Display added in v0.2.0

func (d *ContainerStatsDialog) Display()

Display displays this primitive.

func (*ContainerStatsDialog) Draw added in v0.2.0

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

Draw draws this primitive onto the screen.

func (*ContainerStatsDialog) Focus added in v0.2.0

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

Focus is called when this primitive receives focus.

func (*ContainerStatsDialog) HasFocus added in v0.2.0

func (d *ContainerStatsDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus.

func (*ContainerStatsDialog) Hide added in v0.2.0

func (d *ContainerStatsDialog) Hide()

Hide stops displaying this primitive.

func (*ContainerStatsDialog) InputHandler added in v0.2.0

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

InputHandler returns input handler function for this primitive.

func (*ContainerStatsDialog) IsDisplay added in v0.2.0

func (d *ContainerStatsDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown.

func (*ContainerStatsDialog) SetContainerInfo added in v0.2.0

func (d *ContainerStatsDialog) SetContainerInfo(id string, name string)

SetContainerInfo sets container ID and name.

func (*ContainerStatsDialog) SetDoneFunc added in v0.2.0

func (d *ContainerStatsDialog) SetDoneFunc(handler func()) *ContainerStatsDialog

SetDoneFunc sets form cancel button selected function.

func (*ContainerStatsDialog) SetRect added in v0.2.0

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

SetRect set rects for this primitive.

func (*ContainerStatsDialog) SetStatsChannel added in v0.2.0

func (d *ContainerStatsDialog) SetStatsChannel(reportChan *chan entities.ContainerStatsReport)

SetStatsChannel sets stats result read channel.

func (*ContainerStatsDialog) SetStatsStream added in v0.2.0

func (d *ContainerStatsDialog) SetStatsStream(stream *bool)

SetStatsStream sets stats stream state. if true it will stream the stats and false will stop the process.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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