rules

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewDesiredRulesOptions

type NewDesiredRulesOptions struct {
	Priority         int
	Logger           *log.Logger
	ListenerRules    Rules
	Rule             *extensions.IngressRule
	IgnoreHostHeader bool
}

type ReconcileOptions

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

type Rules

type Rules []*rule.Rule

Rules contains a slice of Rules

func NewDesiredRules

func NewDesiredRules(o *NewDesiredRulesOptions) (Rules, int, error)

NewDesiredRules returns a Rules created by appending the IngressRule paths to a ListenerRules. The returned priority is the highest priority added to the rules list.

func (Rules) FindByPriority

func (rs Rules) FindByPriority(priority *string) (int, *rule.Rule)

FindByPriority returns the position in the Rules slice of the rule parameter

func (Rules) FindUnusedTGs

FindUnusedTGs returns a list of TargetGroups that are no longer referncd by any of the rules passed into this method.

func (Rules) Reconcile

func (rs Rules) Reconcile(rsOpts *ReconcileOptions) (Rules, error)

Reconcile kicks off the state synchronization for every Rule in this Rules slice.

func (Rules) StripCurrentState

func (rs Rules) StripCurrentState()

StripCurrentState removes the current statefrom all Rule instances.

func (Rules) StripDesiredState

func (rs Rules) StripDesiredState()

StripDesiredState removes the desired state from all Rules in the slice.

Jump to

Keyboard shortcuts

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