loadbalancer

package
v0.0.0-...-5a0bf87 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PassHostHeaderKey      = "pass_host_header"
	TrustForwardHeadersKey = "trust_forward_headers"
	FailoverExpressionKey  = "failover_expression"
	MaxReqSizeKey          = "max_req_size"
	MaxRespSizeKey         = "max_resp_size"
	WebsocketKey           = "websocket"

	FrontendSettingsKey = "frontend_settings"
	BackendSettingsKey  = "backend_settings"

	DefaultPassHostHeader      = true
	DefaultTrustForwardHeaders = true
	DefaultWebsocket           = false
)

Variables

View Source
var (
	ErrUnexpectedFrontendType = errors.New("Frontend is of unexpected type")
	ErrUnexpectedBackendType  = errors.New("Backend is of unexpected type")
)

Functions

This section is empty.

Types

type Backend

type Backend interface {
	LoadbalancerObject
	AddServer(srv Server)
}

type Frontend

type Frontend interface {
	LoadbalancerObject
	AddMiddleware(mid Middleware)
}

type LoadBalancer

type LoadBalancer interface {
	NewFrontend(*kubernetes.Resource) (Frontend, error)
	GetFrontend(string) (Frontend, error)
	UpsertFrontend(Frontend) error
	DeleteFrontend(Frontend) error
	NewBackend(*kubernetes.Resource) (Backend, error)
	GetBackend(string) (Backend, error)
	UpsertBackend(Backend) error
	DeleteBackend(Backend) error
	NewServers(*kubernetes.Resource) ([]Server, error)
	GetServers(string) ([]Server, error)
	UpsertServer(Backend, Server) error
	DeleteServer(Backend, Server) error
	NewMiddlewares(*kubernetes.Resource) ([]Middleware, error)

	Kind() string
	Status() error
}

type LoadbalancerObject

type LoadbalancerObject interface {
	GetID() string
}

type Middleware

type Middleware interface {
	LoadbalancerObject
}

type Server

type Server interface {
	LoadbalancerObject
}

type ServerMap

type ServerMap map[string]Server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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