hsakamai

Akamai API(Edgegrid and Netstorage) https://github.com/junjihashimoto/hsakamai#readme

Latest on Hackage:0.1.0.1

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Junji Hashimoto

hsakamai

Hackage version Build Status

Akamai API for Haskell.

Install

$ stack install

Usage for Netstorage

Put netstorage.yml in a local directory. The format is below.

$ cat > netstorage.yml
hostname: hostname-of-netstorage
key: secret-key
keyname: keyname
cpcode: cpcode
ssl: false

Next use netstorage command.

$ netstorage --help
Usage: netstorage COMMAND

Available options:
-h,--help                Show this help text

Available commands:
download                 download
upload                   upload
dir                      dir
stat                     stat
delete                   delete
config                   config

Usage for Fast-Purge

Put edgegrid.yml in a local directory. The format is below.

$ cat > edgegrid.yml
clientsecret: xx
hostname: xx
accesstoken: xx
clienttoken: xx

Next use purge command.

$ purge --help
Usage: purge COMMAND

Available options:
-h,--help                Show this help text

Available commands:
invalidate-url           invalidate-url
invalidate-cpcode        invalidate-cpcode
invalidate-tag           invalidate-tag
delete-url               delete-url
delete-cpcode            delete-cpcode
delete-tag               delete-tag
config                   config
$ purge invalidate-url Production https://foo.com

References

Changes

Changelog for hsakamai

Unreleased changes

comments powered byDisqus