alb

package
v2.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2019 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package alb provides an updater for an ALB frontend to attach nginx to.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(region string, targetGroupNames []string, targetGroupDeregistrationDelay time.Duration) (controller.Updater, error)

New creates a controller.Updater for attaching to ALB target groups on first update.

Types

type ALB

type ALB interface {
	DescribeTargetGroups(input *aws_alb.DescribeTargetGroupsInput) (*aws_alb.DescribeTargetGroupsOutput, error)
	RegisterTargets(input *aws_alb.RegisterTargetsInput) (*aws_alb.RegisterTargetsOutput, error)
	DeregisterTargets(input *aws_alb.DeregisterTargetsInput) (*aws_alb.DeregisterTargetsOutput, error)
}

ALB interface to allow mocking of real calls to AWS as well as cutting down the methods from the real interface to only the ones we use

type EC2Metadata

type EC2Metadata interface {
	Available() bool
	Region() (string, error)
	GetInstanceIdentityDocument() (ec2metadata.EC2InstanceIdentityDocument, error)
}

EC2Metadata interface to allow mocking of the real calls to AWS

Jump to

Keyboard shortcuts

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