Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Flags ¶
type Flags struct {
VpsIP string
Domain string
Branch string
NoPull bool
Force bool
DryRun bool
SkipChecks bool
JoinAddress string
ClusterSecret string
SwarmKey string
PeersStr string
// IPFS/Cluster specific info for Peering configuration
IPFSPeerID string
IPFSAddrs string
IPFSClusterPeerID string
IPFSClusterAddrs string
}
Flags represents install command flags
func ParseFlags ¶
ParseFlags parses install command flags
type Orchestrator ¶
type Orchestrator struct {
// contains filtered or unexported fields
}
Orchestrator manages the install process
func NewOrchestrator ¶
func NewOrchestrator(flags *Flags) (*Orchestrator, error)
NewOrchestrator creates a new install orchestrator
func (*Orchestrator) Execute ¶
func (o *Orchestrator) Execute() error
Execute runs the installation process
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator validates install command inputs
func NewValidator ¶
NewValidator creates a new validator
func (*Validator) IsFirstNode ¶
IsFirstNode returns true if this is the first node in the cluster
func (*Validator) SaveSecrets ¶
SaveSecrets saves cluster secret and swarm key to secrets directory
func (*Validator) ValidateDNS ¶
func (v *Validator) ValidateDNS()
ValidateDNS validates DNS record if domain is provided
func (*Validator) ValidateFlags ¶
ValidateFlags validates required flags
func (*Validator) ValidateGeneratedConfig ¶
ValidateGeneratedConfig validates generated configuration files
func (*Validator) ValidatePorts ¶
ValidatePorts validates port availability
func (*Validator) ValidateRootPrivileges ¶
ValidateRootPrivileges checks if running as root