GitXplorerGitXplorer
a

cci

public
1 stars
0 forks
2 issues

Commits

List of commits on branch master.
Unverified
3064cfb71038d9cb0816d8f7f48ce1900c9dd3a1

Update TravisCI config

aartemnikitin committed 7 years ago
Unverified
236b2331160d2684c21eb91384e74fc3cb30f49e

Add new dependencies to vendor

aartemnikitin committed 7 years ago
Unverified
9e19b3a54d9dc13eab7dc4e8f6238c08efe98117

Switch to dep for dependencies management

aartemnikitin committed 7 years ago
Unverified
84cba5fb8a41e7677ea4a023449bc6d78161c55f

Increase timeout for HTTP client

aartemnikitin committed 7 years ago
Unverified
39338726dcac4628b8df3af4560ad2126d207e08

Update Travis CI config

aartemnikitin committed 7 years ago
Unverified
7e26b82c1a1361e9de07a08edf409a0aba87020c

Update Travis CI config

aartemnikitin committed 8 years ago

README

The README file for this repository.

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"
		]
	}]
}