mocks

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEC2Interface

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

MockEC2Interface is a mock of EC2Interface interface

func NewMockEC2Interface

func NewMockEC2Interface(ctrl *gomock.Controller) *MockEC2Interface

NewMockEC2Interface creates a new mock instance

func (*MockEC2Interface) CreateOrGetMachine

func (m *MockEC2Interface) CreateOrGetMachine(arg0 *actuators.MachineScope, arg1 string) (*v1alpha1.Instance, error)

CreateOrGetMachine mocks base method

func (*MockEC2Interface) DeleteBastion

func (m *MockEC2Interface) DeleteBastion() error

DeleteBastion mocks base method

func (*MockEC2Interface) DeleteNetwork

func (m *MockEC2Interface) DeleteNetwork() error

DeleteNetwork mocks base method

func (*MockEC2Interface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockEC2Interface) GetCoreSecurityGroups added in v0.3.0

func (m *MockEC2Interface) GetCoreSecurityGroups(arg0 *actuators.MachineScope) ([]string, error)

GetCoreSecurityGroups mocks base method

func (*MockEC2Interface) GetInstanceSecurityGroups added in v0.3.0

func (m *MockEC2Interface) GetInstanceSecurityGroups(arg0 string) (map[string][]string, error)

GetInstanceSecurityGroups mocks base method

func (*MockEC2Interface) InstanceIfExists

func (m *MockEC2Interface) InstanceIfExists(arg0 *string) (*v1alpha1.Instance, error)

InstanceIfExists mocks base method

func (*MockEC2Interface) ReconcileBastion

func (m *MockEC2Interface) ReconcileBastion() error

ReconcileBastion mocks base method

func (*MockEC2Interface) ReconcileNetwork

func (m *MockEC2Interface) ReconcileNetwork() error

ReconcileNetwork mocks base method

func (*MockEC2Interface) TerminateInstance

func (m *MockEC2Interface) TerminateInstance(arg0 string) error

TerminateInstance mocks base method

func (*MockEC2Interface) UpdateInstanceSecurityGroups

func (m *MockEC2Interface) UpdateInstanceSecurityGroups(arg0 string, arg1 []string) error

UpdateInstanceSecurityGroups mocks base method

func (*MockEC2Interface) UpdateResourceTags

func (m *MockEC2Interface) UpdateResourceTags(arg0 *string, arg1, arg2 map[string]string) error

UpdateResourceTags mocks base method

type MockEC2InterfaceMockRecorder

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

MockEC2InterfaceMockRecorder is the mock recorder for MockEC2Interface

func (*MockEC2InterfaceMockRecorder) CreateOrGetMachine

func (mr *MockEC2InterfaceMockRecorder) CreateOrGetMachine(arg0, arg1 interface{}) *gomock.Call

CreateOrGetMachine indicates an expected call of CreateOrGetMachine

func (*MockEC2InterfaceMockRecorder) DeleteBastion

func (mr *MockEC2InterfaceMockRecorder) DeleteBastion() *gomock.Call

DeleteBastion indicates an expected call of DeleteBastion

func (*MockEC2InterfaceMockRecorder) DeleteNetwork

func (mr *MockEC2InterfaceMockRecorder) DeleteNetwork() *gomock.Call

DeleteNetwork indicates an expected call of DeleteNetwork

func (*MockEC2InterfaceMockRecorder) GetCoreSecurityGroups added in v0.3.0

func (mr *MockEC2InterfaceMockRecorder) GetCoreSecurityGroups(arg0 interface{}) *gomock.Call

GetCoreSecurityGroups indicates an expected call of GetCoreSecurityGroups

func (*MockEC2InterfaceMockRecorder) GetInstanceSecurityGroups added in v0.3.0

func (mr *MockEC2InterfaceMockRecorder) GetInstanceSecurityGroups(arg0 interface{}) *gomock.Call

GetInstanceSecurityGroups indicates an expected call of GetInstanceSecurityGroups

func (*MockEC2InterfaceMockRecorder) InstanceIfExists

func (mr *MockEC2InterfaceMockRecorder) InstanceIfExists(arg0 interface{}) *gomock.Call

InstanceIfExists indicates an expected call of InstanceIfExists

func (*MockEC2InterfaceMockRecorder) ReconcileBastion

func (mr *MockEC2InterfaceMockRecorder) ReconcileBastion() *gomock.Call

