install

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(args []string)

Handle executes the install command

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

func ParseFlags(args []string) (*Flags, error)

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

func NewValidator(flags *Flags, oramaDir string) *Validator

NewValidator creates a new validator

func (*Validator) IsFirstNode

func (v *Validator) IsFirstNode() bool

IsFirstNode returns true if this is the first node in the cluster

func (*Validator) SaveSecrets

func (v *Validator) SaveSecrets() error

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

func (v *Validator) ValidateFlags() error

ValidateFlags validates required flags

func (*Validator) ValidateGeneratedConfig

func (v *Validator) ValidateGeneratedConfig() error

ValidateGeneratedConfig validates generated configuration files

func (*Validator) ValidatePorts

func (v *Validator) ValidatePorts() error

ValidatePorts validates port availability

func (*Validator) ValidateRootPrivileges

func (v *Validator) ValidateRootPrivileges() error

ValidateRootPrivileges checks if running as root

Jump to

Keyboard shortcuts

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