Documentation
¶
Index ¶
- func InstallManagementScript(clusterIP string) error
- type DependencyInstallCompleteMsg
- type FactRotator
- type InstallationStep
- type InstallerStatus
- type SyncHelmfileOptions
- type UnbindInstallUpdateMsg
- type UnbindInstaller
- func (self *UnbindInstaller) GetDependencyState(name string) (InstallerStatus, time.Time, time.Time, []string)
- func (self *UnbindInstaller) GetLastUpdateMessage(name string) UnbindInstallUpdateMsg
- func (self *UnbindInstaller) InstallDependencyWithSteps(ctx context.Context, dependencyName string, steps []InstallationStep) error
- func (self *UnbindInstaller) SyncHelmfileWithSteps(ctx context.Context, opts SyncHelmfileOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InstallManagementScript ¶
InstallManagementScript installs the management script to the system
Types ¶
type DependencyInstallCompleteMsg ¶
type DependencyInstallCompleteMsg struct{}
DependencyInstallCompleteMsg signals installation finished
type FactRotator ¶ added in v0.0.27
type FactRotator struct {
// contains filtered or unexported fields
}
FactRotator manages educational facts display without repetition
func NewFactRotator ¶ added in v0.0.27
func NewFactRotator(facts []string) *FactRotator
NewFactRotator creates a new fact rotator with shuffled facts
func (*FactRotator) GetNext ¶ added in v0.0.27
func (f *FactRotator) GetNext() string
GetNext returns the next fact, reshuffling when all facts are exhausted
type InstallationStep ¶
type InstallationStep struct {
Description string
Progress float64
Action func(context.Context) error
}
InstallationStep represents a single installation task
type InstallerStatus ¶
type InstallerStatus string
InstallerStatus - possible status values
const ( StatusPending InstallerStatus = "pending" StatusInstalling InstallerStatus = "installing" StatusCompleted InstallerStatus = "completed" StatusFailed InstallerStatus = "failed" )
type SyncHelmfileOptions ¶
type SyncHelmfileOptions struct {
BaseDomain string
UnbindDomain string
UnbindRegistryDomain string
AdditionalValues map[string]interface{}
RepoURL string
// Registry configuration
DisableRegistry bool // Whether to disable the local registry component
RegistryUsername string // External registry username
RegistryPassword string // External registry password
RegistryHost string // External registry host
}
SyncHelmfileOptions defines options for the Helmfile sync operation
type UnbindInstallUpdateMsg ¶
type UnbindInstallUpdateMsg struct {
Name string
Status InstallerStatus
Description string
Progress float64
Error error
StartTime time.Time // Start time of the installation
EndTime time.Time // End time of the installation
StepHistory []string // History of steps executed
}
UnbindInstallUpdateMsg for UI progress updates
type UnbindInstaller ¶
type UnbindInstaller struct {
LogChan chan<- string
FactChan chan<- string
// contains filtered or unexported fields
}
func NewUnbindInstaller ¶
func NewUnbindInstaller(kubeConfig string, logChan chan<- string, progressChan chan<- UnbindInstallUpdateMsg, factChan chan<- string) (*UnbindInstaller, error)
func (*UnbindInstaller) GetDependencyState ¶
func (self *UnbindInstaller) GetDependencyState(name string) (InstallerStatus, time.Time, time.Time, []string)
GetDependencyState grabs status info for a component
func (*UnbindInstaller) GetLastUpdateMessage ¶
func (self *UnbindInstaller) GetLastUpdateMessage(name string) UnbindInstallUpdateMsg
GetLastUpdateMessage grabs latest status
func (*UnbindInstaller) InstallDependencyWithSteps ¶
func (self *UnbindInstaller) InstallDependencyWithSteps( ctx context.Context, dependencyName string, steps []InstallationStep, ) error
InstallDependencyWithSteps runs the installation sequence
func (*UnbindInstaller) SyncHelmfileWithSteps ¶
func (self *UnbindInstaller) SyncHelmfileWithSteps(ctx context.Context, opts SyncHelmfileOptions) error
SyncHelmfileWithSteps performs a helmfile sync operation using the unbind-charts repository