Documentation
¶
Index ¶
- Constants
- type Config
- type Manager
- func (m *Manager) BackupConfig() (string, error)
- func (m *Manager) ConfigExists() bool
- func (m *Manager) EnsureRunning() error
- func (m *Manager) GenerateConfig() error
- func (m *Manager) GenerateDynamicConfig() error
- func (m *Manager) GetConfig() (string, error)
- func (m *Manager) GetConfigPath() string
- func (m *Manager) GetDashboardURL() string
- func (m *Manager) GetStatus() (map[string]interface{}, error)
- func (m *Manager) IsRunning() (bool, error)
- func (m *Manager) RemoveContainer() error
- func (m *Manager) RestartContainer() error
- func (m *Manager) RestoreConfig(backupPath string) error
- func (m *Manager) Setup() error
- func (m *Manager) StartContainer() error
- func (m *Manager) StopContainer() error
- func (m *Manager) UpdateConfig() error
- func (m *Manager) ValidateConfig() error
Constants ¶
const ( TraefikContainerName = "doku-traefik" TraefikImage = "traefik:v2.10" TraefikVersion = "2.10" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Domain string
Protocol string
HTTPPort int
HTTPSPort int
DashboardEnabled bool
CertificatePath string
CertificateKeyPath string
}
Config represents Traefik configuration
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles Traefik setup and configuration
func NewManager ¶
NewManager creates a new Traefik manager
func (*Manager) BackupConfig ¶
BackupConfig creates a backup of the current configuration
func (*Manager) ConfigExists ¶
ConfigExists checks if Traefik configuration file exists
func (*Manager) EnsureRunning ¶
EnsureRunning ensures Traefik is running, starts it if not
func (*Manager) GenerateConfig ¶
GenerateConfig generates Traefik configuration file
func (*Manager) GenerateDynamicConfig ¶
GenerateDynamicConfig generates dynamic configuration for Traefik
func (*Manager) GetConfigPath ¶
GetConfigPath returns the path to the Traefik configuration file
func (*Manager) GetDashboardURL ¶
GetDashboardURL returns the Traefik dashboard URL
func (*Manager) RemoveContainer ¶
RemoveContainer removes the Traefik container
func (*Manager) RestartContainer ¶
RestartContainer restarts the Traefik container
func (*Manager) RestoreConfig ¶
RestoreConfig restores configuration from backup
func (*Manager) StartContainer ¶
StartContainer starts the Traefik container
func (*Manager) StopContainer ¶
StopContainer stops the Traefik container
func (*Manager) UpdateConfig ¶
UpdateConfig updates Traefik configuration and restarts the container
func (*Manager) ValidateConfig ¶
ValidateConfig validates the Traefik configuration