caddy_docker_upstreams

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 20 Imported by: 0

README

caddy-cota-upstreams

Dynamic COTA upstreams for Caddy.

Used in combination with COTA to deploy our applications with zero-downtime releases.

Documentation

Index

Constants

View Source
const (
	LabelEnable       = "cota.enable"
	LabelNetwork      = "cota.network"
	LabelUpstreamPort = "cota.upstream.port"
)
View Source
const (
	LabelHosts = "cota.hosts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Upstreams

type Upstreams struct{}

Upstreams provides upstreams from the docker host.

func (Upstreams) CaddyModule

func (Upstreams) CaddyModule() caddy.ModuleInfo

func (*Upstreams) GetUpstreams

func (u *Upstreams) GetUpstreams(r *http.Request) ([]*reverseproxy.Upstream, error)

func (*Upstreams) Provision

func (u *Upstreams) Provision(ctx caddy.Context) error

func (*Upstreams) UnmarshalCaddyfile

func (u *Upstreams) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile deserializes Caddyfile tokens into u.

dynamic docker

Jump to

Keyboard shortcuts

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