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 {
	MockUpdateCustomHostnameFallbackOrigin func(ctx context.Context, zoneID string, chfo cloudflare.CustomHostnameFallbackOrigin) (*cloudflare.CustomHostnameFallbackOriginResponse, error)
	MockDeleteCustomHostnameFallbackOrigin func(ctx context.Context, zoneID string) error
	MockCustomHostnameFallbackOrigin       func(ctx context.Context, zoneID string) (cloudflare.CustomHostnameFallbackOrigin, error)
}

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

func (MockClient) CustomHostnameFallbackOrigin

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

CustomHostnameFallbackOrigin mocks the CustomHostnameFallbackOrigin method of the Cloudflare API.

func (MockClient) DeleteCustomHostnameFallbackOrigin

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

DeleteCustomHostnameFallbackOrigin mocks the DeleteCustomHostnameFallbackOrigin method of the Cloudflare API.

func (MockClient) UpdateCustomHostnameFallbackOrigin

func (m MockClient) UpdateCustomHostnameFallbackOrigin(ctx context.Context, zoneID string, chfo cloudflare.CustomHostnameFallbackOrigin) (*cloudflare.CustomHostnameFallbackOriginResponse, error)

UpdateCustomHostnameFallbackOrigin mocks the UpdateCustomHostnameFallbackOrigin method of the Cloudflare API.

Jump to

Keyboard shortcuts

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