Documentation ¶
Index ¶
- type NewCurrentTargetGroupsOptions
- type NewDesiredTargetGroupsOptions
- type ReconcileOptions
- type TargetGroups
- func (t TargetGroups) FindById(id string) (int, *targetgroup.TargetGroup)
- func (t TargetGroups) FindCurrentByARN(id string) (int, *targetgroup.TargetGroup)
- func (t TargetGroups) LookupBySvc(svc string) int
- func (t TargetGroups) Reconcile(rOpts *ReconcileOptions) (TargetGroups, TargetGroups, error)
- func (t TargetGroups) StripDesiredState()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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 ¶
func (t TargetGroups) Reconcile(rOpts *ReconcileOptions) (TargetGroups, TargetGroups, error)
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