steps

package
v0.90.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

func (*Branch) GetBranch

func (b *Branch) GetBranch() string

GetBranch returns the selected branch name

func (*Branch) View

func (b *Branch) View() string

View renders the branch selection step

type ClusterSecret

type ClusterSecret struct {
	Input textinput.Model
	Error error
}

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

func (*Confirm) View

func (c *Confirm) View() string

View renders the confirmation step

type Domain

type Domain struct {
	Input textinput.Model
	Error error
}

Domain step for entering domain name

func NewDomain

func NewDomain() *Domain

NewDomain creates a new Domain step

func (*Domain) SetError

func (d *Domain) SetError(err error)

SetError sets an error message

func (*Domain) SetValue

func (d *Domain) SetValue(value string)

SetValue sets the input value

func (*Domain) Value

func (d *Domain) Value() string

Value returns the current input value

func (*Domain) View

func (d *Domain) View() string

View renders the domain input step

type Done

type Done struct{}

Done step shown after successful installation

func (*Done) View

func (d *Done) View() string

View renders the done step

type Installing

type Installing struct {
	Output []string
}

Installing step shown during installation

func (*Installing) View

func (i *Installing) View() string

View renders the installing step

type NoPull

type NoPull struct {
	Cursor int
}

NoPull step for selecting whether to pull latest changes

func (*NoPull) ShouldPull

func (n *NoPull) ShouldPull() bool

ShouldPull returns true if should pull latest changes

func (*NoPull) View

func (n *NoPull) View() string

View renders the no-pull selection step

type NodeType

type NodeType struct {
	Cursor int
}

NodeType step for selecting whether this is first node or joining existing cluster

func (*NodeType) IsFirstNode

func (nt *NodeType) IsFirstNode() bool

IsFirstNode returns true if creating new cluster is selected

func (*NodeType) View

func (nt *NodeType) View() string

View renders the node type selection step

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 NewPeerDomain

func NewPeerDomain() *PeerDomain

NewPeerDomain creates a new PeerDomain step

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

type SwarmKey

type SwarmKey struct {
	Input textinput.Model
	Error error
}

SwarmKey step for entering IPFS swarm key

func NewSwarmKey

func NewSwarmKey() *SwarmKey

NewSwarmKey creates a new SwarmKey step

func (*SwarmKey) SetError

func (s *SwarmKey) SetError(err error)

SetError sets an error message

func (*SwarmKey) SetValue

func (s *SwarmKey) SetValue(value string)

SetValue sets the input value

func (*SwarmKey) Value

func (s *SwarmKey) Value() string

Value returns the current input value

func (*SwarmKey) View

func (s *SwarmKey) View() string

View renders the swarm key input step

type VpsIP

type VpsIP struct {
	Input textinput.Model
	Error error
}

VpsIP step for entering server IP address

func NewVpsIP

func NewVpsIP() *VpsIP

NewVpsIP creates a new VpsIP step

func (*VpsIP) SetError

func (v *VpsIP) SetError(err error)

SetError sets an error message

func (*VpsIP) SetValue

func (v *VpsIP) SetValue(value string)

SetValue sets the input value

func (*VpsIP) Value

func (v *VpsIP) Value() string

Value returns the current input value

func (*VpsIP) View

func (v *VpsIP) View() string

View renders the VPS IP input step

type Welcome

type Welcome struct{}

Welcome step

func (*Welcome) View

func (w *Welcome) View() string

View renders the welcome step

Jump to

Keyboard shortcuts

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