targetgroup

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteTG

func DeleteTG(tg *TargetGroup) error

DeleteTG deletes a TargetGroup from AWS.

Types

type NewCurrentTargetGroupOptions

type NewCurrentTargetGroupOptions struct {
	TargetGroup    *elbv2.TargetGroup
	Tags           util.Tags
	ALBNamePrefix  string
	LoadBalancerID string
	Logger         *log.Logger
}

type NewDesiredTargetGroupOptions

type NewDesiredTargetGroupOptions struct {
	Annotations    *annotations.Annotations
	Tags           util.Tags
	ALBNamePrefix  string
	LoadBalancerID string
	Port           int64
	Logger         *log.Logger
	SvcName        string
}

type ReconcileOptions

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

type Tags

type Tags struct {
	Current util.Tags
	Desired util.Tags
}

type TargetGroup

type TargetGroup struct {
	ID      string
	SvcName string
	Tags    Tags
	Current *elbv2.TargetGroup
	Desired *elbv2.TargetGroup
	Targets Targets
	Deleted bool
	// contains filtered or unexported fields
}

TargetGroup contains the current/desired tags & targetgroup for the ALB

func NewCurrentTargetGroup

func NewCurrentTargetGroup(o *NewCurrentTargetGroupOptions) (*TargetGroup, error)

NewCurrentTargetGroup returns a new targetgroup.TargetGroup from an elbv2.TargetGroup.

func NewDesiredTargetGroup

func NewDesiredTargetGroup(o *NewDesiredTargetGroupOptions) *TargetGroup

NewDesiredTargetGroup returns a new targetgroup.TargetGroup based on the parameters provided.

func (*TargetGroup) Reconcile

func (tg *TargetGroup) Reconcile(rOpts *ReconcileOptions) error

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

type Targets

type Targets struct {
	Current util.AWSStringSlice
	Desired util.AWSStringSlice
}

Jump to

Keyboard shortcuts

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