Documentation
¶
Index ¶
- type ApkManager
- type AptManager
- type DnfManager
- type OSFamily
- type OSInfo
- type PackageManager
- type Provisioner
- func (p *Provisioner) CheckRequirements() error
- func (p *Provisioner) ConfigureFirewall() error
- func (p *Provisioner) HardenSecurity() error
- func (p *Provisioner) InstallDocker() error
- func (p *Provisioner) InstallMonitoringAgent() error
- func (p *Provisioner) SetupDeployUser(username string) error
- func (p *Provisioner) UpdateSystem() error
- func (p *Provisioner) VerifyAutoRecovery() error
- type YumManager
- type ZypperManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApkManager ¶
type ApkManager struct {
// contains filtered or unexported fields
}
ApkManager manages packages using apk
func (*ApkManager) Install ¶
func (ap *ApkManager) Install(packages ...string) error
func (*ApkManager) Remove ¶
func (ap *ApkManager) Remove(packages ...string) error
func (*ApkManager) Update ¶
func (ap *ApkManager) Update() error
type AptManager ¶
type AptManager struct {
// contains filtered or unexported fields
}
AptManager manages packages using apt/apt-get
func (*AptManager) Install ¶
func (a *AptManager) Install(packages ...string) error
func (*AptManager) Remove ¶
func (a *AptManager) Remove(packages ...string) error
func (*AptManager) Update ¶
func (a *AptManager) Update() error
type DnfManager ¶
type DnfManager struct {
// contains filtered or unexported fields
}
DnfManager manages packages using dnf
func (*DnfManager) Install ¶
func (d *DnfManager) Install(packages ...string) error
func (*DnfManager) Remove ¶
func (d *DnfManager) Remove(packages ...string) error
func (*DnfManager) Update ¶
func (d *DnfManager) Update() error
type OSInfo ¶
OSInfo contains detected operating system information
func (*OSInfo) IsSupported ¶
IsSupported returns true if the OS is supported
type PackageManager ¶
type PackageManager interface {
Update() error
Install(packages ...string) error
Remove(packages ...string) error
Search(packageName string) (bool, error)
}
PackageManager defines interface for OS package management
func NewPackageManager ¶
NewPackageManager creates a package manager for the detected OS
type Provisioner ¶
type Provisioner struct {
// contains filtered or unexported fields
}
Provisioner handles server provisioning
func NewProvisioner ¶
func NewProvisioner(client *ssh.Client, verbose bool) *Provisioner
NewProvisioner creates a new provisioner
func (*Provisioner) CheckRequirements ¶
func (p *Provisioner) CheckRequirements() error
CheckRequirements checks if the server meets basic requirements
func (*Provisioner) ConfigureFirewall ¶
func (p *Provisioner) ConfigureFirewall() error
ConfigureFirewall configures UFW firewall
func (*Provisioner) HardenSecurity ¶
func (p *Provisioner) HardenSecurity() error
HardenSecurity applies comprehensive security hardening
func (*Provisioner) InstallDocker ¶
func (p *Provisioner) InstallDocker() error
InstallDocker installs Docker and Docker Compose
func (*Provisioner) InstallMonitoringAgent ¶
func (p *Provisioner) InstallMonitoringAgent() error
InstallMonitoringAgent installs the lightweight monitoring agent
func (*Provisioner) SetupDeployUser ¶
func (p *Provisioner) SetupDeployUser(username string) error
SetupDeployUser ensures deploy user exists and has proper permissions
func (*Provisioner) UpdateSystem ¶
func (p *Provisioner) UpdateSystem() error
UpdateSystem updates system packages
func (*Provisioner) VerifyAutoRecovery ¶
func (p *Provisioner) VerifyAutoRecovery() error
VerifyAutoRecovery verifies that critical services are enabled for auto-recovery
type YumManager ¶
type YumManager struct {
// contains filtered or unexported fields
}
YumManager manages packages using yum
func (*YumManager) Install ¶
func (y *YumManager) Install(packages ...string) error
func (*YumManager) Remove ¶
func (y *YumManager) Remove(packages ...string) error
func (*YumManager) Update ¶
func (y *YumManager) Update() error
type ZypperManager ¶
type ZypperManager struct {
// contains filtered or unexported fields
}
ZypperManager manages packages using zypper
func (*ZypperManager) Install ¶
func (z *ZypperManager) Install(packages ...string) error
func (*ZypperManager) Remove ¶
func (z *ZypperManager) Remove(packages ...string) error
func (*ZypperManager) Update ¶
func (z *ZypperManager) Update() error