listeners

package
v0.0.0-...-0420b53 Latest Latest
Warning

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

Go to latest
Published: May 10, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listeners

type Listeners []*listener.Listener

Listeners is a slice of Listener pointers

func NewCurrentListeners

func NewCurrentListeners(o *NewCurrentListenersOptions) (Listeners, error)

NewCurrentListeners returns a new listeners.Listeners based on an elbv2.Listeners.

func NewDesiredListeners

func NewDesiredListeners(o *NewDesiredListenersOptions) (Listeners, error)

func (Listeners) Find

func (ls Listeners) Find(l *elbv2.Listener) int

Find returns the position of the listener, returning -1 if unfound.

func (Listeners) Reconcile

func (ls Listeners) Reconcile(rOpts *ReconcileOptions) (Listeners, error)

Reconcile kicks off the state synchronization for every Listener in this Listeners instances. TODO: function has changed a lot, test

func (Listeners) StripCurrentState

func (ls Listeners) StripCurrentState()

StripCurrentState takes all listeners and sets their CurrentListener to nil. Most commonly used when an ELB must be re-created fully. When the deletion of the ELB occurs, the listeners attached are also deleted, thus the ingress controller must know they no longer exist.

Additionally, since Rules are also removed its Listener is, this also calles StripDesiredState on the Rules attached to each listener.

func (Listeners) StripDesiredState

func (ls Listeners) StripDesiredState()

StripDesiredState removes the DesiredListener from all Listeners in the slice.

type NewCurrentListenersOptions

type NewCurrentListenersOptions struct {
	TargetGroups *targetgroups.TargetGroups
	Listeners    []*elbv2.Listener
	Logger       *log.Logger
}

type NewDesiredListenersOptions

type NewDesiredListenersOptions struct {
	Ingress     *extensions.Ingress
	Listeners   Listeners
	Annotations *annotations.Annotations
	Logger      *log.Logger
	Priority    int
}

type ReconcileOptions

type ReconcileOptions struct {
	Eventf          func(string, string, string, ...interface{})
	LoadBalancerArn *string
	TargetGroups    targetgroups.TargetGroups
}

Jump to

Keyboard shortcuts

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