Documentation
¶
Index ¶
- func EnableJSONLogging(client *ssh.Client, verbose bool) error
- func GetAccessLogFormat(client *ssh.Client) (string, error)
- type Manager
- func (m *Manager) EnsureTraefikService(networkName string) error
- func (m *Manager) GetServiceLabels(serviceName string, service *config.ServiceConfig, fullServiceName string) []string
- func (m *Manager) RemoveServiceLabels(fullServiceName string) error
- func (m *Manager) UpdateServiceLabels(serviceName string, service *config.ServiceConfig, fullServiceName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnableJSONLogging ¶
EnableJSONLogging configures Traefik to use JSON format for access logs
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles Traefik proxy configuration for Swarm deployments
func NewManager ¶
NewManager creates a new Traefik manager
func (*Manager) EnsureTraefikService ¶
EnsureTraefikService ensures Traefik is running as a Swarm service
func (*Manager) GetServiceLabels ¶
func (m *Manager) GetServiceLabels(serviceName string, service *config.ServiceConfig, fullServiceName string) []string
GetServiceLabels returns Traefik labels for service creation This avoids service updates which can cause brief Traefik config reload disruptions
func (*Manager) RemoveServiceLabels ¶
RemoveServiceLabels removes Traefik labels from a service
func (*Manager) UpdateServiceLabels ¶
func (m *Manager) UpdateServiceLabels(serviceName string, service *config.ServiceConfig, fullServiceName string) error
UpdateServiceLabels adds Traefik labels to a service for automatic discovery DEPRECATED: Use GetServiceLabels during service creation to avoid disruptions
Click to show internal directories.
Click to hide internal directories.