Documentation
¶
Index ¶
- type DockerTrigger
- type DockerTriggerConfig
- type HttpRouter
- type HttpRouterTls
- type HttpRouterTlsDomain
- type ITraefikClient
- type Traefik
- type TraefikClient
- type TraefikConfig
- type TraefikConfigEntry
- type TraefikConfigEntryMap
- type WebhookManager
- func (m *WebhookManager) Configure(addr string) error
- func (m *WebhookManager) OnFinalShutdown() error
- func (m *WebhookManager) OnStartup() error
- func (m *WebhookManager) Register(cfg *WebhookTriggerConfig, target *Traefik) error
- func (m *WebhookManager) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type WebhookTriggerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerTrigger ¶
type DockerTrigger struct {
// contains filtered or unexported fields
}
func NewDockerTrigger ¶
func NewDockerTrigger(cfg *DockerTriggerConfig, target *Traefik) *DockerTrigger
func (*DockerTrigger) Start ¶
func (d *DockerTrigger) Start() error
func (*DockerTrigger) Stop ¶
func (d *DockerTrigger) Stop()
type DockerTriggerConfig ¶
type HttpRouter ¶
type HttpRouter struct {
EntryPoints []string `json:"entryPoints"`
Service string `json:"service"`
Rule string `json:"rule"`
Priority int `json:"priority"`
Tls *HttpRouterTls `json:"tls,omitempty"`
Status string `json:"status"`
Using []string `json:"using"`
Name string `json:"name"`
Provider string `json:"provider"`
}
type HttpRouterTls ¶
type HttpRouterTls struct {
Options string `json:"options"`
Domains []HttpRouterTlsDomain `json:"domains"`
}
type HttpRouterTlsDomain ¶
type ITraefikClient ¶
type ITraefikClient interface {
GetHttpRouters() (*[]HttpRouter, error)
}
type Traefik ¶
type Traefik struct {
Next plugin.Handler
Config *TraefikConfig
TraefikClient *TraefikClient
// contains filtered or unexported fields
}
type TraefikClient ¶
type TraefikClient struct {
ITraefikClient
// contains filtered or unexported fields
}
func NewTraefikClient ¶
func NewTraefikClient(cfg *TraefikConfig) (*TraefikClient, error)
func (*TraefikClient) GetHttpRouters ¶
func (c *TraefikClient) GetHttpRouters() (*[]HttpRouter, error)
type TraefikConfig ¶
type TraefikConfig struct {
// contains filtered or unexported fields
}
type TraefikConfigEntry ¶
type TraefikConfigEntry struct {
// contains filtered or unexported fields
}
type TraefikConfigEntryMap ¶
type TraefikConfigEntryMap map[string]*TraefikConfigEntry
type WebhookManager ¶
type WebhookManager struct {
// contains filtered or unexported fields
}
func NewWebhookManager ¶
func NewWebhookManager() *WebhookManager
func (*WebhookManager) Configure ¶
func (m *WebhookManager) Configure(addr string) error
func (*WebhookManager) OnFinalShutdown ¶
func (m *WebhookManager) OnFinalShutdown() error
func (*WebhookManager) OnStartup ¶
func (m *WebhookManager) OnStartup() error
func (*WebhookManager) Register ¶
func (m *WebhookManager) Register(cfg *WebhookTriggerConfig, target *Traefik) error
func (*WebhookManager) ServeHTTP ¶
func (m *WebhookManager) ServeHTTP(w http.ResponseWriter, r *http.Request)
type WebhookTriggerConfig ¶
Click to show internal directories.
Click to hide internal directories.