cci

command module
v0.0.0-...-3064cfb Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2017 License: MIT Imports: 18 Imported by: 0

README

CDN Cache Invalidation Tool

Go Report Card codebeat badge Build Status

Description

Tool for invalidating cache for several CDN providers.
Currently supports:

Cloudfront (AWS)
Cloudflare
Get it
go get -u github.com/artemnikitin/cci
Use it
cci -config /path/to/config
cci -config https://example.com/config.json

Parameters:

  • config specified path to config on hard drive or URL
  • debug print additional info for debug, optional
Config

Should be present as JSON file.

{
	"cloudfront" : [{
		"access_key": "AWS access key",
		"secret_key": "AWS secret key",
		"distribution_id": "Cloudfront distribution ID",
		"resources": [
			"List of files for invalidation, optional",
			"Format: /index.html or /folder/*"
		]
	},
	{
		"access_key": "AWS access key",
		"secret_key": "AWS secret key",
		"distribution_id": "Cloudfront distribution ID"
	}],
	"cloudflare" : [{
		"email": "Cloudflare email",
		"key": "Cloudflare API key",
		"zone_id": "Cloudflare Zone ID",
		"purge_all": true
	},
	{
		"email": "Cloudflare email",
		"key": "Cloudflare API key",
		"zone_id": "Cloudflare Zone ID",
		"resources": [
			"List of files for invalidation, optional",
			"Format: http://example.com/index.html"
		]
	}]
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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