Documentation
¶
Overview ¶
Package pushform renders the modal registry-credentials form shown before pushing an image to a private registry.
Index ¶
- type Model
- func (m *Model) Next()
- func (m *Model) Open(ref, registry, username, password string)
- func (m Model) Password() string
- func (m *Model) Prev()
- func (m Model) Ref() string
- func (m Model) Registry() string
- func (m *Model) SetError(s string)
- func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)
- func (m Model) Username() string
- 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 three-field (Registry, Username, Password) modal form. An empty username submits an anonymous push.
func (*Model) Open ¶
Open prepares the form to push ref, pre-filled with the inferred registry and any remembered credentials for that registry.
func (Model) Password ¶
Password returns the password field verbatim (not trimmed — tokens may have significant characters, though leading/trailing spaces are unusual).
func (*Model) SetError ¶
SetError shows a validation/operation message inside the form (keeps it open).
Click to show internal directories.
Click to hide internal directories.