Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheService ¶
type CacheService interface {
Purge(ctx context.Context, params cache.CachePurgeParams, opts ...option.RequestOption) (*cache.CachePurgeResponse, error)
}
CacheService defines the interface for Cloudflare cache service operations
type Client ¶
type Client struct {
CacheService CacheService
ZoneID string
}
Client is a werapper around the Cloudflare Go SDK client
type Config ¶
type Config struct {
APIToken string `envconfig:"CLOUDFLARE_API_TOKEN"`
ZoneID string `envconfig:"CLOUDFLARE_ZONE_ID"`
BaseURL string `envconfig:"CLOUDFLARE_BASE_URL"`
}
Config holds configuration details for Cloudflare API access
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
NewDefaultConfig returns a Config struct with default test values. This is compatible with dis-cloudflare-stub: https://github.com/ONSdigital/dp-compose/tree/main/v2/stubs/dis-cloudflare-stub
Click to show internal directories.
Click to hide internal directories.