cliaasfakes

package
v0.1.6-rc.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 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

type FakeAWSClient struct {
	CreateVMStub func(ami, instanceType, name, keyName, subnetID, securityGroupID string) (string, error)

	DeleteVMStub func(instanceID string) error

	GetVMInfoStub func(name string) (cliaas.VMInfo, error)

	StartVMStub func(instanceID string) error

	StopVMStub func(instanceID string) error

	AssignPublicIPStub func(instance, ip string) error

	WaitForStatusStub func(instanceID string, status string) error
	// contains filtered or unexported fields
}

func (*FakeAWSClient) AssignPublicIP

func (fake *FakeAWSClient) AssignPublicIP(instance string, ip string) error

func (*FakeAWSClient) AssignPublicIPArgsForCall

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

func (*FakeAWSClient) AssignPublicIPCallCount

func (fake *FakeAWSClient) AssignPublicIPCallCount() int

func (*FakeAWSClient) AssignPublicIPReturns

func (fake *FakeAWSClient) AssignPublicIPReturns(result1 error)

func (*FakeAWSClient) CreateVM

func (fake *FakeAWSClient) CreateVM(ami string, instanceType string, name string, keyName string, subnetID string, securityGroupID string) (string, error)

func (*FakeAWSClient) CreateVMArgsForCall

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

func (*FakeAWSClient) CreateVMCallCount

func (fake *FakeAWSClient) CreateVMCallCount() int

func (*FakeAWSClient) CreateVMReturns

func (fake *FakeAWSClient) CreateVMReturns(result1 string, result2 error)

func (*FakeAWSClient) DeleteVM

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

func (*FakeAWSClient) DeleteVMArgsForCall

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

func (*FakeAWSClient) DeleteVMCallCount

func (fake *FakeAWSClient) DeleteVMCallCount() int

func (*FakeAWSClient) DeleteVMReturns

func (fake *FakeAWSClient) DeleteVMReturns(result1 error)

func (*FakeAWSClient) GetVMInfo

func (fake *FakeAWSClient) GetVMInfo(name string) (cliaas.VMInfo, error)

func (*FakeAWSClient) GetVMInfoArgsForCall

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

func (*FakeAWSClient) GetVMInfoCallCount

func (fake *FakeAWSClient) GetVMInfoCallCount() int

func (*FakeAWSClient) GetVMInfoReturns

func (fake *FakeAWSClient) GetVMInfoReturns(result1 cliaas.VMInfo, result2 error)

func (*FakeAWSClient) Invocations

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

func (*FakeAWSClient) StartVM added in v0.1.2

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

func (*FakeAWSClient) StartVMArgsForCall added in v0.1.2

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

func (*FakeAWSClient) StartVMCallCount added in v0.1.2

func (fake *FakeAWSClient) StartVMCallCount() int

func (*FakeAWSClient) StartVMReturns added in v0.1.2

func (fake *FakeAWSClient) StartVMReturns(result1 error)

func (*FakeAWSClient) StopVM

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

func (*FakeAWSClient) StopVMArgsForCall

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

func (*FakeAWSClient) StopVMCallCount

func (fake *FakeAWSClient) StopVMCallCount() int

func (*FakeAWSClient) StopVMReturns

func (fake *FakeAWSClient) StopVMReturns(result1 error)

func (*FakeAWSClient) WaitForStatus

func (fake *FakeAWSClient) WaitForStatus(instanceID string, status string) error

func (*FakeAWSClient) WaitForStatusArgsForCall

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

func (*FakeAWSClient) WaitForStatusCallCount

func (fake *FakeAWSClient) WaitForStatusCallCount() int

func (*FakeAWSClient) WaitForStatusReturns

func (fake *FakeAWSClient) WaitForStatusReturns(result1 error)

type FakeEC2Client

type FakeEC2Client struct {
	DescribeInstancesStub func(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)

	DescribeInstanceStatusStub func(*ec2.DescribeInstanceStatusInput) (*ec2.DescribeInstanceStatusOutput, error)

	AssociateAddressStub func(*ec2.AssociateAddressInput) (*ec2.AssociateAddressOutput, error)

	TerminateInstancesStub func(*ec2.TerminateInstancesInput) (*ec2.TerminateInstancesOutput, error)

	StopInstancesStub func(*ec2.StopInstancesInput) (*ec2.StopInstancesOutput, error)

	StartInstancesStub func(*ec2.StartInstancesInput) (*ec2.StartInstancesOutput, error)

	CreateTagsStub func(*ec2.CreateTagsInput) (*ec2.CreateTagsOutput, error)

	RunInstancesStub func(*ec2.RunInstancesInput) (*ec2.Reservation, error)
	// contains filtered or unexported fields
}

func (*FakeEC2Client) AssociateAddress

func (fake *FakeEC2Client) AssociateAddress(arg1 *ec2.AssociateAddressInput) (*ec2.AssociateAddressOutput, error)

func (*FakeEC2Client) AssociateAddressArgsForCall

func (fake *FakeEC2Client) AssociateAddressArgsForCall(i int) *ec2.AssociateAddressInput

func (*FakeEC2Client) AssociateAddressCallCount

func (fake *FakeEC2Client) AssociateAddressCallCount() int

