Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( TitleStyle = lipgloss.NewStyle(). Bold(true). Foreground(lipgloss.Color("#00D4AA")). MarginBottom(1) SubtitleStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#888888")). MarginBottom(1) FocusedStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#00D4AA")) BlurredStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#666666")) CursorStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#00D4AA")) HelpStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#626262")). MarginTop(1) ErrorStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#FF6B6B")). Bold(true) SuccessStyle = lipgloss.NewStyle(). Foreground(lipgloss.Color("#00D4AA")). Bold(true) BoxStyle = lipgloss.NewStyle(). Border(lipgloss.RoundedBorder()). BorderForeground(lipgloss.Color("#00D4AA")). Padding(1, 2) )
Exported styles used across all steps
Functions ¶
This section is empty.
Types ¶
type Branch ¶
type Branch struct {
Cursor int
}
Branch step for selecting release channel
type ClusterSecret ¶
ClusterSecret step for entering cluster secret
func NewClusterSecret ¶
func NewClusterSecret() *ClusterSecret
NewClusterSecret creates a new ClusterSecret step
func (*ClusterSecret) SetError ¶
func (c *ClusterSecret) SetError(err error)
SetError sets an error message
func (*ClusterSecret) SetValue ¶
func (c *ClusterSecret) SetValue(value string)
SetValue sets the input value
func (*ClusterSecret) Value ¶
func (c *ClusterSecret) Value() string
Value returns the current input value
func (*ClusterSecret) View ¶
func (c *ClusterSecret) View() string
View renders the cluster secret input step
type Confirm ¶
type Confirm struct {
VpsIP string
Domain string
Branch string
NoPull bool
IsFirstNode bool
PeerDomain string
JoinAddress string
Peers []string
ClusterSecret string
SwarmKeyHex string
IPFSPeerID string
SNIWarning string
}
Confirm step for reviewing and confirming installation
type Installing ¶
type Installing struct {
Output []string
}
Installing step shown during installation
type NoPull ¶
type NoPull struct {
Cursor int
}
NoPull step for selecting whether to pull latest changes
func (*NoPull) ShouldPull ¶
ShouldPull returns true if should pull latest changes
type NodeType ¶
type NodeType struct {
Cursor int
}
NodeType step for selecting whether this is first node or joining existing cluster
func (*NodeType) IsFirstNode ¶
IsFirstNode returns true if creating new cluster is selected
type PeerDomain ¶
type PeerDomain struct {
Input textinput.Model
Error error
Discovering bool
DiscoveryInfo string
DiscoveredPeer string
}
PeerDomain step for entering existing node's domain to join
func (*PeerDomain) SetDiscoveredPeer ¶
func (p *PeerDomain) SetDiscoveredPeer(peerID string)
SetDiscoveredPeer sets the discovered peer ID
func (*PeerDomain) SetDiscovering ¶
func (p *PeerDomain) SetDiscovering(discovering bool, info string)
SetDiscovering sets the discovery status
func (*PeerDomain) SetError ¶
func (p *PeerDomain) SetError(err error)
SetError sets an error message
func (*PeerDomain) SetValue ¶
func (p *PeerDomain) SetValue(value string)
SetValue sets the input value
func (*PeerDomain) Value ¶
func (p *PeerDomain) Value() string
Value returns the current input value
func (*PeerDomain) View ¶
func (p *PeerDomain) View() string
View renders the peer domain input step