Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Instances []*compute.Instance
Instances stores and manages the instances during create,delete and list calls
Functions ¶
func NewMockServer ¶
func NewMockServer()
NewMockServer creates an http server to mock the gcp compute api
Types ¶
type PluginSPIImpl ¶
PluginSPIImpl is the mock implementation of PluginSPIImpl
func (*PluginSPIImpl) NewComputeService ¶
func (ms *PluginSPIImpl) NewComputeService(secrets *corev1.Secret) (context.Context, *compute.Service, error)
NewComputeService creates a compute service instance using the mock
Click to show internal directories.
Click to hide internal directories.