func (*FakeEC2Client) AssociateAddressReturns

func (fake *FakeEC2Client) AssociateAddressReturns(result1 *ec2.AssociateAddressOutput, result2 error)

func (*FakeEC2Client) CreateTags

func (fake *FakeEC2Client) CreateTags(arg1 *ec2.CreateTagsInput) (*ec2.CreateTagsOutput, error)

func (*FakeEC2Client) CreateTagsArgsForCall

func (fake *FakeEC2Client) CreateTagsArgsForCall(i int) *ec2.CreateTagsInput

func (*FakeEC2Client) CreateTagsCallCount

func (fake *FakeEC2Client) CreateTagsCallCount() int

func (*FakeEC2Client) CreateTagsReturns

func (fake *FakeEC2Client) CreateTagsReturns(result1 *ec2.CreateTagsOutput, result2 error)

func (*FakeEC2Client) DescribeInstanceStatus

func (fake *FakeEC2Client) DescribeInstanceStatus(arg1 *ec2.DescribeInstanceStatusInput) (*ec2.DescribeInstanceStatusOutput, error)

func (*FakeEC2Client) DescribeInstanceStatusArgsForCall

func (fake *FakeEC2Client) DescribeInstanceStatusArgsForCall(i int) *ec2.DescribeInstanceStatusInput

func (*FakeEC2Client) DescribeInstanceStatusCallCount

func (fake *FakeEC2Client) DescribeInstanceStatusCallCount() int

func (*FakeEC2Client) DescribeInstanceStatusReturns

func (fake *FakeEC2Client) DescribeInstanceStatusReturns(result1 *ec2.DescribeInstanceStatusOutput, result2 error)

func (*FakeEC2Client) DescribeInstances

func (fake *FakeEC2Client) DescribeInstances(arg1 *ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)

func (*FakeEC2Client) DescribeInstancesArgsForCall

func (fake *FakeEC2Client) DescribeInstancesArgsForCall(i int) *ec2.DescribeInstancesInput

func (*FakeEC2Client) DescribeInstancesCallCount

func (fake *FakeEC2Client) DescribeInstancesCallCount() int

func (*FakeEC2Client) DescribeInstancesReturns

func (fake *FakeEC2Client) DescribeInstancesReturns(result1 *ec2.DescribeInstancesOutput, result2 error)

func (*FakeEC2Client) Invocations

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

func (*FakeEC2Client) RunInstances

func (fake *FakeEC2Client) RunInstances(arg1 *ec2.RunInstancesInput) (*ec2.Reservation, error)

func (*FakeEC2Client) RunInstancesArgsForCall

func (fake *FakeEC2Client) RunInstancesArgsForCall(i int) *ec2.RunInstancesInput

func (*FakeEC2Client) RunInstancesCallCount

func (fake *FakeEC2Client) RunInstancesCallCount() int

func (*FakeEC2Client) RunInstancesReturns

func (fake *FakeEC2Client) RunInstancesReturns(result1 *ec2.Reservation, result2 error)

func (*FakeEC2Client) StartInstances added in v0.1.2

func (fake *FakeEC2Client) StartInstances(arg1 *ec2.StartInstancesInput) (*ec2.StartInstancesOutput, error)

func (*FakeEC2Client) StartInstancesArgsForCall added in v0.1.2

func (fake *FakeEC2Client) StartInstancesArgsForCall(i int) *ec2.StartInstancesInput

func (*FakeEC2Client) StartInstancesCallCount added in v0.1.2

func (fake *FakeEC2Client) StartInstancesCallCount() int

func (*FakeEC2Client) StartInstancesReturns added in v0.1.2

func (fake *FakeEC2Client) StartInstancesReturns(result1 *ec2.StartInstancesOutput, result2 error)

func (*FakeEC2Client) StopInstances

func (fake *FakeEC2Client) StopInstances(arg1 *ec2.StopInstancesInput) (*ec2.StopInstancesOutput, error)

func (*FakeEC2Client) StopInstancesArgsForCall

func (fake *FakeEC2Client) StopInstancesArgsForCall(i int) *ec2.StopInstancesInput

func (*FakeEC2Client) StopInstancesCallCount

func (fake *FakeEC2Client) StopInstancesCallCount() int

func (*FakeEC2Client) StopInstancesReturns

func (fake *FakeEC2Client) StopInstancesReturns(result1 *ec2.StopInstancesOutput, result2 error)

func (*FakeEC2Client) TerminateInstances

func (fake *FakeEC2Client) TerminateInstances(arg1 *ec2.TerminateInstancesInput) (*ec2.TerminateInstancesOutput, error)

func (*FakeEC2Client) TerminateInstancesArgsForCall

func (fake *FakeEC2Client) TerminateInstancesArgsForCall(i int) *ec2.TerminateInstancesInput

func (*FakeEC2Client) TerminateInstancesCallCount

func (fake *FakeEC2Client) TerminateInstancesCallCount() int

func (*FakeEC2Client) TerminateInstancesReturns

func (fake *FakeEC2Client) TerminateInstancesReturns(result1 *ec2.TerminateInstancesOutput, result2 error)

Jump to

Keyboard shortcuts

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