awsfakes

package
v0.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeAWSClient added in v0.2.4

type FakeAWSClient struct {
	ListStub func(instanceNameRegex, vpcName string) ([]*ec2.Instance, error)

	StopStub func(instanceID string) error

	DeleteStub func(instanceID string) error

	CreateStub func(ami, vmType, name, keyPairName, subnetID, securityGroupID string) (*ec2.Instance, error)

	AssociateElasticIPStub func(instanceID, elasticIP string) error
	// contains filtered or unexported fields
}

func (*FakeAWSClient) AssociateElasticIP

func (fake *FakeAWSClient) AssociateElasticIP(instanceID string, elasticIP string) error

func (*FakeAWSClient) AssociateElasticIPArgsForCall

func (fake *FakeAWSClient) AssociateElasticIPArgsForCall(i int) (string, string)

func (*FakeAWSClient) AssociateElasticIPCallCount

func (fake *FakeAWSClient) AssociateElasticIPCallCount() int

func (*FakeAWSClient) AssociateElasticIPReturns

func (fake *FakeAWSClient) AssociateElasticIPReturns(result1 error)

func (*FakeAWSClient) Create

func (fake *FakeAWSClient) Create(ami string, vmType string, name string, keyPairName string, subnetID string, securityGroupID string) (*ec2.Instance, error)

func (*FakeAWSClient) CreateArgsForCall

func (fake *FakeAWSClient) CreateArgsForCall(i int) (string, string, string, string, string, string)

func (*FakeAWSClient) CreateCallCount

func (fake *FakeAWSClient) CreateCallCount() int

func (*FakeAWSClient) CreateReturns

func (fake *FakeAWSClient) CreateReturns(result1 *ec2.Instance, result2 error)

func (*FakeAWSClient) Delete

func (fake *FakeAWSClient) Delete(instanceID string) error

func (*FakeAWSClient) DeleteArgsForCall

func (fake *FakeAWSClient) DeleteArgsForCall(i int) string

func (*FakeAWSClient) DeleteCallCount

func (fake *FakeAWSClient) DeleteCallCount() int

func (*FakeAWSClient) DeleteReturns

func (fake *FakeAWSClient) DeleteReturns(result1 error)

func (*FakeAWSClient) Invocations added in v0.2.4

func (fake *FakeAWSClient) Invocations() map[string][][]interface{}

func (*FakeAWSClient) List

func (fake *FakeAWSClient) List(instanceNameRegex string, vpcName string) ([]*ec2.Instance, error)

func (*FakeAWSClient) ListArgsForCall

func (fake *FakeAWSClient) ListArgsForCall(i int) (string, string)

func (*FakeAWSClient) ListCallCount

func (fake *FakeAWSClient) ListCallCount() int

func (*FakeAWSClient) ListReturns

func (fake *FakeAWSClient) ListReturns(result1 []*ec2.Instance, result2 error)

func (*FakeAWSClient) Stop

func (fake *FakeAWSClient) Stop(instanceID string) error

func (*FakeAWSClient) StopArgsForCall

func (fake *FakeAWSClient) StopArgsForCall(i int) string

func (*FakeAWSClient) StopCallCount

func (fake *FakeAWSClient) StopCallCount() int

func (*FakeAWSClient) StopReturns

func (fake *FakeAWSClient) StopReturns(result1 error)

type FakeClient

type FakeClient struct {
	CreateVMStub func(ami, instanceType, name, keyName, subnetID, securityGroupID string) (*ec2.Instance, error)

	DeleteVMStub func(instanceID string) error

	GetVMInfoStub func(name string) (*ec2.Instance, error)

	StopVMStub func(instance ec2.Instance) error

	AssignPublicIPStub func(instance ec2.Instance, ip string) error

	WaitForStartedVMStub func(instanceName string) error
	// contains filtered or unexported fields
}

func (*FakeClient) AssignPublicIP

func (fake *FakeClient) AssignPublicIP(instance ec2.Instance, ip string) error

func (*FakeClient) AssignPublicIPArgsForCall

func (fake *FakeClient) AssignPublicIPArgsForCall(i int) (ec2.Instance, string)

func (*FakeClient) AssignPublicIPCallCount

func (fake *FakeClient) AssignPublicIPCallCount() int

func (*FakeClient) AssignPublicIPReturns

func (fake *FakeClient) AssignPublicIPReturns(result1 error)

func (*FakeClient) CreateVM

func (fake *FakeClient) CreateVM(ami string, instanceType string, name string, keyName string, subnetID string, securityGroupID string) (*ec2.Instance, error)

func (*FakeClient) CreateVMArgsForCall

func (fake *FakeClient) CreateVMArgsForCall(i int) (string, string, string, string, string, string)

func (*FakeClient) CreateVMCallCount

func (fake *FakeClient) CreateVMCallCount() int

func (*FakeClient) CreateVMReturns

func (fake *FakeClient) CreateVMReturns(result1 *ec2.Instance, result2 error)

func (*FakeClient) DeleteVM

func (fake *FakeClient) DeleteVM(instanceID string) error

func (*FakeClient) DeleteVMArgsForCall

func (fake *FakeClient) DeleteVMArgsForCall(i int) string

func (*FakeClient) DeleteVMCallCount

func (fake *FakeClient) DeleteVMCallCount() int

func (*FakeClient) DeleteVMReturns

func (fake *FakeClient) DeleteVMReturns(result1 error)

func (*FakeClient) GetVMInfo

func (fake *FakeClient) GetVMInfo(name string) (*ec2.Instance, error)

func (*FakeClient) GetVMInfoArgsForCall

func (fake *FakeClient) GetVMInfoArgsForCall(i int) string

func (*FakeClient) GetVMInfoCallCount

func (fake *FakeClient) GetVMInfoCallCount() int

func (*FakeClient) GetVMInfoReturns

func (fake *FakeClient) GetVMInfoReturns(result1 *ec2.Instance, result2 error)

func (*FakeClient) Invocations

func (fake *FakeClient) Invocations() map[string][][]interface{}

func (*FakeClient) StopVM

func (fake *FakeClient) StopVM(instance ec2.Instance) error

func (*FakeClient) StopVMArgsForCall

func (fake *FakeClient) StopVMArgsForCall(i int) ec2.Instance

func (*FakeClient) StopVMCallCount

func (fake *FakeClient) StopVMCallCount() int

func (*FakeClient) StopVMReturns

func (fake *FakeClient) StopVMReturns(result1 error)

func (*FakeClient) WaitForStartedVM

func (fake *FakeClient) WaitForStartedVM(instanceName string) error

func (*FakeClient) WaitForStartedVMArgsForCall

func (fake *FakeClient) WaitForStartedVMArgsForCall(i int) string

func (*FakeClient) WaitForStartedVMCallCount

func (fake *FakeClient) WaitForStartedVMCallCount() int

func (*FakeClient) WaitForStartedVMReturns

func (fake *FakeClient) WaitForStartedVMReturns(result1 error)

Jump to

Keyboard shortcuts

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