fake

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockInterface

type MockInterface struct {
	mock.Mock
}

MockInterface is an autogenerated mock type for the Interface type

func NewMockInterface

func NewMockInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockInterface

NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockInterface) ConfigurePublicIPOnInstance

func (_m *MockInterface) ConfigurePublicIPOnInstance(instance *compute.Instance) error

ConfigurePublicIPOnInstance provides a mock function with given fields: instance

func (*MockInterface) DeleteFirewallRule

func (_m *MockInterface) DeleteFirewallRule(projectID string, name string) error

DeleteFirewallRule provides a mock function with given fields: projectID, name

func (*MockInterface) DeletePublicIPOnInstance

func (_m *MockInterface) DeletePublicIPOnInstance(instance *compute.Instance) error

DeletePublicIPOnInstance provides a mock function with given fields: instance

func (*MockInterface) EXPECT

func (_m *MockInterface) EXPECT() *MockInterface_Expecter

func (*MockInterface) GetFirewallRule

func (_m *MockInterface) GetFirewallRule(projectID string, name string) (*compute.Firewall, error)

GetFirewallRule provides a mock function with given fields: projectID, name

func (*MockInterface) GetInstance

func (_m *MockInterface) GetInstance(zone string, instance string) (*compute.Instance, error)

GetInstance provides a mock function with given fields: zone, instance

func (*MockInterface) InsertFirewallRule

func (_m *MockInterface) InsertFirewallRule(projectID string, rule *compute.Firewall) error

InsertFirewallRule provides a mock function with given fields: projectID, rule

func (*MockInterface) InstanceHasPublicIP

func (_m *MockInterface) InstanceHasPublicIP(instance *compute.Instance) (bool, error)

InstanceHasPublicIP provides a mock function with given fields: instance

func (*MockInterface) ListInstances

func (_m *MockInterface) ListInstances(zone string) (*compute.InstanceList, error)

ListInstances provides a mock function with given fields: zone

func (*MockInterface) ListZones

func (_m *MockInterface) ListZones() (*compute.ZoneList, error)

ListZones provides a mock function with given fields:

func (*MockInterface) UpdateFirewallRule

func (_m *MockInterface) UpdateFirewallRule(projectID string, name string, rule *compute.Firewall) error

UpdateFirewallRule provides a mock function with given fields: projectID, name, rule

func (*MockInterface) UpdateInstanceNetworkTags

func (_m *MockInterface) UpdateInstanceNetworkTags(project string, zone string, instance string, tags *compute.Tags) error

UpdateInstanceNetworkTags provides a mock function with given fields: project, zone, instance, tags

type MockInterface_ConfigurePublicIPOnInstance_Call added in v0.19.0

type MockInterface_ConfigurePublicIPOnInstance_Call struct {
	*mock.Call
}

MockInterface_ConfigurePublicIPOnInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConfigurePublicIPOnInstance'

func (*MockInterface_ConfigurePublicIPOnInstance_Call) Return added in v0.19.0

func (*MockInterface_ConfigurePublicIPOnInstance_Call) Run added in v0.19.0

func (*MockInterface_ConfigurePublicIPOnInstance_Call) RunAndReturn added in v0.19.0

type MockInterface_DeleteFirewallRule_Call added in v0.19.0

type MockInterface_DeleteFirewallRule_Call struct {
	*mock.Call
}

MockInterface_DeleteFirewallRule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteFirewallRule'

func (*MockInterface_DeleteFirewallRule_Call) Return added in v0.19.0

func (*MockInterface_DeleteFirewallRule_Call) Run added in v0.19.0

func (*MockInterface_DeleteFirewallRule_Call) RunAndReturn added in v0.19.0

type MockInterface_DeletePublicIPOnInstance_Call added in v0.19.0

type MockInterface_DeletePublicIPOnInstance_Call struct {
	*mock.Call
}

MockInterface_DeletePublicIPOnInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeletePublicIPOnInstance'

func (*MockInterface_DeletePublicIPOnInstance_Call) Return added in v0.19.0

func (*MockInterface_DeletePublicIPOnInstance_Call) Run added in v0.19.0

func (*MockInterface_DeletePublicIPOnInstance_Call) RunAndReturn added in v0.19.0

type MockInterface_Expecter added in v0.19.0

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

func (*MockInterface_Expecter) ConfigurePublicIPOnInstance added in v0.19.0

func (_e *MockInterface_Expecter) ConfigurePublicIPOnInstance(instance interface{}) *MockInterface_ConfigurePublicIPOnInstance_Call

ConfigurePublicIPOnInstance is a helper method to define mock.On call

  • instance *compute.Instance

func (*MockInterface_Expecter) DeleteFirewallRule added in v0.19.0

func (_e *MockInterface_Expecter) DeleteFirewallRule(projectID interface{}, name interface{}) *MockInterface_DeleteFirewallRule_Call

DeleteFirewallRule is a helper method to define mock.On call

  • projectID string
  • name string

func (*MockInterface_Expecter) DeletePublicIPOnInstance added in v0.19.0

func (_e *MockInterface_Expecter) DeletePublicIPOnInstance(instance interface{}) *MockInterface_DeletePublicIPOnInstance_Call

DeletePublicIPOnInstance is a helper method to define mock.On call

  • instance *compute.Instance

func (*MockInterface_Expecter) GetFirewallRule added in v0.19.0

func (_e *MockInterface_Expecter) GetFirewallRule(projectID interface{}, name interface{}) *MockInterface_GetFirewallRule_Call

GetFirewallRule is a helper method to define mock.On call

  • projectID string
  • name string

func (*MockInterface_Expecter) GetInstance added in v0.19.0

