dialogs

package
v0.49.104 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHelpView

func NewHelpView(app common.AppController) tview.Primitive

func ShowConfirmation

func ShowConfirmation(app common.AppController, actionName, item string, onConfirm func(force bool))

ShowConfirmation shows a modal asking to type "y" or "yes" and allows forcing

func ShowEnvEditor added in v0.42.75

func ShowEnvEditor(app common.AppController, subject string, items []EnvItem, onConfirm func(envVars []string))

func ShowForm added in v0.42.75

func ShowForm(app common.AppController, title string, fields []FormField, onSubmit func(result FormResult))

func ShowFormWithDescription added in v0.42.75

func ShowFormWithDescription(app common.AppController, title, description string, fields []FormField, onSubmit func(result FormResult))

func ShowInput

func ShowInput(app common.AppController, title, label, initialText string, onDone func(text string))

ShowInput shows a modal with an input field

func ShowMountEditor added in v0.49.101

func ShowMountEditor(app common.AppController, subject string, items []MountAttachItem, availableVolumes map[string]bool, onConfirm func([]MountAttachItem))

func ShowMultiPicker added in v0.42.75

func ShowMultiPicker(app common.AppController, title string, subject string, items []MultiPickerItem, onConfirm func(selected []string))

func ShowPicker

func ShowPicker(app common.AppController, title string, items []PickerItem, onSelect func(value string), onClose ...func())

func ShowPickerLoading added in v0.49.95

func ShowPickerLoading(app common.AppController, title string)

func ShowPortForwardDialog added in v0.49.95

func ShowPortForwardDialog(app common.AppController, containerID, containerName string, ports []PortInfo, onSubmit func(result PortForwardResult))

func ShowResultModal

func ShowResultModal(app common.AppController, action string, successCount int, errors []string)

func ShowSecretEditor added in v0.49.101

func ShowSecretEditor(app common.AppController, subject string, items []SecretAttachItem, onConfirm func([]SecretAttachItem))

func ShowTextView

func ShowTextView(app common.AppController, title, content string)

Types

type EnvItem added in v0.42.75

type EnvItem struct {
	Key      string
	Value    string
	Selected bool
}

type FieldType added in v0.42.75

type FieldType int
const (
	FieldTypeInput FieldType = iota
	FieldTypeCheckbox
	FieldTypeTextArea
)

type FormField added in v0.42.75

type FormField struct {
	Name        string
	Label       string
	Type        FieldType
	Default     string
	Placeholder string
	Secret      bool
}

type FormResult added in v0.42.75

type FormResult map[string]string

type MountAttachItem added in v0.49.101

type MountAttachItem struct {
	ID        string
	Source    string
	MountType string
	Target    string
	Selected  bool
}

type MultiPickerItem added in v0.42.75

type MultiPickerItem struct {
	ID       string
	Label    string
	Selected bool
}

type PickerItem

type PickerItem struct {
	Description string
	Label       string
	Value       string
	Shortcut    rune
}

type PortForwardResult added in v0.49.95

type PortForwardResult struct {
	ContainerPort uint16
	HostPort      uint16
	LocalPort     uint16
	Address       string
}

type PortInfo added in v0.49.95

type PortInfo struct {
	ContainerPort uint16
	HostPort      uint16
	Protocol      string
}

type SecretAttachItem added in v0.49.101

type SecretAttachItem struct {
	ID         string
	SecretName string
	Target     string
	Selected   bool
}

Jump to

Keyboard shortcuts

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