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 NewDesiredRuleOptions ¶
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
Click to show internal directories.
Click to hide internal directories.