Documentation ¶
Index ¶
- type MockCloseableClient
- type MockCloseableClient_Close_Call
- type MockCloseableClient_Expecter
- type MockGCPClienter
- func (_m *MockGCPClienter) CheckAuthentication(ctx context.Context) error
- func (_m *MockGCPClienter) CheckFirewallRuleExists(ctx context.Context, projectID string, ruleName string) error
- func (_m *MockGCPClienter) CheckPermissions(ctx context.Context) error
- func (_m *MockGCPClienter) CreateFirewallRules(ctx context.Context, networkName string) error
- func (_m *MockGCPClienter) CreateIP(ctx context.Context, projectID string, location string, addressName string) (string, error)
- func (_m *MockGCPClienter) CreateServiceAccount(ctx context.Context, projectID string) (*iam.ServiceAccount, error)
- func (_m *MockGCPClienter) CreateVM(ctx context.Context, projectID string, machine models.Machiner) (*computepb.Instance, error)
- func (_m *MockGCPClienter) CreateVPCNetwork(ctx context.Context, networkName string) error
- func (_m *MockGCPClienter) DestroyProject(ctx context.Context, projectID string) error
- func (_m *MockGCPClienter) EXPECT() *MockGCPClienter_Expecter
- func (_m *MockGCPClienter) EnableAPI(ctx context.Context, projectID string, apiName string) error
- func (_m *MockGCPClienter) EnsureFirewallRules(ctx context.Context, networkName string) error
- func (_m *MockGCPClienter) EnsureProject(ctx context.Context, organizationID string, projectID string, ...) (string, error)
- func (_m *MockGCPClienter) EnsureVPCNetwork(ctx context.Context, networkName string) error
- func (_m *MockGCPClienter) GetParentString() string
- func (_m *MockGCPClienter) GetVMExternalIP(ctx context.Context, vmName string, locationData map[string]string) (string, error)
- func (_m *MockGCPClienter) GetVMZone(ctx context.Context, projectID string, vmName string) (string, error)
- func (_m *MockGCPClienter) IsAPIEnabled(ctx context.Context, projectID string, apiName string) (bool, error)
- func (_m *MockGCPClienter) ListAllAssetsInProject(ctx context.Context, projectID string) ([]*assetpb.Asset, error)
- func (_m *MockGCPClienter) ListBillingAccounts(ctx context.Context) ([]string, error)
- func (_m *MockGCPClienter) ListProjects(ctx context.Context, req *resourcemanagerpb.ListProjectsRequest) ([]*resourcemanagerpb.Project, error)
- func (_m *MockGCPClienter) ProjectExists(ctx context.Context, projectID string) (bool, error)
- func (_m *MockGCPClienter) SetBillingAccount(ctx context.Context, projectID string, billingAccountID string) error
- func (_m *MockGCPClienter) SetParentString(organizationID string)
- func (_m *MockGCPClienter) StartResourcePolling(ctx context.Context) error
- func (_m *MockGCPClienter) ValidateMachineType(ctx context.Context, machineType string, location string) (bool, error)
- type MockGCPClienter_CheckAuthentication_Call
- func (_c *MockGCPClienter_CheckAuthentication_Call) Return(_a0 error) *MockGCPClienter_CheckAuthentication_Call
- func (_c *MockGCPClienter_CheckAuthentication_Call) Run(run func(ctx context.Context)) *MockGCPClienter_CheckAuthentication_Call
- func (_c *MockGCPClienter_CheckAuthentication_Call) RunAndReturn(run func(context.Context) error) *MockGCPClienter_CheckAuthentication_Call
- type MockGCPClienter_CheckFirewallRuleExists_Call
- func (_c *MockGCPClienter_CheckFirewallRuleExists_Call) Return(_a0 error) *MockGCPClienter_CheckFirewallRuleExists_Call
- func (_c *MockGCPClienter_CheckFirewallRuleExists_Call) Run(run func(ctx context.Context, projectID string, ruleName string)) *MockGCPClienter_CheckFirewallRuleExists_Call
- func (_c *MockGCPClienter_CheckFirewallRuleExists_Call) RunAndReturn(run func(context.Context, string, string) error) *MockGCPClienter_CheckFirewallRuleExists_Call
- type MockGCPClienter_CheckPermissions_Call
- func (_c *MockGCPClienter_CheckPermissions_Call) Return(_a0 error) *MockGCPClienter_CheckPermissions_Call
- func (_c *MockGCPClienter_CheckPermissions_Call) Run(run func(ctx context.Context)) *MockGCPClienter_CheckPermissions_Call
- func (_c *MockGCPClienter_CheckPermissions_Call) RunAndReturn(run func(context.Context) error) *MockGCPClienter_CheckPermissions_Call
- type MockGCPClienter_CreateFirewallRules_Call
- func (_c *MockGCPClienter_CreateFirewallRules_Call) Return(_a0 error) *MockGCPClienter_CreateFirewallRules_Call
- func (_c *MockGCPClienter_CreateFirewallRules_Call) Run(run func(ctx context.Context, networkName string)) *MockGCPClienter_CreateFirewallRules_Call
- func (_c *MockGCPClienter_CreateFirewallRules_Call) RunAndReturn(run func(context.Context, string) error) *MockGCPClienter_CreateFirewallRules_Call
- type MockGCPClienter_CreateIP_Call
- func (_c *MockGCPClienter_CreateIP_Call) Return(_a0 string, _a1 error) *MockGCPClienter_CreateIP_Call
- func (_c *MockGCPClienter_CreateIP_Call) Run(...) *MockGCPClienter_CreateIP_Call
- func (_c *MockGCPClienter_CreateIP_Call) RunAndReturn(run func(context.Context, string, string, string) (string, error)) *MockGCPClienter_CreateIP_Call
- type MockGCPClienter_CreateServiceAccount_Call
- func (_c *MockGCPClienter_CreateServiceAccount_Call) Return(_a0 *iam.ServiceAccount, _a1 error) *MockGCPClienter_CreateServiceAccount_Call
- func (_c *MockGCPClienter_CreateServiceAccount_Call) Run(run func(ctx context.Context, projectID string)) *MockGCPClienter_CreateServiceAccount_Call
- func (_c *MockGCPClienter_CreateServiceAccount_Call) RunAndReturn(run func(context.Context, string) (*iam.ServiceAccount, error)) *MockGCPClienter_CreateServiceAccount_Call
- type MockGCPClienter_CreateVM_Call
- func (_c *MockGCPClienter_CreateVM_Call) Return(_a0 *computepb.Instance, _a1 error) *MockGCPClienter_CreateVM_Call
- func (_c *MockGCPClienter_CreateVM_Call) Run(run func(ctx context.Context, projectID string, machine models.Machiner)) *MockGCPClienter_CreateVM_Call
- func (_c *MockGCPClienter_CreateVM_Call) RunAndReturn(...) *MockGCPClienter_CreateVM_Call
- type MockGCPClienter_CreateVPCNetwork_Call
- func (_c *MockGCPClienter_CreateVPCNetwork_Call) Return(_a0 error) *MockGCPClienter_CreateVPCNetwork_Call
- func (_c *MockGCPClienter_CreateVPCNetwork_Call) Run(run func(ctx context.Context, networkName string)) *MockGCPClienter_CreateVPCNetwork_Call
- func (_c *MockGCPClienter_CreateVPCNetwork_Call) RunAndReturn(run func(context.Context, string) error) *MockGCPClienter_CreateVPCNetwork_Call
- type MockGCPClienter_DestroyProject_Call
- func (_c *MockGCPClienter_DestroyProject_Call) Return(_a0 error) *MockGCPClienter_DestroyProject_Call
- func (_c *MockGCPClienter_DestroyProject_Call) Run(run func(ctx context.Context, projectID string)) *MockGCPClienter_DestroyProject_Call
- func (_c *MockGCPClienter_DestroyProject_Call) RunAndReturn(run func(context.Context, string) error) *MockGCPClienter_DestroyProject_Call
- type MockGCPClienter_EnableAPI_Call
- func (_c *MockGCPClienter_EnableAPI_Call) Return(_a0 error) *MockGCPClienter_EnableAPI_Call
- func (_c *MockGCPClienter_EnableAPI_Call) Run(run func(ctx context.Context, projectID string, apiName string)) *MockGCPClienter_EnableAPI_Call
- func (_c *MockGCPClienter_EnableAPI_Call) RunAndReturn(run func(context.Context, string, string) error) *MockGCPClienter_EnableAPI_Call
- type MockGCPClienter_EnsureFirewallRules_Call
- func (_c *MockGCPClienter_EnsureFirewallRules_Call) Return(_a0 error) *MockGCPClienter_EnsureFirewallRules_Call
- func (_c *MockGCPClienter_EnsureFirewallRules_Call) Run(run func(ctx context.Context, networkName string)) *MockGCPClienter_EnsureFirewallRules_Call
- func (_c *MockGCPClienter_EnsureFirewallRules_Call) RunAndReturn(run func(context.Context, string) error) *MockGCPClienter_EnsureFirewallRules_Call
- type MockGCPClienter_EnsureProject_Call
- func (_c *MockGCPClienter_EnsureProject_Call) Return(_a0 string, _a1 error) *MockGCPClienter_EnsureProject_Call
- func (_c *MockGCPClienter_EnsureProject_Call) Run(run func(ctx context.Context, organizationID string, projectID string, ...)) *MockGCPClienter_EnsureProject_Call
- func (_c *MockGCPClienter_EnsureProject_Call) RunAndReturn(run func(context.Context, string, string, string) (string, error)) *MockGCPClienter_EnsureProject_Call
- type MockGCPClienter_EnsureVPCNetwork_Call
- func (_c *MockGCPClienter_EnsureVPCNetwork_Call) Return(_a0 error) *MockGCPClienter_EnsureVPCNetwork_Call
- func (_c *MockGCPClienter_EnsureVPCNetwork_Call) Run(run func(ctx context.Context, networkName string)) *MockGCPClienter_EnsureVPCNetwork_Call
- func (_c *MockGCPClienter_EnsureVPCNetwork_Call) RunAndReturn(run func(context.Context, string) error) *MockGCPClienter_EnsureVPCNetwork_Call
- type MockGCPClienter_Expecter
- func (_e *MockGCPClienter_Expecter) CheckAuthentication(ctx interface{}) *MockGCPClienter_CheckAuthentication_Call
- func (_e *MockGCPClienter_Expecter) CheckFirewallRuleExists(ctx interface{}, projectID interface{}, ruleName interface{}) *MockGCPClienter_CheckFirewallRuleExists_Call
- func (_e *MockGCPClienter_Expecter) CheckPermissions(ctx interface{}) *MockGCPClienter_CheckPermissions_Call
- func (_e *MockGCPClienter_Expecter) CreateFirewallRules(ctx interface{}, networkName interface{}) *MockGCPClienter_CreateFirewallRules_Call
- func (_e *MockGCPClienter_Expecter) CreateIP(ctx interface{}, projectID interface{}, location interface{}, ...) *MockGCPClienter_CreateIP_Call
- func (_e *MockGCPClienter_Expecter) CreateServiceAccount(ctx interface{}, projectID interface{}) *MockGCPClienter_CreateServiceAccount_Call
- func (_e *MockGCPClienter_Expecter) CreateVM(ctx interface{}, projectID interface{}, machine interface{}) *MockGCPClienter_CreateVM_Call
- func (_e *MockGCPClienter_Expecter) CreateVPCNetwork(ctx interface{}, networkName interface{}) *MockGCPClienter_CreateVPCNetwork_Call
- func (_e *MockGCPClienter_Expecter) DestroyProject(ctx interface{}, projectID interface{}) *MockGCPClienter_DestroyProject_Call
- func (_e *MockGCPClienter_Expecter) EnableAPI(ctx interface{}, projectID interface{}, apiName interface{}) *MockGCPClienter_EnableAPI_Call
- func (_e *MockGCPClienter_Expecter) EnsureFirewallRules(ctx interface{}, networkName interface{}) *MockGCPClienter_EnsureFirewallRules_Call
- func (_e *MockGCPClienter_Expecter) EnsureProject(ctx interface{}, organizationID interface{}, projectID interface{}, ...) *MockGCPClienter_EnsureProject_Call
- func (_e *MockGCPClienter_Expecter) EnsureVPCNetwork(ctx interface{}, networkName interface{}) *MockGCPClienter_EnsureVPCNetwork_Call
- func (_e *MockGCPClienter_Expecter) GetParentString() *MockGCPClienter_GetParentString_Call
- func (_e *MockGCPClienter_Expecter) GetVMExternalIP(ctx interface{}, vmName interface{}, locationData interface{}) *MockGCPClienter_GetVMExternalIP_Call
- func (_e *MockGCPClienter_Expecter) GetVMZone(ctx interface{}, projectID interface{}, vmName interface{}) *MockGCPClienter_GetVMZone_Call
- func (_e *MockGCPClienter_Expecter) IsAPIEnabled(ctx interface{}, projectID interface{}, apiName interface{}) *MockGCPClienter_IsAPIEnabled_Call
- func (_e *MockGCPClienter_Expecter) ListAllAssetsInProject(ctx interface{}, projectID interface{}) *MockGCPClienter_ListAllAssetsInProject_Call
- func (_e *MockGCPClienter_Expecter) ListBillingAccounts(ctx interface{}) *MockGCPClienter_ListBillingAccounts_Call
- func (_e *MockGCPClienter_Expecter) ListProjects(ctx interface{}, req interface{}) *MockGCPClienter_ListProjects_Call
- func (_e *MockGCPClienter_Expecter) ProjectExists(ctx interface{}, projectID interface{}) *MockGCPClienter_ProjectExists_Call
- func (_e *MockGCPClienter_Expecter) SetBillingAccount(ctx interface{}, projectID interface{}, billingAccountID interface{}) *MockGCPClienter_SetBillingAccount_Call
- func (_e *MockGCPClienter_Expecter) SetParentString(organizationID interface{}) *MockGCPClienter_SetParentString_Call
- func (_e *MockGCPClienter_Expecter) StartResourcePolling(ctx interface{}) *MockGCPClienter_StartResourcePolling_Call
- func (_e *MockGCPClienter_Expecter) ValidateMachineType(ctx interface{}, machineType interface{}, location interface{}) *MockGCPClienter_ValidateMachineType_Call
- type MockGCPClienter_GetParentString_Call
- func (_c *MockGCPClienter_GetParentString_Call) Return(_a0 string) *MockGCPClienter_GetParentString_Call
- func (_c *MockGCPClienter_GetParentString_Call) Run(run func()) *MockGCPClienter_GetParentString_Call
- func (_c *MockGCPClienter_GetParentString_Call) RunAndReturn(run func() string) *MockGCPClienter_GetParentString_Call
- type MockGCPClienter_GetVMExternalIP_Call
- func (_c *MockGCPClienter_GetVMExternalIP_Call) Return(_a0 string, _a1 error) *MockGCPClienter_GetVMExternalIP_Call
- func (_c *MockGCPClienter_GetVMExternalIP_Call) Run(run func(ctx context.Context, vmName string, locationData map[string]string)) *MockGCPClienter_GetVMExternalIP_Call
- func (_c *MockGCPClienter_GetVMExternalIP_Call) RunAndReturn(run func(context.Context, string, map[string]string) (string, error)) *MockGCPClienter_GetVMExternalIP_Call
- type MockGCPClienter_GetVMZone_Call
- func (_c *MockGCPClienter_GetVMZone_Call) Return(_a0 string, _a1 error) *MockGCPClienter_GetVMZone_Call
- func (_c *MockGCPClienter_GetVMZone_Call) Run(run func(ctx context.Context, projectID string, vmName string)) *MockGCPClienter_GetVMZone_Call
- func (_c *MockGCPClienter_GetVMZone_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *MockGCPClienter_GetVMZone_Call
- type MockGCPClienter_IsAPIEnabled_Call
- func (_c *MockGCPClienter_IsAPIEnabled_Call) Return(_a0 bool, _a1 error) *MockGCPClienter_IsAPIEnabled_Call
- func (_c *MockGCPClienter_IsAPIEnabled_Call) Run(run func(ctx context.Context, projectID string, apiName string)) *MockGCPClienter_IsAPIEnabled_Call
- func (_c *MockGCPClienter_IsAPIEnabled_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *MockGCPClienter_IsAPIEnabled_Call
- type MockGCPClienter_ListAllAssetsInProject_Call
- func (_c *MockGCPClienter_ListAllAssetsInProject_Call) Return(_a0 []*assetpb.Asset, _a1 error) *MockGCPClienter_ListAllAssetsInProject_Call
- func (_c *MockGCPClienter_ListAllAssetsInProject_Call) Run(run func(ctx context.Context, projectID string)) *MockGCPClienter_ListAllAssetsInProject_Call
- func (_c *MockGCPClienter_ListAllAssetsInProject_Call) RunAndReturn(run func(context.Context, string) ([]*assetpb.Asset, error)) *MockGCPClienter_ListAllAssetsInProject_Call
- type MockGCPClienter_ListBillingAccounts_Call
- func (_c *MockGCPClienter_ListBillingAccounts_Call) Return(_a0 []string, _a1 error) *MockGCPClienter_ListBillingAccounts_Call
- func (_c *MockGCPClienter_ListBillingAccounts_Call) Run(run func(ctx context.Context)) *MockGCPClienter_ListBillingAccounts_Call
- func (_c *MockGCPClienter_ListBillingAccounts_Call) RunAndReturn(run func(context.Context) ([]string, error)) *MockGCPClienter_ListBillingAccounts_Call
- type MockGCPClienter_ListProjects_Call
- func (_c *MockGCPClienter_ListProjects_Call) Return(_a0 []*resourcemanagerpb.Project, _a1 error) *MockGCPClienter_ListProjects_Call
- func (_c *MockGCPClienter_ListProjects_Call) Run(run func(ctx context.Context, req *resourcemanagerpb.ListProjectsRequest)) *MockGCPClienter_ListProjects_Call
- func (_c *MockGCPClienter_ListProjects_Call) RunAndReturn(...) *MockGCPClienter_ListProjects_Call
- type MockGCPClienter_ProjectExists_Call
- func (_c *MockGCPClienter_ProjectExists_Call) Return(_a0 bool, _a1 error) *MockGCPClienter_ProjectExists_Call
- func (_c *MockGCPClienter_ProjectExists_Call) Run(run func(ctx context.Context, projectID string)) *MockGCPClienter_ProjectExists_Call
- func (_c *MockGCPClienter_ProjectExists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *MockGCPClienter_ProjectExists_Call
- type MockGCPClienter_SetBillingAccount_Call
- func (_c *MockGCPClienter_SetBillingAccount_Call) Return(_a0 error) *MockGCPClienter_SetBillingAccount_Call
- func (_c *MockGCPClienter_SetBillingAccount_Call) Run(run func(ctx context.Context, projectID string, billingAccountID string)) *MockGCPClienter_SetBillingAccount_Call
- func (_c *MockGCPClienter_SetBillingAccount_Call) RunAndReturn(run func(context.Context, string, string) error) *MockGCPClienter_SetBillingAccount_Call
- type MockGCPClienter_SetParentString_Call
- func (_c *MockGCPClienter_SetParentString_Call) Return() *MockGCPClienter_SetParentString_Call
- func (_c *MockGCPClienter_SetParentString_Call) Run(run func(organizationID string)) *MockGCPClienter_SetParentString_Call
- func (_c *MockGCPClienter_SetParentString_Call) RunAndReturn(run func(string)) *MockGCPClienter_SetParentString_Call
- type MockGCPClienter_StartResourcePolling_Call
- func (_c *MockGCPClienter_StartResourcePolling_Call) Return(_a0 error) *MockGCPClienter_StartResourcePolling_Call
- func (_c *MockGCPClienter_StartResourcePolling_Call) Run(run func(ctx context.Context)) *MockGCPClienter_StartResourcePolling_Call
- func (_c *MockGCPClienter_StartResourcePolling_Call) RunAndReturn(run func(context.Context) error) *MockGCPClienter_StartResourcePolling_Call
- type MockGCPClienter_ValidateMachineType_Call
- func (_c *MockGCPClienter_ValidateMachineType_Call) Return(_a0 bool, _a1 error) *MockGCPClienter_ValidateMachineType_Call
- func (_c *MockGCPClienter_ValidateMachineType_Call) Run(run func(ctx context.Context, machineType string, location string)) *MockGCPClienter_ValidateMachineType_Call
- func (_c *MockGCPClienter_ValidateMachineType_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *MockGCPClienter_ValidateMachineType_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCloseableClient ¶
MockCloseableClient is an autogenerated mock type for the CloseableClient type
func NewMockCloseableClient ¶
func NewMockCloseableClient(t interface { mock.TestingT Cleanup(func()) }) *MockCloseableClient
NewMockCloseableClient creates a new instance of MockCloseableClient. 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 (*MockCloseableClient) Close ¶
func (_m *MockCloseableClient) Close() error
Close provides a mock function with given fields:
func (*MockCloseableClient) EXPECT ¶
func (_m *MockCloseableClient) EXPECT() *MockCloseableClient_Expecter
type MockCloseableClient_Close_Call ¶
MockCloseableClient_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockCloseableClient_Close_Call) Return ¶
func (_c *MockCloseableClient_Close_Call) Return(_a0 error) *MockCloseableClient_Close_Call
func (*MockCloseableClient_Close_Call) Run ¶
func (_c *MockCloseableClient_Close_Call) Run(run func()) *MockCloseableClient_Close_Call
func (*MockCloseableClient_Close_Call) RunAndReturn ¶
func (_c *MockCloseableClient_Close_Call) RunAndReturn(run func() error) *MockCloseableClient_Close_Call
type MockCloseableClient_Expecter ¶
type MockCloseableClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCloseableClient_Expecter) Close ¶
func (_e *MockCloseableClient_Expecter) Close() *MockCloseableClient_Close_Call
Close is a helper method to define mock.On call
type MockGCPClienter ¶
MockGCPClienter is an autogenerated mock type for the GCPClienter type
func NewMockGCPClienter ¶
func NewMockGCPClienter(t interface { mock.TestingT Cleanup(func()) }) *MockGCPClienter
NewMockGCPClienter creates a new instance of MockGCPClienter. 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 (*MockGCPClienter) CheckAuthentication ¶
func (_m *MockGCPClienter) CheckAuthentication(ctx context.Context) error
CheckAuthentication provides a mock function with given fields: ctx
func (*MockGCPClienter) CheckFirewallRuleExists ¶
func (_m *MockGCPClienter) CheckFirewallRuleExists(ctx context.Context, projectID string, ruleName string) error
CheckFirewallRuleExists provides a mock function with given fields: ctx, projectID, ruleName
func (*MockGCPClienter) CheckPermissions ¶
func (_m *MockGCPClienter) CheckPermissions(ctx context.Context) error
CheckPermissions provides a mock function with given fields: ctx
func (*MockGCPClienter) CreateFirewallRules ¶
func (_m *MockGCPClienter) CreateFirewallRules(ctx context.Context, networkName string) error
CreateFirewallRules provides a mock function with given fields: ctx, networkName
func (*MockGCPClienter) CreateIP ¶
func (_m *MockGCPClienter) CreateIP(ctx context.Context, projectID string, location string, addressName string) (string, error)
CreateIP provides a mock function with given fields: ctx, projectID, location, addressName
func (*MockGCPClienter) CreateServiceAccount ¶
func (_m *MockGCPClienter) CreateServiceAccount(ctx context.Context, projectID string) (*iam.ServiceAccount, error)
CreateServiceAccount provides a mock function with given fields: ctx, projectID
func (*MockGCPClienter) CreateVM ¶
func (_m *MockGCPClienter) CreateVM(ctx context.Context, projectID string, machine models.Machiner) (*computepb.Instance, error)
CreateVM provides a mock function with given fields: ctx, projectID, machine
func (*MockGCPClienter) CreateVPCNetwork ¶
func (_m *MockGCPClienter) CreateVPCNetwork(ctx context.Context, networkName string) error
CreateVPCNetwork provides a mock function with given fields: ctx, networkName
func (*MockGCPClienter) DestroyProject ¶
func (_m *MockGCPClienter) DestroyProject(ctx context.Context, projectID string) error
DestroyProject provides a mock function with given fields: ctx, projectID
func (*MockGCPClienter) EXPECT ¶
func (_m *MockGCPClienter) EXPECT() *MockGCPClienter_Expecter
func (*MockGCPClienter) EnableAPI ¶
EnableAPI provides a mock function with given fields: ctx, projectID, apiName
func (*MockGCPClienter) EnsureFirewallRules ¶
func (_m *MockGCPClienter) EnsureFirewallRules(ctx context.Context, networkName string) error
EnsureFirewallRules provides a mock function with given fields: ctx, networkName
func (*MockGCPClienter) EnsureProject ¶
func (_m *MockGCPClienter) EnsureProject(ctx context.Context, organizationID string, projectID string, billingAccountID string) (string, error)
EnsureProject provides a mock function with given fields: ctx, organizationID, projectID, billingAccountID
func (*MockGCPClienter) EnsureVPCNetwork ¶
func (_m *MockGCPClienter) EnsureVPCNetwork(ctx context.Context, networkName string) error
EnsureVPCNetwork provides a mock function with given fields: ctx, networkName
func (*MockGCPClienter) GetParentString ¶
func (_m *MockGCPClienter) GetParentString() string
GetParentString provides a mock function with given fields:
func (*MockGCPClienter) GetVMExternalIP ¶
func (_m *MockGCPClienter) GetVMExternalIP(ctx context.Context, vmName string, locationData map[string]string) (string, error)
GetVMExternalIP provides a mock function with given fields: ctx, vmName, locationData
func (*MockGCPClienter) GetVMZone ¶
func (_m *MockGCPClienter) GetVMZone(ctx context.Context, projectID string, vmName string) (string, error)
GetVMZone provides a mock function with given fields: ctx, projectID, vmName
func (*MockGCPClienter) IsAPIEnabled ¶
func (_m *MockGCPClienter) IsAPIEnabled(ctx context.Context, projectID string, apiName string) (bool, error)
IsAPIEnabled provides a mock function with given fields: ctx, projectID, apiName
func (*MockGCPClienter) ListAllAssetsInProject ¶
func (_m *MockGCPClienter) ListAllAssetsInProject(ctx context.Context, projectID string) ([]*assetpb.Asset, error)
ListAllAssetsInProject provides a mock function with given fields: ctx, projectID
func (*MockGCPClienter) ListBillingAccounts ¶
func (_m *MockGCPClienter) ListBillingAccounts(ctx context.Context) ([]string, error)
ListBillingAccounts provides a mock function with given fields: ctx
func (*MockGCPClienter) ListProjects ¶
func (_m *MockGCPClienter) ListProjects(ctx context.Context, req *resourcemanagerpb.ListProjectsRequest) ([]*resourcemanagerpb.Project, error)
ListProjects provides a mock function with given fields: ctx, req
func (*MockGCPClienter) ProjectExists ¶
ProjectExists provides a mock function with given fields: ctx, projectID
func (*MockGCPClienter) SetBillingAccount ¶
func (_m *MockGCPClienter) SetBillingAccount(ctx context.Context, projectID string, billingAccountID string) error
SetBillingAccount provides a mock function with given fields: ctx, projectID, billingAccountID
func (*MockGCPClienter) SetParentString ¶
func (_m *MockGCPClienter) SetParentString(organizationID string)
SetParentString provides a mock function with given fields: organizationID
func (*MockGCPClienter) StartResourcePolling ¶
func (_m *MockGCPClienter) StartResourcePolling(ctx context.Context) error
StartResourcePolling provides a mock function with given fields: ctx
func (*MockGCPClienter) ValidateMachineType ¶
func (_m *MockGCPClienter) ValidateMachineType(ctx context.Context, machineType string, location string) (bool, error)
ValidateMachineType provides a mock function with given fields: ctx, machineType, location
type MockGCPClienter_CheckAuthentication_Call ¶
MockGCPClienter_CheckAuthentication_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckAuthentication'
func (*MockGCPClienter_CheckAuthentication_Call) Return ¶
func (_c *MockGCPClienter_CheckAuthentication_Call) Return(_a0 error) *MockGCPClienter_CheckAuthentication_Call
func (*MockGCPClienter_CheckAuthentication_Call) Run ¶
func (_c *MockGCPClienter_CheckAuthentication_Call) Run(run func(ctx context.Context)) *MockGCPClienter_CheckAuthentication_Call
func (*MockGCPClienter_CheckAuthentication_Call) RunAndReturn ¶
func (_c *MockGCPClienter_CheckAuthentication_Call) RunAndReturn(run func(context.Context) error) *MockGCPClienter_CheckAuthentication_Call
type MockGCPClienter_CheckFirewallRuleExists_Call ¶
MockGCPClienter_CheckFirewallRuleExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckFirewallRuleExists'
func (*MockGCPClienter_CheckFirewallRuleExists_Call) Return ¶
func (_c *MockGCPClienter_CheckFirewallRuleExists_Call) Return(_a0 error) *MockGCPClienter_CheckFirewallRuleExists_Call
func (*MockGCPClienter_CheckFirewallRuleExists_Call) Run ¶
func (_c *MockGCPClienter_CheckFirewallRuleExists_Call) Run(run func(ctx context.Context, projectID string, ruleName string)) *MockGCPClienter_CheckFirewallRuleExists_Call
func (*MockGCPClienter_CheckFirewallRuleExists_Call) RunAndReturn ¶
func (_c *MockGCPClienter_CheckFirewallRuleExists_Call) RunAndReturn(run func(context.Context, string, string) error) *MockGCPClienter_CheckFirewallRuleExists_Call
type MockGCPClienter_CheckPermissions_Call ¶
MockGCPClienter_CheckPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckPermissions'
func (*MockGCPClienter_CheckPermissions_Call) Return ¶
func (_c *MockGCPClienter_CheckPermissions_Call) Return(_a0 error) *MockGCPClienter_CheckPermissions_Call
func (*MockGCPClienter_CheckPermissions_Call) Run ¶
func (_c *MockGCPClienter_CheckPermissions_Call) Run(run func(ctx context.Context)) *MockGCPClienter_CheckPermissions_Call
func (*MockGCPClienter_CheckPermissions_Call) RunAndReturn ¶
func (_c *MockGCPClienter_CheckPermissions_Call) RunAndReturn(run func(context.Context) error) *MockGCPClienter_CheckPermissions_Call
type MockGCPClienter_CreateFirewallRules_Call ¶
MockGCPClienter_CreateFirewallRules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFirewallRules'
func (*MockGCPClienter_CreateFirewallRules_Call) Return ¶
func (_c *MockGCPClienter_CreateFirewallRules_Call) Return(_a0 error) *MockGCPClienter_CreateFirewallRules_Call
func (*MockGCPClienter_CreateFirewallRules_Call) Run ¶
func (_c *MockGCPClienter_CreateFirewallRules_Call) Run(run func(ctx context.Context, networkName string)) *MockGCPClienter_CreateFirewallRules_Call
func (*MockGCPClienter_CreateFirewallRules_Call) RunAndReturn ¶
func (_c *MockGCPClienter_CreateFirewallRules_Call) RunAndReturn(run func(context.Context, string) error) *MockGCPClienter_CreateFirewallRules_Call
type MockGCPClienter_CreateIP_Call ¶
MockGCPClienter_CreateIP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIP'
func (*MockGCPClienter_CreateIP_Call) Return ¶
func (_c *MockGCPClienter_CreateIP_Call) Return(_a0 string, _a1 error) *MockGCPClienter_CreateIP_Call
func (*MockGCPClienter_CreateIP_Call) Run ¶
func (_c *MockGCPClienter_CreateIP_Call) Run(run func(ctx context.Context, projectID string, location string, addressName string)) *MockGCPClienter_CreateIP_Call
func (*MockGCPClienter_CreateIP_Call) RunAndReturn ¶
func (_c *MockGCPClienter_CreateIP_Call) RunAndReturn(run func(context.Context, string, string, string) (string, error)) *MockGCPClienter_CreateIP_Call
type MockGCPClienter_CreateServiceAccount_Call ¶
MockGCPClienter_CreateServiceAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateServiceAccount'
func (*MockGCPClienter_CreateServiceAccount_Call) Return ¶
func (_c *MockGCPClienter_CreateServiceAccount_Call) Return(_a0 *iam.ServiceAccount, _a1 error) *MockGCPClienter_CreateServiceAccount_Call
func (*MockGCPClienter_CreateServiceAccount_Call) Run ¶
func (_c *MockGCPClienter_CreateServiceAccount_Call) Run(run func(ctx context.Context, projectID string)) *MockGCPClienter_CreateServiceAccount_Call
func (*MockGCPClienter_CreateServiceAccount_Call) RunAndReturn ¶
func (_c *MockGCPClienter_CreateServiceAccount_Call) RunAndReturn(run func(context.Context, string) (*iam.ServiceAccount, error)) *MockGCPClienter_CreateServiceAccount_Call
type MockGCPClienter_CreateVM_Call ¶
MockGCPClienter_CreateVM_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateVM'
func (*MockGCPClienter_CreateVM_Call) Return ¶
func (_c *MockGCPClienter_CreateVM_Call) Return(_a0 *computepb.Instance, _a1 error) *MockGCPClienter_CreateVM_Call
func (*MockGCPClienter_CreateVM_Call) Run ¶
func (_c *MockGCPClienter_CreateVM_Call) Run(run func(ctx context.Context, projectID string, machine models.Machiner)) *MockGCPClienter_CreateVM_Call
func (*MockGCPClienter_CreateVM_Call) RunAndReturn ¶
func (_c *MockGCPClienter_CreateVM_Call) RunAndReturn(run func(context.Context, string, models.Machiner) (*computepb.Instance, error)) *MockGCPClienter_CreateVM_Call
type MockGCPClienter_CreateVPCNetwork_Call ¶
MockGCPClienter_CreateVPCNetwork_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateVPCNetwork'
func (*MockGCPClienter_CreateVPCNetwork_Call) Return ¶
func (_c *MockGCPClienter_CreateVPCNetwork_Call) Return(_a0 error) *MockGCPClienter_CreateVPCNetwork_Call
func (*MockGCPClienter_CreateVPCNetwork_Call) Run ¶
func (_c *MockGCPClienter_CreateVPCNetwork_Call) Run(run func(ctx context.Context, networkName string)) *MockGCPClienter_CreateVPCNetwork_Call
func (*MockGCPClienter_CreateVPCNetwork_Call) RunAndReturn ¶
func (_c *MockGCPClienter_CreateVPCNetwork_Call) RunAndReturn(run func(context.Context, string) error) *MockGCPClienter_CreateVPCNetwork_Call
type MockGCPClienter_DestroyProject_Call ¶
MockGCPClienter_DestroyProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DestroyProject'
func (*MockGCPClienter_DestroyProject_Call) Return ¶
func (_c *MockGCPClienter_DestroyProject_Call) Return(_a0 error) *MockGCPClienter_DestroyProject_Call
func (*MockGCPClienter_DestroyProject_Call) Run ¶
func (_c *MockGCPClienter_DestroyProject_Call) Run(run func(ctx context.Context, projectID string)) *MockGCPClienter_DestroyProject_Call
func (*MockGCPClienter_DestroyProject_Call) RunAndReturn ¶
func (_c *MockGCPClienter_DestroyProject_Call) RunAndReturn(run func(context.Context, string) error) *MockGCPClienter_DestroyProject_Call
type MockGCPClienter_EnableAPI_Call ¶
MockGCPClienter_EnableAPI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnableAPI'
func (*MockGCPClienter_EnableAPI_Call) Return ¶
func (_c *MockGCPClienter_EnableAPI_Call) Return(_a0 error) *MockGCPClienter_EnableAPI_Call
func (*MockGCPClienter_EnableAPI_Call) Run ¶
func (_c *MockGCPClienter_EnableAPI_Call) Run(run func(ctx context.Context, projectID string, apiName string)) *MockGCPClienter_EnableAPI_Call
func (*MockGCPClienter_EnableAPI_Call) RunAndReturn ¶
func (_c *MockGCPClienter_EnableAPI_Call) RunAndReturn(run func(context.Context, string, string) error) *MockGCPClienter_EnableAPI_Call
type MockGCPClienter_EnsureFirewallRules_Call ¶
MockGCPClienter_EnsureFirewallRules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsureFirewallRules'
func (*MockGCPClienter_EnsureFirewallRules_Call) Return ¶
func (_c *MockGCPClienter_EnsureFirewallRules_Call) Return(_a0 error) *MockGCPClienter_EnsureFirewallRules_Call
func (*MockGCPClienter_EnsureFirewallRules_Call) Run ¶
func (_c *MockGCPClienter_EnsureFirewallRules_Call) Run(run func(ctx context.Context, networkName string)) *MockGCPClienter_EnsureFirewallRules_Call
func (*MockGCPClienter_EnsureFirewallRules_Call) RunAndReturn ¶
func (_c *MockGCPClienter_EnsureFirewallRules_Call) RunAndReturn(run func(context.Context, string) error) *MockGCPClienter_EnsureFirewallRules_Call
type MockGCPClienter_EnsureProject_Call ¶
MockGCPClienter_EnsureProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsureProject'
func (*MockGCPClienter_EnsureProject_Call) Return ¶
func (_c *MockGCPClienter_EnsureProject_Call) Return(_a0 string, _a1 error) *MockGCPClienter_EnsureProject_Call
func (*MockGCPClienter_EnsureProject_Call) Run ¶
func (_c *MockGCPClienter_EnsureProject_Call) Run(run func(ctx context.Context, organizationID string, projectID string, billingAccountID string)) *MockGCPClienter_EnsureProject_Call
func (*MockGCPClienter_EnsureProject_Call) RunAndReturn ¶
func (_c *MockGCPClienter_EnsureProject_Call) RunAndReturn(run func(context.Context, string, string, string) (string, error)) *MockGCPClienter_EnsureProject_Call
type MockGCPClienter_EnsureVPCNetwork_Call ¶
MockGCPClienter_EnsureVPCNetwork_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnsureVPCNetwork'
func (*MockGCPClienter_EnsureVPCNetwork_Call) Return ¶
func (_c *MockGCPClienter_EnsureVPCNetwork_Call) Return(_a0 error) *MockGCPClienter_EnsureVPCNetwork_Call
func (*MockGCPClienter_EnsureVPCNetwork_Call) Run ¶
func (_c *MockGCPClienter_EnsureVPCNetwork_Call) Run(run func(ctx context.Context, networkName string)) *MockGCPClienter_EnsureVPCNetwork_Call
func (*MockGCPClienter_EnsureVPCNetwork_Call) RunAndReturn ¶
func (_c *MockGCPClienter_EnsureVPCNetwork_Call) RunAndReturn(run func(context.Context, string) error) *MockGCPClienter_EnsureVPCNetwork_Call
type MockGCPClienter_Expecter ¶
type MockGCPClienter_Expecter struct {
// contains filtered or unexported fields
}
func (*MockGCPClienter_Expecter) CheckAuthentication ¶
func (_e *MockGCPClienter_Expecter) CheckAuthentication(ctx interface{}) *MockGCPClienter_CheckAuthentication_Call
CheckAuthentication is a helper method to define mock.On call
- ctx context.Context
func (*MockGCPClienter_Expecter) CheckFirewallRuleExists ¶
func (_e *MockGCPClienter_Expecter) CheckFirewallRuleExists(ctx interface{}, projectID interface{}, ruleName interface{}) *MockGCPClienter_CheckFirewallRuleExists_Call
CheckFirewallRuleExists is a helper method to define mock.On call
- ctx context.Context
- projectID string
- ruleName string
func (*MockGCPClienter_Expecter) CheckPermissions ¶
func (_e *MockGCPClienter_Expecter) CheckPermissions(ctx interface{}) *MockGCPClienter_CheckPermissions_Call
CheckPermissions is a helper method to define mock.On call
- ctx context.Context
func (*MockGCPClienter_Expecter) CreateFirewallRules ¶
func (_e *MockGCPClienter_Expecter) CreateFirewallRules(ctx interface{}, networkName interface{}) *MockGCPClienter_CreateFirewallRules_Call
CreateFirewallRules is a helper method to define mock.On call
- ctx context.Context
- networkName string
func (*MockGCPClienter_Expecter) CreateIP ¶
func (_e *MockGCPClienter_Expecter) CreateIP(ctx interface{}, projectID interface{}, location interface{}, addressName interface{}) *MockGCPClienter_CreateIP_Call
CreateIP is a helper method to define mock.On call
- ctx context.Context
- projectID string
- location string
- addressName string
func (*MockGCPClienter_Expecter) CreateServiceAccount ¶
func (_e *MockGCPClienter_Expecter) CreateServiceAccount(ctx interface{}, projectID interface{}) *MockGCPClienter_CreateServiceAccount_Call
CreateServiceAccount is a helper method to define mock.On call
- ctx context.Context
- projectID string
func (*MockGCPClienter_Expecter) CreateVM ¶
func (_e *MockGCPClienter_Expecter) CreateVM(ctx interface{}, projectID interface{}, machine interface{}) *MockGCPClienter_CreateVM_Call
CreateVM is a helper method to define mock.On call
- ctx context.Context
- projectID string
- machine models.Machiner
func (*MockGCPClienter_Expecter) CreateVPCNetwork ¶
func (_e *MockGCPClienter_Expecter) CreateVPCNetwork(ctx interface{}, networkName interface{}) *MockGCPClienter_CreateVPCNetwork_Call
CreateVPCNetwork is a helper method to define mock.On call
- ctx context.Context
- networkName string
func (*MockGCPClienter_Expecter) DestroyProject ¶
func (_e *MockGCPClienter_Expecter) DestroyProject(ctx interface{}, projectID interface{}) *MockGCPClienter_DestroyProject_Call
DestroyProject is a helper method to define mock.On call
- ctx context.Context
- projectID string
func (*MockGCPClienter_Expecter) EnableAPI ¶
func (_e *MockGCPClienter_Expecter) EnableAPI(ctx interface{}, projectID interface{}, apiName interface{}) *MockGCPClienter_EnableAPI_Call
EnableAPI is a helper method to define mock.On call
- ctx context.Context
- projectID string
- apiName string
func (*MockGCPClienter_Expecter) EnsureFirewallRules ¶
func (_e *MockGCPClienter_Expecter) EnsureFirewallRules(ctx interface{}, networkName interface{}) *MockGCPClienter_EnsureFirewallRules_Call
EnsureFirewallRules is a helper method to define mock.On call
- ctx context.Context
- networkName string
func (*MockGCPClienter_Expecter) EnsureProject ¶
func (_e *MockGCPClienter_Expecter) EnsureProject(ctx interface{}, organizationID interface{}, projectID interface{}, billingAccountID interface{}) *MockGCPClienter_EnsureProject_Call
EnsureProject is a helper method to define mock.On call
- ctx context.Context
- organizationID string
- projectID string
- billingAccountID string
func (*MockGCPClienter_Expecter) EnsureVPCNetwork ¶
func (_e *MockGCPClienter_Expecter) EnsureVPCNetwork(ctx interface{}, networkName interface{}) *MockGCPClienter_EnsureVPCNetwork_Call
EnsureVPCNetwork is a helper method to define mock.On call
- ctx context.Context
- networkName string
func (*MockGCPClienter_Expecter) GetParentString ¶
func (_e *MockGCPClienter_Expecter) GetParentString() *MockGCPClienter_GetParentString_Call
GetParentString is a helper method to define mock.On call
func (*MockGCPClienter_Expecter) GetVMExternalIP ¶
func (_e *MockGCPClienter_Expecter) GetVMExternalIP(ctx interface{}, vmName interface{}, locationData interface{}) *MockGCPClienter_GetVMExternalIP_Call
GetVMExternalIP is a helper method to define mock.On call
- ctx context.Context
- vmName string
- locationData map[string]string
func (*MockGCPClienter_Expecter) GetVMZone ¶
func (_e *MockGCPClienter_Expecter) GetVMZone(ctx interface{}, projectID interface{}, vmName interface{}) *MockGCPClienter_GetVMZone_Call
GetVMZone is a helper method to define mock.On call
- ctx context.Context
- projectID string
- vmName string
func (*MockGCPClienter_Expecter) IsAPIEnabled ¶
func (_e *MockGCPClienter_Expecter) IsAPIEnabled(ctx interface{}, projectID interface{}, apiName interface{}) *MockGCPClienter_IsAPIEnabled_Call
IsAPIEnabled is a helper method to define mock.On call
- ctx context.Context
- projectID string
- apiName string
func (*MockGCPClienter_Expecter) ListAllAssetsInProject ¶
func (_e *MockGCPClienter_Expecter) ListAllAssetsInProject(ctx interface{}, projectID interface{}) *MockGCPClienter_ListAllAssetsInProject_Call
ListAllAssetsInProject is a helper method to define mock.On call
- ctx context.Context
- projectID string
func (*MockGCPClienter_Expecter) ListBillingAccounts ¶
func (_e *MockGCPClienter_Expecter) ListBillingAccounts(ctx interface{}) *MockGCPClienter_ListBillingAccounts_Call
ListBillingAccounts is a helper method to define mock.On call
- ctx context.Context
func (*MockGCPClienter_Expecter) ListProjects ¶
func (_e *MockGCPClienter_Expecter) ListProjects(ctx interface{}, req interface{}) *MockGCPClienter_ListProjects_Call
ListProjects is a helper method to define mock.On call
- ctx context.Context
- req *resourcemanagerpb.ListProjectsRequest
func (*MockGCPClienter_Expecter) ProjectExists ¶
func (_e *MockGCPClienter_Expecter) ProjectExists(ctx interface{}, projectID interface{}) *MockGCPClienter_ProjectExists_Call
ProjectExists is a helper method to define mock.On call
- ctx context.Context
- projectID string
func (*MockGCPClienter_Expecter) SetBillingAccount ¶
func (_e *MockGCPClienter_Expecter) SetBillingAccount(ctx interface{}, projectID interface{}, billingAccountID interface{}) *MockGCPClienter_SetBillingAccount_Call
SetBillingAccount is a helper method to define mock.On call
- ctx context.Context
- projectID string
- billingAccountID string
func (*MockGCPClienter_Expecter) SetParentString ¶
func (_e *MockGCPClienter_Expecter) SetParentString(organizationID interface{}) *MockGCPClienter_SetParentString_Call
SetParentString is a helper method to define mock.On call
- organizationID string
func (*MockGCPClienter_Expecter) StartResourcePolling ¶
func (_e *MockGCPClienter_Expecter) StartResourcePolling(ctx interface{}) *MockGCPClienter_StartResourcePolling_Call
StartResourcePolling is a helper method to define mock.On call
- ctx context.Context
func (*MockGCPClienter_Expecter) ValidateMachineType ¶
func (_e *MockGCPClienter_Expecter) ValidateMachineType(ctx interface{}, machineType interface{}, location interface{}) *MockGCPClienter_ValidateMachineType_Call
ValidateMachineType is a helper method to define mock.On call
- ctx context.Context
- machineType string
- location string
type MockGCPClienter_GetParentString_Call ¶
MockGCPClienter_GetParentString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetParentString'
func (*MockGCPClienter_GetParentString_Call) Return ¶
func (_c *MockGCPClienter_GetParentString_Call) Return(_a0 string) *MockGCPClienter_GetParentString_Call
func (*MockGCPClienter_GetParentString_Call) Run ¶
func (_c *MockGCPClienter_GetParentString_Call) Run(run func()) *MockGCPClienter_GetParentString_Call
func (*MockGCPClienter_GetParentString_Call) RunAndReturn ¶
func (_c *MockGCPClienter_GetParentString_Call) RunAndReturn(run func() string) *MockGCPClienter_GetParentString_Call
type MockGCPClienter_GetVMExternalIP_Call ¶
MockGCPClienter_GetVMExternalIP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVMExternalIP'
func (*MockGCPClienter_GetVMExternalIP_Call) Return ¶
func (_c *MockGCPClienter_GetVMExternalIP_Call) Return(_a0 string, _a1 error) *MockGCPClienter_GetVMExternalIP_Call
func (*MockGCPClienter_GetVMExternalIP_Call) Run ¶
func (_c *MockGCPClienter_GetVMExternalIP_Call) Run(run func(ctx context.Context, vmName string, locationData map[string]string)) *MockGCPClienter_GetVMExternalIP_Call
func (*MockGCPClienter_GetVMExternalIP_Call) RunAndReturn ¶
func (_c *MockGCPClienter_GetVMExternalIP_Call) RunAndReturn(run func(context.Context, string, map[string]string) (string, error)) *MockGCPClienter_GetVMExternalIP_Call
type MockGCPClienter_GetVMZone_Call ¶
MockGCPClienter_GetVMZone_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVMZone'
func (*MockGCPClienter_GetVMZone_Call) Return ¶
func (_c *MockGCPClienter_GetVMZone_Call) Return(_a0 string, _a1 error) *MockGCPClienter_GetVMZone_Call
func (*MockGCPClienter_GetVMZone_Call) Run ¶
func (_c *MockGCPClienter_GetVMZone_Call) Run(run func(ctx context.Context, projectID string, vmName string)) *MockGCPClienter_GetVMZone_Call
func (*MockGCPClienter_GetVMZone_Call) RunAndReturn ¶
func (_c *MockGCPClienter_GetVMZone_Call) RunAndReturn(run func(context.Context, string, string) (string, error)) *MockGCPClienter_GetVMZone_Call
type MockGCPClienter_IsAPIEnabled_Call ¶
MockGCPClienter_IsAPIEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAPIEnabled'
func (*MockGCPClienter_IsAPIEnabled_Call) Return ¶
func (_c *MockGCPClienter_IsAPIEnabled_Call) Return(_a0 bool, _a1 error) *MockGCPClienter_IsAPIEnabled_Call
func (*MockGCPClienter_IsAPIEnabled_Call) Run ¶
func (_c *MockGCPClienter_IsAPIEnabled_Call) Run(run func(ctx context.Context, projectID string, apiName string)) *MockGCPClienter_IsAPIEnabled_Call
func (*MockGCPClienter_IsAPIEnabled_Call) RunAndReturn ¶
func (_c *MockGCPClienter_IsAPIEnabled_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *MockGCPClienter_IsAPIEnabled_Call
type MockGCPClienter_ListAllAssetsInProject_Call ¶
MockGCPClienter_ListAllAssetsInProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListAllAssetsInProject'
func (*MockGCPClienter_ListAllAssetsInProject_Call) Return ¶
func (_c *MockGCPClienter_ListAllAssetsInProject_Call) Return(_a0 []*assetpb.Asset, _a1 error) *MockGCPClienter_ListAllAssetsInProject_Call
func (*MockGCPClienter_ListAllAssetsInProject_Call) Run ¶
func (_c *MockGCPClienter_ListAllAssetsInProject_Call) Run(run func(ctx context.Context, projectID string)) *MockGCPClienter_ListAllAssetsInProject_Call
func (*MockGCPClienter_ListAllAssetsInProject_Call) RunAndReturn ¶
func (_c *MockGCPClienter_ListAllAssetsInProject_Call) RunAndReturn(run func(context.Context, string) ([]*assetpb.Asset, error)) *MockGCPClienter_ListAllAssetsInProject_Call
type MockGCPClienter_ListBillingAccounts_Call ¶
MockGCPClienter_ListBillingAccounts_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListBillingAccounts'
func (*MockGCPClienter_ListBillingAccounts_Call) Return ¶
func (_c *MockGCPClienter_ListBillingAccounts_Call) Return(_a0 []string, _a1 error) *MockGCPClienter_ListBillingAccounts_Call
func (*MockGCPClienter_ListBillingAccounts_Call) Run ¶
func (_c *MockGCPClienter_ListBillingAccounts_Call) Run(run func(ctx context.Context)) *MockGCPClienter_ListBillingAccounts_Call
func (*MockGCPClienter_ListBillingAccounts_Call) RunAndReturn ¶
func (_c *MockGCPClienter_ListBillingAccounts_Call) RunAndReturn(run func(context.Context) ([]string, error)) *MockGCPClienter_ListBillingAccounts_Call
type MockGCPClienter_ListProjects_Call ¶
MockGCPClienter_ListProjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListProjects'
func (*MockGCPClienter_ListProjects_Call) Return ¶
func (_c *MockGCPClienter_ListProjects_Call) Return(_a0 []*resourcemanagerpb.Project, _a1 error) *MockGCPClienter_ListProjects_Call
func (*MockGCPClienter_ListProjects_Call) Run ¶
func (_c *MockGCPClienter_ListProjects_Call) Run(run func(ctx context.Context, req *resourcemanagerpb.ListProjectsRequest)) *MockGCPClienter_ListProjects_Call
func (*MockGCPClienter_ListProjects_Call) RunAndReturn ¶
func (_c *MockGCPClienter_ListProjects_Call) RunAndReturn(run func(context.Context, *resourcemanagerpb.ListProjectsRequest) ([]*resourcemanagerpb.Project, error)) *MockGCPClienter_ListProjects_Call
type MockGCPClienter_ProjectExists_Call ¶
MockGCPClienter_ProjectExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ProjectExists'
func (*MockGCPClienter_ProjectExists_Call) Return ¶
func (_c *MockGCPClienter_ProjectExists_Call) Return(_a0 bool, _a1 error) *MockGCPClienter_ProjectExists_Call
func (*MockGCPClienter_ProjectExists_Call) Run ¶
func (_c *MockGCPClienter_ProjectExists_Call) Run(run func(ctx context.Context, projectID string)) *MockGCPClienter_ProjectExists_Call
func (*MockGCPClienter_ProjectExists_Call) RunAndReturn ¶
func (_c *MockGCPClienter_ProjectExists_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *MockGCPClienter_ProjectExists_Call
type MockGCPClienter_SetBillingAccount_Call ¶
MockGCPClienter_SetBillingAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetBillingAccount'
func (*MockGCPClienter_SetBillingAccount_Call) Return ¶
func (_c *MockGCPClienter_SetBillingAccount_Call) Return(_a0 error) *MockGCPClienter_SetBillingAccount_Call
func (*MockGCPClienter_SetBillingAccount_Call) Run ¶
func (_c *MockGCPClienter_SetBillingAccount_Call) Run(run func(ctx context.Context, projectID string, billingAccountID string)) *MockGCPClienter_SetBillingAccount_Call
func (*MockGCPClienter_SetBillingAccount_Call) RunAndReturn ¶
func (_c *MockGCPClienter_SetBillingAccount_Call) RunAndReturn(run func(context.Context, string, string) error) *MockGCPClienter_SetBillingAccount_Call
type MockGCPClienter_SetParentString_Call ¶
MockGCPClienter_SetParentString_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetParentString'
func (*MockGCPClienter_SetParentString_Call) Return ¶
func (_c *MockGCPClienter_SetParentString_Call) Return() *MockGCPClienter_SetParentString_Call
func (*MockGCPClienter_SetParentString_Call) Run ¶
func (_c *MockGCPClienter_SetParentString_Call) Run(run func(organizationID string)) *MockGCPClienter_SetParentString_Call
func (*MockGCPClienter_SetParentString_Call) RunAndReturn ¶
func (_c *MockGCPClienter_SetParentString_Call) RunAndReturn(run func(string)) *MockGCPClienter_SetParentString_Call
type MockGCPClienter_StartResourcePolling_Call ¶
MockGCPClienter_StartResourcePolling_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StartResourcePolling'
func (*MockGCPClienter_StartResourcePolling_Call) Return ¶
func (_c *MockGCPClienter_StartResourcePolling_Call) Return(_a0 error) *MockGCPClienter_StartResourcePolling_Call
func (*MockGCPClienter_StartResourcePolling_Call) Run ¶
func (_c *MockGCPClienter_StartResourcePolling_Call) Run(run func(ctx context.Context)) *MockGCPClienter_StartResourcePolling_Call
func (*MockGCPClienter_StartResourcePolling_Call) RunAndReturn ¶
func (_c *MockGCPClienter_StartResourcePolling_Call) RunAndReturn(run func(context.Context) error) *MockGCPClienter_StartResourcePolling_Call
type MockGCPClienter_ValidateMachineType_Call ¶
MockGCPClienter_ValidateMachineType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateMachineType'
func (*MockGCPClienter_ValidateMachineType_Call) Return ¶
func (_c *MockGCPClienter_ValidateMachineType_Call) Return(_a0 bool, _a1 error) *MockGCPClienter_ValidateMachineType_Call
func (*MockGCPClienter_ValidateMachineType_Call) Run ¶
func (_c *MockGCPClienter_ValidateMachineType_Call) Run(run func(ctx context.Context, machineType string, location string)) *MockGCPClienter_ValidateMachineType_Call
func (*MockGCPClienter_ValidateMachineType_Call) RunAndReturn ¶
func (_c *MockGCPClienter_ValidateMachineType_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *MockGCPClienter_ValidateMachineType_Call