Documentation ¶
Overview ¶
Package exposer implements the Exposer controller.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exposer ¶
type Exposer struct {
// contains filtered or unexported fields
}
Exposer is a controller that exposes the given services on the given host interfaces.
type FilteringIPSetProvider ¶
type FilteringIPSetProvider struct {
// contains filtered or unexported fields
}
FilteringIPSetProvider is an IPSetProvider that filters the underlying IPSetProvider by a list of CIDRs.
If the list of CIDRs is empty, it will return "0.0.0.0" as the only IP address.
func NewFilteringIPSetProvider ¶
func NewFilteringIPSetProvider(bindCIDRs []string, underlyingProvider IPSetProvider, logger *zap.Logger) (*FilteringIPSetProvider, error)
NewFilteringIPSetProvider returns a new FilteringIPSetProvider.
func (*FilteringIPSetProvider) Get ¶
func (e *FilteringIPSetProvider) Get() (map[string]struct{}, error)
Get implements the ipmapper.IPSetProvider interface.
It returns the set of host IP addresses to bind the load balancer to.
type IPSetProvider ¶
IPSetProvider in an interface for getting a set of IP addresses.
Click to show internal directories.
Click to hide internal directories.