func (_e *MockInterface_Expecter) GetInstance(zone interface{}, instance interface{}) *MockInterface_GetInstance_Call

GetInstance is a helper method to define mock.On call

  • zone string
  • instance string

func (*MockInterface_Expecter) InsertFirewallRule added in v0.19.0

func (_e *MockInterface_Expecter) InsertFirewallRule(projectID interface{}, rule interface{}) *MockInterface_InsertFirewallRule_Call

InsertFirewallRule is a helper method to define mock.On call

  • projectID string
  • rule *compute.Firewall

func (*MockInterface_Expecter) InstanceHasPublicIP added in v0.19.0

func (_e *MockInterface_Expecter) InstanceHasPublicIP(instance interface{}) *MockInterface_InstanceHasPublicIP_Call

InstanceHasPublicIP is a helper method to define mock.On call

  • instance *compute.Instance

func (*MockInterface_Expecter) ListInstances added in v0.19.0

func (_e *MockInterface_Expecter) ListInstances(zone interface{}) *MockInterface_ListInstances_Call

ListInstances is a helper method to define mock.On call

  • zone string

func (*MockInterface_Expecter) ListZones added in v0.19.0

ListZones is a helper method to define mock.On call

func (*MockInterface_Expecter) UpdateFirewallRule added in v0.19.0

func (_e *MockInterface_Expecter) UpdateFirewallRule(projectID interface{}, name interface{}, rule interface{}) *MockInterface_UpdateFirewallRule_Call

UpdateFirewallRule is a helper method to define mock.On call

  • projectID string
  • name string
  • rule *compute.Firewall

func (*MockInterface_Expecter) UpdateInstanceNetworkTags added in v0.19.0

func (_e *MockInterface_Expecter) UpdateInstanceNetworkTags(project interface{}, zone interface{}, instance interface{}, tags interface{}) *MockInterface_UpdateInstanceNetworkTags_Call

UpdateInstanceNetworkTags is a helper method to define mock.On call

  • project string
  • zone string
  • instance string
  • tags *compute.Tags

type MockInterface_GetFirewallRule_Call added in v0.19.0

type MockInterface_GetFirewallRule_Call struct {
	*mock.Call
}

MockInterface_GetFirewallRule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFirewallRule'

func (*MockInterface_GetFirewallRule_Call) Return added in v0.19.0

func (*MockInterface_GetFirewallRule_Call) Run added in v0.19.0

func (*MockInterface_GetFirewallRule_Call) RunAndReturn added in v0.19.0

type MockInterface_GetInstance_Call added in v0.19.0

type MockInterface_GetInstance_Call struct {
	*mock.Call
}

MockInterface_GetInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInstance'

func (*MockInterface_GetInstance_Call) Return added in v0.19.0

func (*MockInterface_GetInstance_Call) Run added in v0.19.0

func (*MockInterface_GetInstance_Call) RunAndReturn added in v0.19.0

type MockInterface_InsertFirewallRule_Call added in v0.19.0

type MockInterface_InsertFirewallRule_Call struct {
	*mock.Call
}

MockInterface_InsertFirewallRule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertFirewallRule'

func (*MockInterface_InsertFirewallRule_Call) Return added in v0.19.0

func (*MockInterface_InsertFirewallRule_Call) Run added in v0.19.0

func (*MockInterface_InsertFirewallRule_Call) RunAndReturn added in v0.19.0

type MockInterface_InstanceHasPublicIP_Call added in v0.19.0

type MockInterface_InstanceHasPublicIP_Call struct {
	*mock.Call
}

MockInterface_InstanceHasPublicIP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InstanceHasPublicIP'

func (*MockInterface_InstanceHasPublicIP_Call) Return added in v0.19.0

func (*MockInterface_InstanceHasPublicIP_Call) Run added in v0.19.0

func (*MockInterface_InstanceHasPublicIP_Call) RunAndReturn added in v0.19.0

type MockInterface_ListInstances_Call added in v0.19.0

type MockInterface_ListInstances_Call struct {
	*mock.Call
}

MockInterface_ListInstances_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListInstances'

func (*MockInterface_ListInstances_Call) Return added in v0.19.0

func (*MockInterface_ListInstances_Call) Run added in v0.19.0

func (*MockInterface_ListInstances_Call) RunAndReturn added in v0.19.0

type MockInterface_ListZones_Call added in v0.19.0

type MockInterface_ListZones_Call struct {
	*mock.Call
}

MockInterface_ListZones_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListZones'

func (*MockInterface_ListZones_Call) Return added in v0.19.0

func (*MockInterface_ListZones_Call) Run added in v0.19.0

func (*MockInterface_ListZones_Call) RunAndReturn added in v0.19.0

type MockInterface_UpdateFirewallRule_Call added in v0.19.0

type MockInterface_UpdateFirewallRule_Call struct {
	*mock.Call
}

MockInterface_UpdateFirewallRule_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateFirewallRule'

func (*MockInterface_UpdateFirewallRule_Call) Return added in v0.19.0

func (*MockInterface_UpdateFirewallRule_Call) Run added in v0.19.0

func (*MockInterface_UpdateFirewallRule_Call) RunAndReturn added in v0.19.0

type MockInterface_UpdateInstanceNetworkTags_Call added in v0.19.0

type MockInterface_UpdateInstanceNetworkTags_Call struct {
	*mock.Call
}

MockInterface_UpdateInstanceNetworkTags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateInstanceNetworkTags'

func (*MockInterface_UpdateInstanceNetworkTags_Call) Return added in v0.19.0

func (*MockInterface_UpdateInstanceNetworkTags_Call) Run added in v0.19.0

func (*MockInterface_UpdateInstanceNetworkTags_Call) RunAndReturn added in v0.19.0

Jump to

Keyboard shortcuts

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