Copyright | (c) Denis Shevchenko, 2016 |
---|---|
License | MIT |
Maintainer | me@dshevchenko.biz |
Stability | alpha |
Safe Haskell | None |
Language | Haskell2010 |
API call for work with project build's cache.
API call
:: ProjectPoint | Names of GitHub user/project. |
-> CircleCIResponse CacheCleared | Info about clearing. |
Clears build cache. Based on https://circleci.com/docs/api/#clear-cache.
Usage example:
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE LambdaCase #-} import Network.CircleCI main :: IO () main = runCircleCI (clearCache $ ProjectPoint "denisshevchenko" "circlehs") (AccountAPIToken "e64c674195bbc0dbe3f9676c6ba2whatever") >>= \case Left problem -> print problem Right isCleared -> print isCleared
Type for response
data CacheCleared Source
Cache clearing status.
module Network.CircleCI.Common.Run