mock

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientErrors

type ClientErrors interface {
	SetCreateError(error *googleapi.Error)
	SetPatchError(error *googleapi.Error)
	SetDeleteError(error *googleapi.Error)
	SetGetError(error *googleapi.Error)
	SetOperationError(error *googleapi.Error)
}

ClientErrors is an interface for setting errors on the mock client to simulate Hyperscaler API errors

type Clients

type Clients interface {
	IpRangeClient
	NfsClient
}

type NfsClient

type NfsClient interface {
	nfsclient.FilestoreClient
}

type Providers

type Providers interface {
	ServiceNetworkingClientProvider() client.ClientProvider[iprangeclient.ServiceNetworkingClient]
	ComputeClientProvider() client.ClientProvider[iprangeclient.ComputeClient]
	FilestoreClientProvider() client.ClientProvider[nfsclient.FilestoreClient]
	ServiceUsageClientProvider() client.ClientProvider[client.ServiceUsageClient]
}

type Server

type Server interface {
	Clients

	Providers

	ClientErrors
}

func New

func New() Server

Jump to

Keyboard shortcuts

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