Documentation ¶
Overview ¶
Package mock encapsulates mocks for testing GCE provider functionality. These methods are used to override the mock objects' methods in order to intercept the standard processing and to add custom logic for test purposes.
// Example usage:
cloud := cloud.NewMockGCE() cloud.MockTargetPools.AddInstanceHook = mock.AddInstanceHook
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddInstanceHook ¶
func AddInstanceHook(ctx context.Context, key *meta.Key, req *ga.TargetPoolsAddInstanceRequest, m *cloud.MockTargetPools) error
AddInstanceHook mocks adding a Instance to MockTargetPools
func RemoveInstanceHook ¶
func RemoveInstanceHook(ctx context.Context, key *meta.Key, req *ga.TargetPoolsRemoveInstanceRequest, m *cloud.MockTargetPools) error
RemoveInstanceHook mocks removing a Instance from MockTargetPools
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.