model

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	InstanceID string `json:"instance-id"`
}

Instance represents a EC2 instance.

func NewInstance

func NewInstance(instance *goelb.Instance) *Instance

NewInstance creates a Instance object.

func NewInstanceFromTarget

func NewInstanceFromTarget(target *elbv2.TargetDescription) *Instance

NewInstanceFromTarget creates a Instance object from elbv2.TargetDescription.

func (*Instance) String

func (i *Instance) String() string

String returns a string reprentation of Instance.

type LoadBalancer

type LoadBalancer struct {
	Name      string      `json:"name"`
	DNSName   string      `json:"dnsname"`
	Arn       string      `json:"arn"`
	Type      string      `json:"type"`
	Scheme    string      `json:"scheme"`
	Instances []*Instance `json:"instances"`
}

LoadBalancer represents a loadbalancer.

func NewLoadBalancerFromELBv2

func NewLoadBalancerFromELBv2(desc *elbv2.LoadBalancer, targets []*elbv2.TargetDescription) *LoadBalancer

func (*LoadBalancer) String

func (l *LoadBalancer) String() string

String returns a string reprentation of LoadBalancer.

type LoadBalancers

type LoadBalancers []*LoadBalancer

LoadBalancers represents an slice of loadbalancer.

func NewLoadBalancersFromELBv2

func NewLoadBalancersFromELBv2(loadBalancers []*elbv2.LoadBalancer,
	loadBalancerArnToTargets map[string][]*elbv2.TargetDescription) LoadBalancers

NewLoadBalancersFromELBv2 creates the object of LoadBalancers from ELBv2.

func (LoadBalancers) NamePointerSlice

func (lbs LoadBalancers) NamePointerSlice() []*string

NamePointerSlice returns a slice of loadbalancer's name.

func (LoadBalancers) NameSlice

func (lbs LoadBalancers) NameSlice() []string

NameSlice returns a slice of loadbalancer's name.

func (LoadBalancers) String

func (lbs LoadBalancers) String() string

String returns a string reprentation of LoadBalancers.

Jump to

Keyboard shortcuts

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