elbv2

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 9 Imported by: 8

Documentation

Overview

Package elbv2 is a client for Elastic Load Balancing (v2).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.3.0

type Client interface {
	CreateListener(CreateListenerParameters) (string, error)
	DescribeListeners(string) (Listeners, error)

	DescribeLoadBalancers() (LoadBalancers, error)
	DescribeLoadBalancersByName([]string) (LoadBalancers, error)
	CreateLoadBalancer(CreateLoadBalancerParameters) (string, error)

	CreateTargetGroup(CreateTargetGroupParameters) (string, error)
}

Client represents a method for accessing Elastic Load Balancing (v2).

type CreateListenerParameters added in v0.3.0

type CreateListenerParameters struct {
	CertificateARNs       []string
	DefaultTargetGroupARN string
	LoadBalancerARN       string
	Port                  int64
	Protocol              string
}

CreateListenerParameters are the parameters required to create a new listener.

func (*CreateListenerParameters) SetCertificateARNs added in v0.3.0

func (input *CreateListenerParameters) SetCertificateARNs(arns []string)

SetCertificateARNs sets the certificate ARNs with the given ARNs.

type CreateLoadBalancerParameters added in v0.3.0

type CreateLoadBalancerParameters struct {
	Name             string
	SecurityGroupIDs []string
	SubnetIDs        []string
	Type             string
	Scheme           string
}

CreateLoadBalancerParameters are the parameters required to create a new load balancer.

type CreateTargetGroupParameters added in v0.3.0

type CreateTargetGroupParameters struct {
	Name     string
	Port     int64
	Protocol string
	VPCID    string
}

type Listener

type Listener struct {
	ARN             string
	CertificateARNs []string
	Port            int64
	Protocol        string
	Rules           []Rule
}

Listener accepts incoming traffic on a load balancer based upon the provided routing rules.

func (Listener) String

func (l Listener) String() string

String returns a friendly representation of the listener.

type Listeners added in v0.3.0

type Listeners []Listener

Listeners is a collection of listeners.

func (Listeners) String added in v0.3.0

func (l Listeners) String() string

Listeners returns a comma-separated friendly representation of the listeners.

type LoadBalancer

type LoadBalancer struct {
	ARN              string
	DNSName          string
	HostedZoneID     string
	Listeners        Listeners
	Name             string
	SecurityGroupIDs []string
	Status           string
	SubnetIDs        []string
	Type             string
	VPCID            string
}

LoadBalancer represents an Elastic Load Balancing (v2) load balancer.

type LoadBalancers added in v0.3.0

type LoadBalancers []LoadBalancer

LoadBalancers is a collection of Elastic Load Balancing (v2) load balancers.

type Rule

type Rule struct {
	ARN            string
	IsDefault      bool
	Priority       int
	TargetGroupARN string
	Type           string
	Value          string
}

Rule defines a routing rule defining how traffic should be routed to a listener.

func (Rule) String

func (r Rule) String() string

String returns a friendly representation of a rule.

type SDKClient added in v0.3.0

type SDKClient struct {
	// contains filtered or unexported fields
}

SDKClient implements access to Elastic Load Balancing (v2) via the AWS SDK.

func New

func New(sess *session.Session) SDKClient

New returns an SDKClient configured with the given session.

func (SDKClient) AddRule added in v0.3.0

func (elbv2 SDKClient) AddRule(lbARN, targetGroupARN string, rule Rule)

func (SDKClient) AddRuleToListener added in v0.3.0

func (elbv2 SDKClient) AddRuleToListener(listenerARN, targetGroupARN string, rule Rule)

func (SDKClient) CreateListener added in v0.3.0

func (elbv2 SDKClient) CreateListener(p CreateListenerParameters) (string, error)

CreateListener creates a new listener and returns the listener ARN if successfully created.

func (SDKClient) CreateLoadBalancer added in v0.3.0

func (elbv2 SDKClient) CreateLoadBalancer(p CreateLoadBalancerParameters) (string, error)

