Documentation ¶
Overview ¶
Package elbtest implements a fake ELB provider with the capability of inducing errors on any given operation, and retrospectively determining what operations have been carried out.
Index ¶
- type Server
- func (srv *Server) ChangeInstanceState(lb string, state elb.InstanceState)
- func (srv *Server) DeregisterInstance(instId, lbName string)
- func (srv *Server) NewInstance() string
- func (srv *Server) NewLoadBalancer(name string)
- func (srv *Server) Quit()
- func (srv *Server) RegisterInstance(instId, lbName string)
- func (srv *Server) RemoveInstance(instId string)
- func (srv *Server) RemoveLoadBalancer(name string)
- func (srv *Server) URL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements an ELB simulator for use in testing.
func (*Server) ChangeInstanceState ¶
func (srv *Server) ChangeInstanceState(lb string, state elb.InstanceState)
func (*Server) DeregisterInstance ¶
func (*Server) NewInstance ¶
Creates a fake instance in the server
func (*Server) NewLoadBalancer ¶
Creates a fake load balancer in the fake server
func (*Server) RegisterInstance ¶
Register a fake instance with a fake Load Balancer
If the Load Balancer does not exists it does nothing
func (*Server) RemoveInstance ¶
Removes a fake instance from the server
If no instance is found it does nothing
func (*Server) RemoveLoadBalancer ¶
Removes a fake load balancer from the fake server
Click to show internal directories.
Click to hide internal directories.