Documentation ¶
Index ¶
- type MockClient
- func (m MockClient) CreateCustomHostname(ctx context.Context, zoneID string, ch cloudflare.CustomHostname) (*cloudflare.CustomHostnameResponse, error)
- func (m MockClient) CustomHostname(ctx context.Context, zoneID string, customHostnameID string) (cloudflare.CustomHostname, error)
- func (m MockClient) DeleteCustomHostname(ctx context.Context, zoneID string, customHostnameID string) error
- func (m MockClient) UpdateCustomHostname(ctx context.Context, zoneID string, customHostnameID string, ...) (*cloudflare.CustomHostnameResponse, error)
- func (m MockClient) UpdateCustomHostnameSSL(ctx context.Context, zoneID string, customHostnameID string, ...) (*cloudflare.CustomHostnameResponse, error)
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.
Click to show internal directories.
Click to hide internal directories.