fake

package
v0.0.0-...-be1e11a Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	MockCreateSpectrumApplication func(ctx context.Context, zoneID string, appDetails cloudflare.SpectrumApplication) (cloudflare.SpectrumApplication, error)
	MockSpectrumApplication       func(ctx context.Context, zoneID string, applicationID string) (cloudflare.SpectrumApplication, error)
	MockUpdateSpectrumApplication func(ctx context.Context, zoneID, appID string, appDetails cloudflare.SpectrumApplication) (cloudflare.SpectrumApplication, error)
	MockDeleteSpectrumApplication func(ctx context.Context, zoneID string, applicationID string) error
}

A MockClient acts as a testable representation of the Cloudflare API.

func (MockClient) CreateSpectrumApplication

func (m MockClient) CreateSpectrumApplication(ctx context.Context, zoneID string, appDetails cloudflare.SpectrumApplication) (cloudflare.SpectrumApplication, error)

CreateSpectrumApplication mocks the CreateSpectrumApplication method of the Cloudflare API.

func (MockClient) DeleteSpectrumApplication

func (m MockClient) DeleteSpectrumApplication(ctx context.Context, zoneID string, applicationID string) error

DeleteSpectrumApplication mocks the DeleteSpectrumApplication method of the Cloudflare API.

func (MockClient) SpectrumApplication

func (m MockClient) SpectrumApplication(ctx context.Context, zoneID string, applicationID string) (cloudflare.SpectrumApplication, error)

SpectrumApplication mocks the SpectrumApplication method of the Cloudflare API.

func (MockClient) UpdateSpectrumApplication

func (m MockClient) UpdateSpectrumApplication(ctx context.Context, zoneID, appID string, appDetails cloudflare.SpectrumApplication) (cloudflare.SpectrumApplication, error)

UpdateSpectrumApplication mocks the UpdateSpectrumApplication method of the Cloudflare API.

Jump to

Keyboard shortcuts

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