hsakamai: Akamai API(Edgegrid and Netstorage)

[ bsd3, library, program, web ] [ Propose Tags ]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],
Change log ChangeLog.md
Dependencies aeson, base (>=4.7 && <5), bytestring, case-insensitive, conduit, conduit-extra, cryptonite, hsakamai, http-client, http-conduit, http-types, memory, optparse-applicative, random, text, unix, unix-time, uuid, xml-conduit, yaml [details]
License BSD-3-Clause
Copyright 2019 Junji Hashimoto
Author Junji Hashimoto
Maintainer junji.hashimoto@gmail.com
Category Web
Home page https://github.com/junjihashimoto/hsakamai#readme
Bug tracker https://github.com/junjihashimoto/hsakamai/issues
Source repo head: git clone https://github.com/junjihashimoto/hsakamai
Uploaded by junjihashimoto at 2019-03-07T09:59:30Z
Distributions NixOS:
Executables purge
Downloads 1084 total (2 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-03-07 [all 1 reports]

Readme for hsakamai-

[back to package description]


Hackage version Build Status

Akamai API for Haskell.


$ 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