dialog

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowConfirm

func ShowConfirm(styles config.Dialog, pages *ui.Pages, title, msg string, ack confirmFunc, cancel cancelFunc)

ShowConfirm pops a confirmation dialog.

func ShowConfirmAck added in v0.28.1

func ShowConfirmAck(app *ui.App, pages *ui.Pages, acceptStr string, override bool, title, msg string, ack confirmFunc, cancel cancelFunc)

func ShowDelete

func ShowDelete(styles config.Dialog, pages *ui.Pages, msg string, ok okFunc, cancel cancelFunc)

ShowDelete pops a resource deletion dialog.

func ShowError added in v0.25.1

func ShowError(styles config.Dialog, pages *ui.Pages, msg string)

ShowError pops an error dialog.

func ShowPrompt added in v0.30.1

func ShowPrompt(styles config.Dialog, pages *ui.Pages, title, msg string, action promptAction, cancel cancelFunc)

ShowPrompt pops a prompt dialog.

func ShowUploads added in v0.28.0

func ShowUploads(styles config.Dialog, pages *ui.Pages, opts TransferDialogOpts)

Types

type TransferDialogOpts added in v0.28.0

type TransferDialogOpts struct {
	Containers     []string
	Pod            string
	Title, Message string
	Ack            TransferFn
	Cancel         cancelFunc
}

type TransferFn added in v0.28.0

type TransferFn func(from, to, co string, download, no_preserve bool) bool

Jump to

Keyboard shortcuts

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