CreateLoadBalancer creates a new load balancer. It returns the ARN of the load balancer if it is successfully created.

func (SDKClient) CreateTargetGroup added in v0.3.0

func (elbv2 SDKClient) CreateTargetGroup(i CreateTargetGroupParameters) (string, error)

func (SDKClient) DeleteLoadBalancer added in v0.3.0

func (elbv2 SDKClient) DeleteLoadBalancer(lbName string)

func (SDKClient) DeleteRule added in v0.3.0

func (elbv2 SDKClient) DeleteRule(ruleARN string)

func (SDKClient) DeleteTargetGroup added in v0.3.0

func (elbv2 SDKClient) DeleteTargetGroup(targetGroupName string)

func (SDKClient) DeleteTargetGroupByArn added in v0.3.0

func (elbv2 SDKClient) DeleteTargetGroupByArn(targetGroupARN string)

func (SDKClient) DescribeListeners added in v0.3.0

func (elbv2 SDKClient) DescribeListeners(lbARN string) (Listeners, error)

DescribeListeners returns all of the listeners for a given load balancer ARN.

func (SDKClient) DescribeLoadBalancer added in v0.3.0

func (elbv2 SDKClient) DescribeLoadBalancer(lbName string) LoadBalancer

func (SDKClient) DescribeLoadBalancerByARN added in v0.3.0

func (elbv2 SDKClient) DescribeLoadBalancerByARN(lbARN string) LoadBalancer

func (SDKClient) DescribeLoadBalancers added in v0.3.0

func (elbv2 SDKClient) DescribeLoadBalancers() (LoadBalancers, error)

DescribeLoadBalancers returns all load balancers.

func (SDKClient) DescribeLoadBalancersByARN added in v0.3.0

func (elbv2 SDKClient) DescribeLoadBalancersByARN(lbARNs []string) (LoadBalancers, error)

DescribeLoadBalancersByARN returns load balancers that match the given load balancer ARNs.

func (SDKClient) DescribeLoadBalancersByName added in v0.3.0

func (elbv2 SDKClient) DescribeLoadBalancersByName(lbNames []string) (LoadBalancers, error)

DescribeLoadBalancersByName returns load balancers that match the given load balancer names.

func (SDKClient) DescribeRules added in v0.3.0

func (elbv2 SDKClient) DescribeRules(listenerARN string) []Rule

func (SDKClient) DescribeTargetGroups added in v0.3.0

func (elbv2 SDKClient) DescribeTargetGroups(targetGroupARNs []string) []TargetGroup

func (SDKClient) GetHighestPriorityFromListener added in v0.3.0

func (elbv2 SDKClient) GetHighestPriorityFromListener(listenerARN string) int64

func (SDKClient) GetListeners added in v0.3.0

func (elbv2 SDKClient) GetListeners(lbARN string) []Listener

func (SDKClient) GetTargetGroupArn added in v0.3.0

func (elbv2 SDKClient) GetTargetGroupArn(targetGroupName string) string

func (SDKClient) GetTargetGroupLoadBalancerArn added in v0.3.0

func (elbv2 SDKClient) GetTargetGroupLoadBalancerArn(targetGroupARN string) string

func (SDKClient) ModifyListenerDefaultAction added in v0.3.0

func (elbv2 SDKClient) ModifyListenerDefaultAction(listenerARN, targetGroupARN string)

func (SDKClient) ModifyLoadBalancerDefaultAction added in v0.3.0

func (elbv2 SDKClient) ModifyLoadBalancerDefaultAction(lbARN, targetGroupARN string)

type TargetGroup

type TargetGroup struct {
	Name            string
	Arn             string
	LoadBalancerARN string
}

Directories

Path Synopsis
mock
client
Package client is a generated GoMock package.
Package client is a generated GoMock package.
sdk
Package sdk is a generated GoMock package.
Package sdk is a generated GoMock package.

Jump to

Keyboard shortcuts

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