Documentation
¶
Overview ¶
Package alb implements the Application Load Balancer Backend
Index ¶
- func NewClient(name string, o *bo.Options, router http.Handler, _ cache.Cache, ...) (backends.Backend, error)
- func StartALBPools(clients backends.Backends, hcs healthcheck.StatusLookup) error
- func StopPools(clients backends.Backends) error
- func ValidateClients(clients backends.Backends) error
- type Client
- func (c *Client) DefaultPathConfigs(_ *bo.Options) po.List
- func (c *Client) Handlers() handlers.Lookup
- func (c *Client) StopPool()
- func (c *Client) Validate(backends sets.Set[string]) error
- func (c *Client) ValidateAndStartPool(clients backends.Backends, hcs healthcheck.StatusLookup) error
- func (c *Client) ValidatePool(backends sets.Set[string]) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(name string, o *bo.Options, router http.Handler, _ cache.Cache, _ backends.Backends, factories rt.Lookup, ) (backends.Backend, error)
NewClient returns a new ALB client reference
func StartALBPools ¶
func StartALBPools(clients backends.Backends, hcs healthcheck.StatusLookup) error
StartALBPools ensures that ALB's are fully loaded, which can't be done until all backends are processed, so the ALB's destination backend names can be mapped to their respective clients
func StopPools ¶
StopPools ensures that ALBs are fully stopped when the process's configuration is reloaded
func ValidateClients ¶
ValidateClients iterates the backends and validates ALB backends
Types ¶
type Client ¶
Client Implements the Backend Interface
func (*Client) DefaultPathConfigs ¶
DefaultPathConfigs returns the default PathConfigs for the given Provider
func (*Client) StopPool ¶
func (c *Client) StopPool()
StopPool stops this Client's pool. No-op for handlers that don't own a pool (e.g. user_router).
func (*Client) ValidateAndStartPool ¶
func (c *Client) ValidateAndStartPool(clients backends.Backends, hcs healthcheck.StatusLookup) error
ValidateAndStartPool starts this Client's pool up using the provided list of backends to validate and map out the pool configuration
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mech provides the ALB Mechanisms functionality
|
Package mech provides the ALB Mechanisms functionality |
|
fanout
Package fanout is the shared primitive for ALB mechanisms that scatter a single inbound request to N pool members and gather their responses.
|
Package fanout is the shared primitive for ALB mechanisms that scatter a single inbound request to N pool members and gather their responses. |
|
Package pool provides an application load balancer pool
|
Package pool provides an application load balancer pool |