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 }
Click to show internal directories.
Click to hide internal directories.