Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACMEConfig ¶
type AdditionalBackendConfig ¶ added in v0.9.0
type AdminAPIClient ¶ added in v0.8.6
type AdminAPIClient struct {
// contains filtered or unexported fields
}
AdminAPIClient wraps access to the Caddy Admin API.
func NewAdminAPIClient ¶ added in v0.8.6
func NewAdminAPIClient(log *zap.Logger) *AdminAPIClient
type Config ¶
type Config struct {
// Image is the container image that should be deployed as caddy
Image string `yaml:"image"`
// ListenIP is the IP that the caddy listener should bind to. By default,
// this will bind to all interfaces/IPs.
ListenIP string `yaml:"listenIP"`
ACME ACMEConfig `yaml:"acme"`
Ports PortsConfig `yaml:"ports"`
AdditionalBackends map[string]AdditionalBackendConfig `yaml:"additionalBackends"`
}
type Manager ¶
type Manager struct {
Log *zap.Logger
// CaddyConfigurator is used by manager for making changes to a caddy
// configuration
CaddyConfigurator caddyConfigurator
// Docker is the implementation of Docker that the manager should use to
// create and query containers.
Docker docker.APIClient
// Config controls how the manager behaves.
Config Config
// ContainerLabels is a map of labels to add to any containers created by
// the manager.
ContainerLabels map[string]string
}
Manager creates and manages a Caddy container. It provides a Init() method for creating the container, and reconciling its initial configuration, and methods for reconciling Guvnor services in the caddy configuration.
type PortsConfig ¶
Click to show internal directories.
Click to hide internal directories.