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 {
	MockUpdateCustomHostnameSSL func(ctx context.Context, zoneID string, customHostnameID string, ssl cloudflare.CustomHostnameSSL) (*cloudflare.CustomHostnameResponse, error)
	MockUpdateCustomHostname    func(ctx context.Context, zoneID string, customHostnameID string, ch cloudflare.CustomHostname) (*cloudflare.CustomHostnameResponse, error)
	MockDeleteCustomHostname    func(ctx context.Context, zoneID string, customHostnameID string) error
	MockCreateCustomHostname    func(ctx context.Context, zoneID string, ch cloudflare.CustomHostname) (*cloudflare.CustomHostnameResponse, error)
	MockCustomHostname          func(ctx context.Context, zoneID string, customHostnameID string) (cloudflare.CustomHostname, error)
}

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

func (MockClient) CreateCustomHostname

func (m MockClient) CreateCustomHostname(ctx context.Context, zoneID string, ch cloudflare.CustomHostname) (*cloudflare.CustomHostnameResponse, error)

CreateCustomHostname mocks the CreateCustomHostname method of the Cloudflare API.

func (MockClient) CustomHostname

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

CustomHostname mocks the CustomHostname method of the Cloudflare API.

func (MockClient) DeleteCustomHostname

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

DeleteCustomHostname mocks the DeleteCustomHostname method of the Cloudflare API.

func (MockClient) UpdateCustomHostname

func (m MockClient) UpdateCustomHostname(ctx context.Context, zoneID string, customHostnameID string, ch cloudflare.CustomHostname) (*cloudflare.CustomHostnameResponse, error)

UpdateCustomHostname mocks the UpdateCustomHostname method of the Cloudflare API.

func (MockClient) UpdateCustomHostnameSSL

func (m MockClient) UpdateCustomHostnameSSL(ctx context.Context, zoneID string, customHostnameID string, ssl cloudflare.CustomHostnameSSL) (*cloudflare.CustomHostnameResponse, error)

UpdateCustomHostnameSSL mocks the UpdateCustomHostnameSSL method of the Cloudflare API.

Jump to

Keyboard shortcuts

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