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 ¶
NewInstance creates a Instance object.
func NewInstanceFromTarget ¶
func NewInstanceFromTarget(target *elbv2.TargetDescription) *Instance
NewInstanceFromTarget creates a Instance object from elbv2.TargetDescription.
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.
Click to show internal directories.
Click to hide internal directories.