targetgroups

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewCurrentTargetGroupsOptions

type NewCurrentTargetGroupsOptions struct {
	TargetGroups   []*elbv2.TargetGroup
	ALBNamePrefix  string
	LoadBalancerID string
	Logger         *log.Logger
}

type NewDesiredTargetGroupsOptions

type NewDesiredTargetGroupsOptions struct {
	Ingress              *extensions.Ingress
	LoadBalancerID       string
	ExistingTargetGroups TargetGroups
	Annotations          *annotations.Annotations
	ALBNamePrefix        string
	Namespace            string
	Tags                 util.Tags
	Logger               *log.Logger
	GetServiceNodePort   func(string, int32) (*int64, error)
	GetNodes             func() util.AWSStringSlice
}

type ReconcileOptions

type ReconcileOptions struct {
	Eventf            func(string, string, string, ...interface{})
	VpcID             *string
	ManagedSGInstance *string
}

type TargetGroups

type TargetGroups []*targetgroup.TargetGroup

TargetGroups is a slice of TargetGroup pointers

func NewCurrentTargetGroups

func NewCurrentTargetGroups(o *NewCurrentTargetGroupsOptions) (TargetGroups, error)

NewCurrentTargetGroups returns a new targetgroups.TargetGroups based on an elbv2.TargetGroups.

func NewDesiredTargetGroups

func NewDesiredTargetGroups(o *NewDesiredTargetGroupsOptions) (TargetGroups, error)

NewDesiredTargetGroups returns a new targetgroups.TargetGroups based on an extensions.Ingress.

func (TargetGroups) FindById

func (t TargetGroups) FindById(id string) (int, *targetgroup.TargetGroup)

FindById returns the position of a TargetGroup by its ID, returning -1 if unfound.

func (TargetGroups) FindCurrentByARN

func (t TargetGroups) FindCurrentByARN(id string) (int, *targetgroup.TargetGroup)

FindCurrentByARN returns the position of a current TargetGroup and the TargetGroup itself based on the ARN passed. Returns the position of -1 if unfound.

func (TargetGroups) LookupBySvc

func (t TargetGroups) LookupBySvc(svc string) int

LookupBySvc returns the position of a TargetGroup by its SvcName, returning -1 if unfound.

func (TargetGroups) Reconcile

Reconcile kicks off the state synchronization for every target group inside this TargetGroups instance. It returns the new TargetGroups its created and a list of TargetGroups it believes should be cleaned up.

func (TargetGroups) StripDesiredState

func (t TargetGroups) StripDesiredState()

StripDesiredState removes the Tags.Desired, DesiredTargetGroup, and Targets.Desired from all TargetGroups

Jump to

Keyboard shortcuts

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