cache_cloudflare

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(email string, key string, config *Configuration, settings *cache.Settings) (cache.Provider, error)

New instantiates Provider with Cloudflare email-and-key API authentication.

func NewWithAPIToken

func NewWithAPIToken(token string, config *Configuration, settings *cache.Settings) (cache.Provider, error)

NewWithAPIToken instantiates Provider with Cloudflare token API authentication.

func NewWithUserServiceKey

func NewWithUserServiceKey(key string, config *Configuration, settings *cache.Settings) (cache.Provider, error)

NewWithUserServiceKey instantiates Provider with Cloudflare user service key API authentication.

Types

type Configuration

type Configuration struct {
	Zone *string
}

Configuration holds the Cloudflare-specific cache settings.

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider implements cache.Provider for Cloudflare.

func (*Provider) DeleteObject

func (provider *Provider) DeleteObject(obj *object.Object) error

func (*Provider) Settings added in v0.0.17

func (provider *Provider) Settings() *cache.Settings

Jump to

Keyboard shortcuts

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