dialog

package
v0.32.4 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, Apache-2.0 Imports: 9 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 TransferArgs added in v0.32.1

type TransferArgs struct {
	From, To, CO         string
	Download, NoPreserve bool
	Retries              int
}

type TransferDialogOpts added in v0.28.0

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

type TransferFn added in v0.28.0

type TransferFn func(TransferArgs) bool

Jump to

Keyboard shortcuts

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