unlockdialog

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package unlockdialog provides an app-level modal for entering a Docker Swarm unlock key. It is shown when the active context's swarm is locked.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Visible bool
	Width   int
	Height  int
	// contains filtered or unexported fields
}

func New

func New(width, height int) *Model

func (*Model) Hide

func (m *Model) Hide() *Model

Hide makes the dialog invisible and blurs the input.

func (*Model) Init

func (m *Model) Init() tea.Cmd

func (*Model) Show

func (m *Model) Show() *Model

Show makes the dialog visible with a cleared, focused input.

func (*Model) Update

func (m *Model) Update(msg tea.Msg) tea.Cmd

func (*Model) View

func (m *Model) View() string

type ResultMsg

type ResultMsg struct {
	Confirmed bool
	Key       string
}

ResultMsg is emitted when the dialog is dismissed. Confirmed is true when the user submitted a key with Enter; Key holds the entered (unmasked) value.

Jump to

Keyboard shortcuts

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