imgdialogs

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageBuildDialog added in v0.3.1

type ImageBuildDialog struct {
	*tview.Box

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

ImageBuildDialog represents image build dialog primitive.

func NewImageBuildDialog added in v0.3.1

func NewImageBuildDialog() *ImageBuildDialog

NewImageBuildDialog returns new image build dialog primitive.

func (*ImageBuildDialog) Display added in v0.3.1

func (d *ImageBuildDialog) Display()

Display displays this primitive.

func (*ImageBuildDialog) Draw added in v0.3.1

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

Draw draws this primitive onto the screen.

func (*ImageBuildDialog) Focus added in v0.3.1

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

Focus is called when this primitive receives focus.

func (*ImageBuildDialog) HasFocus added in v0.3.1

func (d *ImageBuildDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus.

func (*ImageBuildDialog) Hide added in v0.3.1

func (d *ImageBuildDialog) Hide()

Hide stops displaying this primitive.

func (*ImageBuildDialog) ImageBuildOptions added in v0.3.1

func (d *ImageBuildDialog) ImageBuildOptions() (images.ImageBuildOptions, error)

ImageBuildOptions returns image build options.

func (*ImageBuildDialog) InputHandler added in v0.3.1

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

InputHandler returns input handler function for this primitive.

func (*ImageBuildDialog) IsDisplay added in v0.3.1

func (d *ImageBuildDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown.

func (*ImageBuildDialog) SetBuildFunc added in v0.3.1

func (d *ImageBuildDialog) SetBuildFunc(handler func()) *ImageBuildDialog

SetBuildFunc sets form build button selected function.

func (*ImageBuildDialog) SetCancelFunc added in v0.3.1

func (d *ImageBuildDialog) SetCancelFunc(handler func()) *ImageBuildDialog

SetCancelFunc sets form cancel button selected function.

func (*ImageBuildDialog) SetRect added in v0.3.1

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

SetRect set rects for this primitive.

type ImageBuildProgressDialog added in v0.3.1

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

ImageBuildProgressDialog implements build progress dialog primitive.

func NewImageBuildProgressDialog added in v0.3.1

func NewImageBuildProgressDialog() *ImageBuildProgressDialog

NewImageBuildProgressDialog returns new build progress dialog.

func (*ImageBuildProgressDialog) Display added in v0.3.1

func (d *ImageBuildProgressDialog) Display()

Display displays this primitive.

func (*ImageBuildProgressDialog) Draw added in v0.3.1

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

Draw draws this primitive onto the screen.

func (*ImageBuildProgressDialog) Focus added in v0.3.1

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

Focus is called when this primitive receives focus.

func (*ImageBuildProgressDialog) HasFocus added in v0.3.1

func (d *ImageBuildProgressDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus.

func (*ImageBuildProgressDialog) Hide added in v0.3.1

func (d *ImageBuildProgressDialog) Hide()

Hide stops displaying this primitive.

func (*ImageBuildProgressDialog) InputHandler added in v0.3.1

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

InputHandler returns input handler function for this primitive.

func (*ImageBuildProgressDialog) IsDisplay added in v0.3.1

func (d *ImageBuildProgressDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown.

func (*ImageBuildProgressDialog) LogWriter added in v0.3.1

LogWriter returns output log writer.

func (*ImageBuildProgressDialog) SetFastRefreshHandler added in v0.3.1

func (d *ImageBuildProgressDialog) SetFastRefreshHandler(handler func())

SetFastRefreshHandler sets fast refresh handler fast refresh is used to print image build output as fast as possible.

func (*ImageBuildProgressDialog) SetRect added in v0.3.1

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

SetRect set rects for this primitive.

type ImageHistoryDialog

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

ImageHistoryDialog represents image history dialog primitive.

func NewImageHistoryDialog

func NewImageHistoryDialog() *ImageHistoryDialog

NewImageHistoryDialog returns new image history dialog.

func (*ImageHistoryDialog) Display

func (d *ImageHistoryDialog) Display()

Display displays this primitive.

func (*ImageHistoryDialog) Draw

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

Draw draws this primitive onto the screen.

func (*ImageHistoryDialog) Focus

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

Focus is called when this primitive receives focus.

func (*ImageHistoryDialog) HasFocus

func (d *ImageHistoryDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus.

func (*ImageHistoryDialog) Hide

func (d *ImageHistoryDialog) Hide()

Hide stops displaying this primitive.

func (*ImageHistoryDialog) InputHandler

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

InputHandler returns input handler function for this primitive.

func (*ImageHistoryDialog) IsDisplay

func (d *ImageHistoryDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown.

func (*ImageHistoryDialog) SetCancelFunc

func (d *ImageHistoryDialog) SetCancelFunc(handler func()) *ImageHistoryDialog

SetCancelFunc sets form cancel button selected function.

func (*ImageHistoryDialog) SetImageInfo added in v0.9.0

func (d *ImageHistoryDialog) SetImageInfo(id string, name string)

func (*ImageHistoryDialog) SetRect

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

SetRect set rects for this primitive.

func (*ImageHistoryDialog) UpdateResults

func (d *ImageHistoryDialog) UpdateResults(data [][]string)

UpdateResults updates result table.

type ImageImportDialog added in v0.3.1

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

ImageImportDialog represents image import dialog primitive.

func NewImageImportDialog added in v0.3.1

func NewImageImportDialog() *ImageImportDialog

NewImageImportDialog returns new image import dialog.

func (*ImageImportDialog) Display added in v0.3.1

func (d *ImageImportDialog) Display()

Display displays this primitive.

func (*ImageImportDialog) Draw added in v0.3.1

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

Draw draws this primitive onto the screen.

func (*ImageImportDialog) Focus added in v0.3.1

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

Focus is called when this primitive receives focus.

func (*ImageImportDialog) HasFocus added in v0.3.1

func (d *ImageImportDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus.

func (*ImageImportDialog) Hide added in v0.3.1

func (d *ImageImportDialog) Hide()

Hide stops displaying this primitive.

func (*ImageImportDialog) ImageImportOptions added in v0.3.1

func (d *ImageImportDialog) ImageImportOptions() (images.ImageImportOptions, error)

ImageImportOptions return image import options.

func (*ImageImportDialog) InputHandler added in v0.3.1

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

InputHandler returns input handler function for this primitive.

func (*ImageImportDialog) IsDisplay added in v0.3.1

func (d *ImageImportDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown.

func (*ImageImportDialog) SetCancelFunc added in v0.3.1

func (d *ImageImportDialog) SetCancelFunc(handler func()) *ImageImportDialog

SetCancelFunc sets form cancel button selected function.

func (*ImageImportDialog) SetImportFunc added in v0.3.1

func (d *ImageImportDialog) SetImportFunc(handler func()) *ImageImportDialog

SetImportFunc sets form import button selected function.

func (*ImageImportDialog) SetRect added in v0.3.1

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

SetRect set rects for this primitive.

type ImagePushDialog added in v0.5.0

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

ImagePushDialog represents image push dialog primitive.

func NewImagePushDialog added in v0.5.0

func NewImagePushDialog() *ImagePushDialog

NewImagePushDialog returns a new image push dialog primitive.

func (*ImagePushDialog) Display added in v0.5.0

func (d *ImagePushDialog) Display()

Display displays this primitive.

func (*ImagePushDialog) Draw added in v0.5.0

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

Draw draws this primitive onto the screen.

func (*ImagePushDialog) Focus added in v0.5.0

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

Focus is called when this primitive receives focus.

func (*ImagePushDialog) GetImagePushOptions added in v0.5.0

func (d *ImagePushDialog) GetImagePushOptions() images.ImagePushOptions

GetImagePushOptions returns image push options based on user inputs.

func (*ImagePushDialog) HasFocus added in v0.5.0

func (d *ImagePushDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus.

func (*ImagePushDialog) Hide added in v0.5.0

func (d *ImagePushDialog) Hide()

Hide stops displaying this primitive.

func (*ImagePushDialog) InputHandler added in v0.5.0

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

InputHandler returns input handler function for this primitive.

func (*ImagePushDialog) IsDisplay added in v0.5.0

func (d *ImagePushDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown.

func (*ImagePushDialog) SetCancelFunc added in v0.5.0

func (d *ImagePushDialog) SetCancelFunc(handler func()) *ImagePushDialog

SetCancelFunc sets form cancel button selected function.

func (*ImagePushDialog) SetImageInfo added in v0.5.0

func (d *ImagePushDialog) SetImageInfo(id string, name string)

SetImageInfo sets selected image ID and name in push dialog.

func (*ImagePushDialog) SetPushFunc added in v0.5.0

func (d *ImagePushDialog) SetPushFunc(handler func()) *ImagePushDialog

SetPushFunc sets form push button selected function.

func (*ImagePushDialog) SetRect added in v0.5.0

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

SetRect set rects for this primitive.

type ImageSaveDialog added in v0.3.1

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

ImageSaveDialog represents image save dialog primitive.

func NewImageSaveDialog added in v0.3.1

func NewImageSaveDialog() *ImageSaveDialog

NewImageSaveDialog returns new image save dialog.

func (*ImageSaveDialog) Display added in v0.3.1

func (d *ImageSaveDialog) Display()

Display displays this primitive.

func (*ImageSaveDialog) Draw added in v0.3.1

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

Draw draws this primitive onto the screen.

func (*ImageSaveDialog) Focus added in v0.3.1

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

Focus is called when this primitive receives focus.

func (*ImageSaveDialog) HasFocus added in v0.3.1

func (d *ImageSaveDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus.

func (*ImageSaveDialog) Hide added in v0.3.1

func (d *ImageSaveDialog) Hide()

Hide stops displaying this primitive.

func (*ImageSaveDialog) ImageSaveOptions added in v0.3.1

func (d *ImageSaveDialog) ImageSaveOptions() (images.ImageSaveOptions, error)

ImageSaveOptions prepare and returns image save options.

func (*ImageSaveDialog) InputHandler added in v0.3.1

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

InputHandler returns input handler function for this primitive.

func (*ImageSaveDialog) IsDisplay added in v0.3.1

func (d *ImageSaveDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown.

func (*ImageSaveDialog) SetCancelFunc added in v0.3.1

func (d *ImageSaveDialog) SetCancelFunc(handler func()) *ImageSaveDialog

SetCancelFunc sets form cancel button selected function.

func (*ImageSaveDialog) SetImageInfo added in v0.3.1

func (d *ImageSaveDialog) SetImageInfo(id string, name string)

SetImageInfo sets selected image ID and name in save dialog.

func (*ImageSaveDialog) SetRect added in v0.3.1

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

SetRect set rects for this primitive.

func (*ImageSaveDialog) SetSaveFunc added in v0.3.1

func (d *ImageSaveDialog) SetSaveFunc(handler func()) *ImageSaveDialog

SetSaveFunc sets form save button selected function.

type ImageSearchDialog

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

ImageSearchDialog represents image search dialogs.

func NewImageSearchDialog

func NewImageSearchDialog() *ImageSearchDialog

NewImageSearchDialog returns new image search dialog primitive.

func (*ImageSearchDialog) ClearResults added in v0.4.0

func (d *ImageSearchDialog) ClearResults()

ClearResults clear image search result table.

func (*ImageSearchDialog) Display

func (d *ImageSearchDialog) Display()

Display displays this primitive.

func (*ImageSearchDialog) Draw

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

Draw draws this primitive onto the screen.

func (*ImageSearchDialog) Focus

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

Focus is called when this primitive receives focus.

func (*ImageSearchDialog) GetSearchText

func (d *ImageSearchDialog) GetSearchText() string

GetSearchText returns search input field text.

func (*ImageSearchDialog) GetSelectedItem

func (d *ImageSearchDialog) GetSelectedItem() string

GetSelectedItem returns selected image name from search result table.

func (*ImageSearchDialog) HasFocus

func (d *ImageSearchDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus.

func (*ImageSearchDialog) Hide

func (d *ImageSearchDialog) Hide()

Hide stops displaying this primitive.

func (*ImageSearchDialog) InputHandler

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

InputHandler returns input handler function for this primitive.

func (*ImageSearchDialog) IsDisplay

func (d *ImageSearchDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown.

func (*ImageSearchDialog) SetCancelFunc

func (d *ImageSearchDialog) SetCancelFunc(handler func()) *ImageSearchDialog

SetCancelFunc sets form cancel button selected function.

func (*ImageSearchDialog) SetPullFunc

func (d *ImageSearchDialog) SetPullFunc(handler func()) *ImageSearchDialog

SetPullFunc sets form pull button selected function.

func (*ImageSearchDialog) SetRect

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

SetRect set rects for this primitive.

func (*ImageSearchDialog) SetSearchFunc

func (d *ImageSearchDialog) SetSearchFunc(handler func()) *ImageSearchDialog

SetSearchFunc sets form cancel button selected function.

func (*ImageSearchDialog) UpdateResults

func (d *ImageSearchDialog) UpdateResults(data [][]string)

UpdateResults updates result table.

Jump to

Keyboard shortcuts

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