traefik

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableJSONLogging

func EnableJSONLogging(client *ssh.Client, verbose bool) error

EnableJSONLogging configures Traefik to use JSON format for access logs

func GetAccessLogFormat

func GetAccessLogFormat(client *ssh.Client) (string, error)

GetAccessLogFormat returns the configured access log format

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager handles Traefik proxy configuration for Swarm deployments

func NewManager

func NewManager(client *ssh.Client, projectName, environment string, verbose bool) *Manager

NewManager creates a new Traefik manager

func (*Manager) ConfigureDNS01Resolver added in v0.1.3

func (m *Manager) ConfigureDNS01Resolver(acmeDNSEndpoint string) error

ConfigureDNS01Resolver adds DNS-01 resolver configuration to Traefik

func (*Manager) EnsureTraefikService

func (m *Manager) EnsureTraefikService(networkName string) error

EnsureTraefikService ensures Traefik is running as a Swarm service

func (*Manager) EnsureTraefikServiceWithDNS01 added in v0.1.3

func (m *Manager) EnsureTraefikServiceWithDNS01(networkName string, acmeDNSEndpoint string) error

EnsureTraefikServiceWithDNS01 ensures Traefik is running with DNS-01 support

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) GetServiceLabelsWithResolver added in v0.1.3

func (m *Manager) GetServiceLabelsWithResolver(serviceName string, service *config.ServiceConfig, fullServiceName string, wildcardDomains map[string]bool) []string

GetServiceLabelsWithResolver returns Traefik labels with custom cert resolver selection wildcardDomains is a set of base domains that should use the dns resolver

func (*Manager) RemoveServiceLabels

func (m *Manager) RemoveServiceLabels(fullServiceName string) error

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

Jump to

Keyboard shortcuts

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