ReconcileBastion indicates an expected call of ReconcileBastion

func (*MockEC2InterfaceMockRecorder) ReconcileNetwork

func (mr *MockEC2InterfaceMockRecorder) ReconcileNetwork() *gomock.Call

ReconcileNetwork indicates an expected call of ReconcileNetwork

func (*MockEC2InterfaceMockRecorder) TerminateInstance

func (mr *MockEC2InterfaceMockRecorder) TerminateInstance(arg0 interface{}) *gomock.Call

TerminateInstance indicates an expected call of TerminateInstance

func (*MockEC2InterfaceMockRecorder) UpdateInstanceSecurityGroups

func (mr *MockEC2InterfaceMockRecorder) UpdateInstanceSecurityGroups(arg0, arg1 interface{}) *gomock.Call

UpdateInstanceSecurityGroups indicates an expected call of UpdateInstanceSecurityGroups

func (*MockEC2InterfaceMockRecorder) UpdateResourceTags

func (mr *MockEC2InterfaceMockRecorder) UpdateResourceTags(arg0, arg1, arg2 interface{}) *gomock.Call

UpdateResourceTags indicates an expected call of UpdateResourceTags

type MockELBInterface

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

MockELBInterface is a mock of ELBInterface interface

func NewMockELBInterface

func NewMockELBInterface(ctrl *gomock.Controller) *MockELBInterface

NewMockELBInterface creates a new mock instance

func (*MockELBInterface) DeleteLoadbalancers

func (m *MockELBInterface) DeleteLoadbalancers() error

DeleteLoadbalancers mocks base method

func (*MockELBInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockELBInterface) GetAPIServerDNSName

func (m *MockELBInterface) GetAPIServerDNSName() (string, error)

GetAPIServerDNSName mocks base method

func (*MockELBInterface) ReconcileLoadbalancers

func (m *MockELBInterface) ReconcileLoadbalancers() error

ReconcileLoadbalancers mocks base method

func (*MockELBInterface) RegisterInstanceWithAPIServerELB

func (m *MockELBInterface) RegisterInstanceWithAPIServerELB(arg0 string) error

RegisterInstanceWithAPIServerELB mocks base method

type MockELBInterfaceMockRecorder

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

MockELBInterfaceMockRecorder is the mock recorder for MockELBInterface

func (*MockELBInterfaceMockRecorder) DeleteLoadbalancers

func (mr *MockELBInterfaceMockRecorder) DeleteLoadbalancers() *gomock.Call

DeleteLoadbalancers indicates an expected call of DeleteLoadbalancers

func (*MockELBInterfaceMockRecorder) GetAPIServerDNSName

func (mr *MockELBInterfaceMockRecorder) GetAPIServerDNSName() *gomock.Call

GetAPIServerDNSName indicates an expected call of GetAPIServerDNSName

func (*MockELBInterfaceMockRecorder) ReconcileLoadbalancers

func (mr *MockELBInterfaceMockRecorder) ReconcileLoadbalancers() *gomock.Call

ReconcileLoadbalancers indicates an expected call of ReconcileLoadbalancers

func (*MockELBInterfaceMockRecorder) RegisterInstanceWithAPIServerELB

func (mr *MockELBInterfaceMockRecorder) RegisterInstanceWithAPIServerELB(arg0 interface{}) *gomock.Call

RegisterInstanceWithAPIServerELB indicates an expected call of RegisterInstanceWithAPIServerELB

type SDKGetter

type SDKGetter struct {
	EC2Mock *MockEC2Interface
	ELBMock *MockELBInterface
}

SDKGetter is a mocked getter.

func NewSDKGetter

func NewSDKGetter(ctrl *gomock.Controller) *SDKGetter

NewSDKGetter returns a new SDKGetter.

func (*SDKGetter) EC2

func (t *SDKGetter) EC2(session *session.Session) services.EC2Interface

EC2 returns a mocked EC2 service client.

func (*SDKGetter) ELB

func (t *SDKGetter) ELB(session *session.Session) services.ELBInterface

ELB returns a mocked EC2 service client.

func (*SDKGetter) Session

func (*SDKGetter) Session(clusterConfig *v1alpha1.AWSClusterProviderSpec) *session.Session

Session returns a nil session.

Jump to

Keyboard shortcuts

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