Copyright | (c) Denis Shevchenko, 2016 |
---|---|
License | MIT |
Maintainer | me@dshevchenko.biz |
Stability | alpha |
Safe Haskell | None |
Language | Haskell2010 |
API calls for work with Checkout Keys. CircleCI uses Checkout Keys to check out your GitHub project, submodules, and private dependencies.
For more info please see "Checkout SSH keys" section in your CircleCI project's Settings.
- getCheckoutKeys :: ProjectPoint -> CircleCIResponse [CheckoutKeyInfo]
- getCheckoutKey :: ProjectPoint -> Fingerprint -> CircleCIResponse CheckoutKeyInfo
- createCheckoutKey :: ProjectPoint -> CircleCIResponse CheckoutKeyInfo
- deleteCheckoutKey :: ProjectPoint -> Fingerprint -> CircleCIResponse CheckoutKeyDeleted
- newtype Fingerprint = Fingerprint Text
- data CheckoutKeyInfo = CheckoutKeyInfo {}
- data CheckoutKeyType
- data CheckoutKeyDeleted
- module Network.CircleCI.Common.Types
- module Network.CircleCI.Common.Run
API calls
:: ProjectPoint | Names of GitHub user/project. |
-> CircleCIResponse [CheckoutKeyInfo] | List of checkout keys. |
Shows list of checkout keys. Based on https://circleci.com/docs/api/#list-checkout-keys.
Usage example:
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE LambdaCase #-} import Network.CircleCI main :: IO () main = runCircleCI (getCheckoutKeys $ ProjectPoint "denisshevchenko" "circlehs") (AccountAPIToken "e64c674195bbc0d0be3ef9679b6c6ba2whatever") >>= \case Left problem -> print problem Right keysList -> print keysList
:: ProjectPoint | Names of GitHub user/project. |
-> Fingerprint | Key fingerprint. |
-> CircleCIResponse CheckoutKeyInfo | Checkout key info. |
Shows single checkout key. Based on https://circleci.com/docs/api/#get-checkout-key.
:: ProjectPoint | Names of GitHub user/project. |
-> CircleCIResponse CheckoutKeyInfo | New checkout key info. |
Creates checkout key. Based on https://circleci.com/docs/api/#new-checkout-key.
:: ProjectPoint | Names of GitHub user/project. |
-> Fingerprint | Key fingerprint. |
-> CircleCIResponse CheckoutKeyDeleted | Status of checkout key deletion. |
Deletes single checkout key. Based on https://circleci.com/docs/api/#delete-checkout-key.
Types for calls and responses
newtype Fingerprint Source
Key fingerprint. For example, "79:23:05:6a:6d:4c:cc:5c:0e:64:79:49:f0:e9:8d:a0"
.
data CheckoutKeyInfo Source
Info about checkout key.
CheckoutKeyInfo | |
|
data CheckoutKeyType Source
Type of checkout key.
GitHubDeployKey | Repo-specific SSH key. |
GitHubUserKey | User-specific SSH key. |
data CheckoutKeyDeleted Source
Checkout key deleting status.
module Network.CircleCI.Common.Run