nginx

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: Apache-2.0 Imports: 11 Imported by: 3

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 ContextRoot added in v1.1.1

type ContextRoot struct {
	Name      string
	Path      string
	Rewrite   bool
	Upstreams []string
}

type Host

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

type NginxLoadBalancer

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

func NewNginxLoadBalancer

func NewNginxLoadBalancer(c *config.ExtensionConfig, cl *client.Client) (*NginxLoadBalancer, error)

func (*NginxLoadBalancer) ConfigPath

func (p *NginxLoadBalancer) ConfigPath() string

func (*NginxLoadBalancer) GenerateProxyConfig

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

func (*NginxLoadBalancer) HandleEvent

func (p *NginxLoadBalancer) HandleEvent(event *events.Message) error

func (*NginxLoadBalancer) Name

func (p *NginxLoadBalancer) Name() string

func (*NginxLoadBalancer) Reload

func (p *NginxLoadBalancer) Reload(proxyContainers []types.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