exposer

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 19 Imported by: 0

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.

func New

func New(annotationKey string, bindCIDRs []string, logger *zap.Logger) (*Exposer, error)

New creates a new Exposer.

func (*Exposer) Run

func (e *Exposer) Run(ctx context.Context) error

Run runs the Exposer.

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

type IPSetProvider interface {
	Get() (map[string]struct{}, error)
}

IPSetProvider in an interface for getting a set of IP addresses.

Jump to

Keyboard shortcuts

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