Documentation
¶
Overview ¶
Package pullform renders the modal "pull image" form shown in the images view when the pull command is invoked without a selected image.
Index ¶
- type Model
- func (m Model) Busy() bool
- func (m Model) Image() string
- func (m *Model) Open()
- func (m *Model) OpenPulling(ref string) tea.Cmd
- func (m *Model) Pulling() tea.Cmd
- func (m *Model) SetError(s string)
- func (m Model) Tick(msg spinner.TickMsg) (Model, tea.Cmd)
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) View(width, height int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the single-field (Image) pull-image form.
func (*Model) Open ¶
func (m *Model) Open()
Open prepares the form to pull a new image, clearing any previous input.
func (*Model) OpenPulling ¶
OpenPulling opens the form already pulling the given reference: it pre-fills the image and enters the busy state without an input step, used when the reference is known up front (pull <image> or pulling the selected image). Returns the spinner-start command.
func (*Model) Pulling ¶
Pulling marks the form busy while the pull runs: it clears any error, blurs the input and returns the command that starts the spinner animation. Render continues to show the image being pulled.
func (*Model) SetError ¶
SetError shows a validation/operation message inside the form (keeps it open) and clears the busy state so the user can correct the input and retry.