Documentation ¶
Index ¶
- type MockClient
- func (m MockClient) CreateSpectrumApplication(ctx context.Context, zoneID string, appDetails cloudflare.SpectrumApplication) (cloudflare.SpectrumApplication, error)
- func (m MockClient) DeleteSpectrumApplication(ctx context.Context, zoneID string, applicationID string) error
- func (m MockClient) SpectrumApplication(ctx context.Context, zoneID string, applicationID string) (cloudflare.SpectrumApplication, error)
- func (m MockClient) UpdateSpectrumApplication(ctx context.Context, zoneID, appID string, ...) (cloudflare.SpectrumApplication, error)
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.
Click to show internal directories.
Click to hide internal directories.