nginx

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Hosts    []*Host
	Config   *config.ExtensionConfig
	Networks map[string]string
}

type Host

type Host struct {
	ServerNames        []string
	Port               int
	SSLPort            int
	SSL                bool
	SSLCert            string
	SSLCertKey         string
	SSLOnly            bool
	SSLBackend         bool
	Upstream           *Upstream
	WebsocketEndpoints []string
}

type NginxLoadBalancer

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

func (*NginxLoadBalancer) ConfigPath

func (p *NginxLoadBalancer) ConfigPath() string

func (*NginxLoadBalancer) GenerateProxyConfig

func (p *NginxLoadBalancer) GenerateProxyConfig(containers []dockerclient.Container) (interface{}, error)

func (*NginxLoadBalancer) HandleEvent

func (p *NginxLoadBalancer) HandleEvent(event *dockerclient.Event) error

func (*NginxLoadBalancer) Name

func (p *NginxLoadBalancer) Name() string

func (*NginxLoadBalancer) Reload

func (p *NginxLoadBalancer) Reload(proxyContainers []dockerclient.Container) error

func (*NginxLoadBalancer) Template

func (p *NginxLoadBalancer) Template() string

type Server

type Server struct {
	Addr string
}

type Upstream

type Upstream struct {
	Name    string
	Servers []*Server
}

Jump to

Keyboard shortcuts

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