dialog

package
v0.0.0-...-2cb8b77 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 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

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

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

ShowError pops an error dialog.

func ShowPrompt

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

ShowPrompt pops a prompt dialog.

func ShowSelection

func ShowSelection(styles config.Dialog, pages *ui.Pages, title string, options []string, action SelectAction)

func ShowUploads

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

Types

type SelectAction

type SelectAction func(index int)

type TransferArgs

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

type TransferDialogOpts

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

type TransferFn

type TransferFn func(TransferArgs) bool

Jump to

Keyboard shortcuts

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