mock

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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

type PluginSPIImpl struct {
	Client *http.Client
}

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

Jump to

Keyboard shortcuts

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