Documentation ¶
Index ¶
- type Cfpurge
- func (c *Cfpurge) Init(apitoken string, zoneid string, eaddr string) error
- func (c *Cfpurge) InitFromYaml(filename string) error
- func (c *Cfpurge) PurgeAll() (cloudflare.PurgeCacheResponse, error)
- func (c *Cfpurge) PurgeFile(fn string) (cloudflare.PurgeCacheResponse, error)
- func (c *Cfpurge) PurgeFiles(files []string) (cloudflare.PurgeCacheResponse, error)
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) InitFromYaml ¶
func (*Cfpurge) PurgeFiles ¶
Click to show internal directories.
Click to hide internal directories.