loadbalancer

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 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 Listener

type Listener struct {
	ARN string
	// contains filtered or unexported fields
}

func GetListener

func GetListener(arn string, elb *elbv2.ELBV2) (l Listener, err error)

func GetListeners

func GetListeners(loadbalancerARN string, elb *elbv2.ELBV2) (l []Listener, err error)

func (Listener) GetLoadbalancer

func (l Listener) GetLoadbalancer() (loadbalancer string, err error)

func (Listener) GetNumRules

func (l Listener) GetNumRules() (numRules int, err error)

type Loadbalancer

type Loadbalancer struct {
	ARN           string   `json:"arn"`
	SecurityGroup string   `json:"security_group"`
	DNSName       string   `json:"dns_name"`
	ListenerARN   string   `json:"listener_arn"`
	Paths         []string `json:"paths"`
}

func GetLoadbalancers

func GetLoadbalancers(svc *elbv2.ELBV2) (loadbalancers []Loadbalancer, err error)

type Rule

type Rule struct {
	ARN string
	// contains filtered or unexported fields
}

func GetRules

func GetRules(listenerARN string, elb *elbv2.ELBV2) (r []Rule, err error)

func NewRule

func NewRule(l Listener, tg TargetGroup, elb *elbv2.ELBV2) (r Rule, err error)

func (*Rule) Create

func (r *Rule) Create() (id string, err error)

func (*Rule) Delete

func (r *Rule) Delete() (err error)

type Target

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

func NewTarget

func NewTarget(tg TargetGroup, s server.Server, elb *elbv2.ELBV2) (t Target, err error)

func (*Target) Create

func (t *Target) Create() (id string, err error)

func (*Target) Delete

func (t *Target) Delete() (err error)

type TargetGroup

type TargetGroup struct {
	Scope   string `json:"-"`
	Name    string `json:"name"`
	UriPath string `json:"path"`
	Port    int    `json:"port"`
	ARN     string `json:"arn"`
	// contains filtered or unexported fields
}

func GetTargetGroup

func GetTargetGroup(scope, name, uriPath string, port int, elb *elbv2.ELBV2) (tg TargetGroup, err error)

func NewTargetGroup

func NewTargetGroup(scope, name, uriPath string, port int, vpc vpc.VPC, elb *elbv2.ELBV2) (tg TargetGroup, err error)

func (*TargetGroup) Create

func (tg *TargetGroup) Create() (id string, err error)

func (*TargetGroup) Delete

func (tg *TargetGroup) Delete() (err error)

func (TargetGroup) WithELB

func (tg TargetGroup) WithELB(e *elbv2.ELBV2) TargetGroup

Jump to

Keyboard shortcuts

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