rule

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

func ConditionToMap

func ConditionToMap(cs []*elbv2.RuleCondition) map[string][]*string

ConditionsToMap converts a elbv2.Conditions struct into a map[string]string representation

func ConditionsEqual

func ConditionsEqual(c1 []*elbv2.RuleCondition, c2 []*elbv2.RuleCondition) bool

ConditionsEqual returns true if c1 and c2 are identical conditions.

Types

type NewCurrentRuleOptions

type NewCurrentRuleOptions struct {
	SvcName string
	Rule    *elbv2.Rule
	Logger  *log.Logger
}

type NewDesiredRuleOptions

type NewDesiredRuleOptions struct {
	Priority         int
	Hostname         string
	IgnoreHostHeader bool
	Path             string
	SvcName          string
	Logger           *log.Logger
}

type ReconcileOptions

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

type Rule

type Rule struct {
	Current        *elbv2.Rule
	Desired        *elbv2.Rule
	DesiredSvcName string
	CurrentSvcName string
	Deleted        bool
	// contains filtered or unexported fields
}

Rule contains a current/desired Rule

func NewCurrentRule

func NewCurrentRule(o *NewCurrentRuleOptions) *Rule

NewCurrentRule creates a Rule from an elbv2.Rule

func NewDesiredRule

func NewDesiredRule(o *NewDesiredRuleOptions) *Rule

NewDesiredRule returns an rule.Rule based on the provided parameters.

func (*Rule) Reconcile

func (r *Rule) Reconcile(rOpts *ReconcileOptions) error

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

func (*Rule) StripCurrentState

func (r *Rule) StripCurrentState()

StripCurrentState removes the current state from the rule.

func (*Rule) StripDesiredState

func (r *Rule) StripDesiredState()

StripDesiredState removes the desired state from the rule.

func (*Rule) TargetGroupArn

func (r *Rule) TargetGroupArn(tgs targetgroups.TargetGroups) *string

Jump to

Keyboard shortcuts

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