ccu

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PurgeByUrl      PurgeTypeValue = "url"
	PurgeByCpCode   PurgeTypeValue = "cpcode"
	PurgeByCacheTag PurgeTypeValue = "tag"

	NetworkStaging    NetworkValue = "staging"
	NetworkProduction NetworkValue = "production"
)
View Source
var (
	// Config contains the Akamai OPEN Edgegrid API credentials
	// for automatic signing of requests
	Config edgegrid.Config
)

Functions

func Init

func Init(config edgegrid.Config)

Init sets the CCU edgegrid Config

Types

type NetworkValue

type NetworkValue string

type Purge

type Purge struct {
	Objects []string `json:"objects""`
}

func NewPurge

func NewPurge(objects []string) *Purge

func (*Purge) Delete

func (p *Purge) Delete(purgeByType PurgeTypeValue, network NetworkValue) (*PurgeResponse, error)

func (*Purge) Invalidate

func (p *Purge) Invalidate(purgeByType PurgeTypeValue, network NetworkValue) (*PurgeResponse, error)

type PurgeResponse

type PurgeResponse struct {
	PurgeID          string `json:"purgeId"`
	EstimatedSeconds int    `json:"estimatedSeconds"`
	HTTPStatus       int    `json:"httpStatus"`
	Detail           string `json:"detail"`
	SupportID        string `json:"supportId"`
}

type PurgeTypeValue

type PurgeTypeValue string

Jump to

Keyboard shortcuts

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