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 ¶
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 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 }