Documentation ¶
Index ¶
- type MockClient
- func (m MockClient) CustomHostnameFallbackOrigin(ctx context.Context, zoneID string) (cloudflare.CustomHostnameFallbackOrigin, error)
- func (m MockClient) DeleteCustomHostnameFallbackOrigin(ctx context.Context, zoneID string) error
- func (m MockClient) UpdateCustomHostnameFallbackOrigin(ctx context.Context, zoneID string, ...) (*cloudflare.CustomHostnameFallbackOriginResponse, error)
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.
Click to show internal directories.
Click to hide internal directories.