elbtest

package
v0.0.0-...-524d980 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2015 License: LGPL-3.0 Imports: 10 Imported by: 0

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

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 NewServer

func NewServer() (*Server, error)

Starts and returns a new server

func (*Server) ChangeInstanceState

func (srv *Server) ChangeInstanceState(lb string, state elb.InstanceState)

func (*Server) DeregisterInstance

func (srv *Server) DeregisterInstance(instId, lbName string)

func (*Server) NewInstance

func (srv *Server) NewInstance() string

Creates a fake instance in the server

func (*Server) NewLoadBalancer

func (srv *Server) NewLoadBalancer(name string)

Creates a fake load balancer in the fake server

func (*Server) Quit

func (srv *Server) Quit()

Quit closes down the server.

func (*Server) RegisterInstance

func (srv *Server) RegisterInstance(instId, lbName string)

Register a fake instance with a fake Load Balancer

If the Load Balancer does not exists it does nothing

func (*Server) RemoveInstance

func (srv *Server) RemoveInstance(instId string)

Removes a fake instance from the server

If no instance is found it does nothing

func (*Server) RemoveLoadBalancer

func (srv *Server) RemoveLoadBalancer(name string)

Removes a fake load balancer from the fake server

func (*Server) URL

func (srv *Server) URL() string

URL returns the URL of the server.

Jump to

Keyboard shortcuts

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