listener

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	Current *elbv2.Listener
	Desired *elbv2.Listener
	Rules   rules.Rules
	Deleted bool
	Logger  *log.Logger
}

Listener contains the relevant ID, Rules, and current/desired Listeners

func NewCurrentListener

func NewCurrentListener(o *NewCurrentListenerOptions) *Listener

NewCurrentListener returns a new listener.Listener based on an elbv2.Listener.

func NewDesiredListener

func NewDesiredListener(o *NewDesiredListenerOptions) *Listener

NewDesiredListener returns a new listener.Listener based on the parameters provided.

func (*Listener) NeedsModification

func (l *Listener) NeedsModification(target *elbv2.Listener, rOpts *ReconcileOptions) bool

NeedsModification returns true when the current and desired listener state are not the same. representing that a modification to the listener should be attempted.

func (*Listener) NeedsModificationCheck

func (l *Listener) NeedsModificationCheck(target *elbv2.Listener) bool

NeedsModifiationCheck is intended for non-reconciliation checks that need to know whether a Listener will need modification.

func (*Listener) Reconcile

func (l *Listener) Reconcile(rOpts *ReconcileOptions) error

Reconcile compares the current and desired state of this Listener instance. Comparison results in no action, the creation, the deletion, or the modification of an AWS listener to satisfy the ingress's current state.

func (*Listener) StripCurrentState

func (l *Listener) StripCurrentState()

StripCurrentState removes the current state from the listener.

func (*Listener) StripDesiredState

func (l *Listener) StripDesiredState()

StripDesiredState removes the desired state from the listener.

type NewCurrentListenerOptions

type NewCurrentListenerOptions struct {
	Listener *elbv2.Listener
	Logger   *log.Logger
}

type NewDesiredListenerOptions

type NewDesiredListenerOptions struct {
	Port           annotations.PortData
	CertificateArn *string
	Logger         *log.Logger
}

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