elb

package
v0.0.0-...-c83230f Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	DescribeLoadBalancers(names []string) (*elb.DescribeLoadBalancersOutput, error)
	RegisterInstancesWithLoadBalancer(name string, instances []*elb.Instance) ([]*elb.Instance, error)
	DeregisterInstancesFromLoadBalancer(lb string, instances []*elb.Instance) ([]*elb.Instance, error)
}

func NewClient

func NewClient(ses *session.Session, conf *Config) Client

type Config

type Config struct {
	IsMock bool
	Region string
}

type DefaultClient

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

func (DefaultClient) DeregisterInstancesFromLoadBalancer

func (c DefaultClient) DeregisterInstancesFromLoadBalancer(lb string, instances []*elb.Instance) ([]*elb.Instance, error)

func (DefaultClient) DescribeLoadBalancers

func (c DefaultClient) DescribeLoadBalancers(names []string) (*elb.DescribeLoadBalancersOutput, error)

func (DefaultClient) RegisterInstancesWithLoadBalancer

func (c DefaultClient) RegisterInstancesWithLoadBalancer(name string, instances []*elb.Instance) ([]*elb.Instance, error)

type MockClient

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

Mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

func (*MockClient) DeregisterInstancesFromLoadBalancer

func (_m *MockClient) DeregisterInstancesFromLoadBalancer(lb string, instances []*elb.Instance) ([]*elb.Instance, error)

func (*MockClient) DescribeLoadBalancers

func (_m *MockClient) DescribeLoadBalancers(names []string) (*elb.DescribeLoadBalancersOutput, error)

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *_MockClientRecorder

func (*MockClient) RegisterInstancesWithLoadBalancer

func (_m *MockClient) RegisterInstancesWithLoadBalancer(name string, instances []*elb.Instance) ([]*elb.Instance, error)

Jump to

Keyboard shortcuts

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