cfpurge

package module
v0.0.0-...-64e2ec0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 4 Imported by: 0

README

cfpurge

Simple Cloudflare purging for Golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfpurge

type Cfpurge struct {
	ApiToken     string          `yaml:"apitoken"` // Under MyProfile/API Tokens
	ZoneId       string          `yaml:"zoneid"`   // click domain that you want, on right side, Zone Id
	EmailAddress string          `yaml:"email"`    // Email address for your cloudflare account
	Api          *cloudflare.API `yaml:"-"`
}

func (*Cfpurge) Init

func (c *Cfpurge) Init(apitoken string, zoneid string, eaddr string) error

func (*Cfpurge) InitFromYaml

func (c *Cfpurge) InitFromYaml(filename string) error

func (*Cfpurge) PurgeAll

func (c *Cfpurge) PurgeAll() (cloudflare.PurgeCacheResponse, error)

func (*Cfpurge) PurgeFile

func (c *Cfpurge) PurgeFile(fn string) (cloudflare.PurgeCacheResponse, error)

func (*Cfpurge) PurgeFiles

func (c *Cfpurge) PurgeFiles(files []string) (cloudflare.PurgeCacheResponse, error)

Jump to

Keyboard shortcuts

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