Liking cljdoc? Tell your friends :D
Clojure only.

monkey.ci.storage

Data storage functionality. Next to basic storage implementations, this ns also contains a lot of functions for working with storage entities. Many of these are overridden by implementation-specific functions, and so implementations here don't focus on efficiency. They are merely used in tests.

Data storage functionality.  Next to basic storage implementations, this ns also contains
a lot of functions for working with storage entities.  Many of these are overridden by
implementation-specific functions, and so implementations here don't focus on efficiency.
They are merely used in tests.
raw docstring

->sidclj

source

bb-webhook-sidclj

source

bb-webhooksclj

source

build-exists?clj

(build-exists? s sid)

Checks efficiently if the build exists. This is cheaper than trying to fetch it and checking if the result is nil.

Checks efficiently if the build exists.  This is cheaper than trying to fetch it
and checking if the result is `nil`.
sourceraw docstring

build-metadata-sidcljdeprecated

source

build-results-sidcljdeprecated

source

build-sidclj

source

build-sid-keysclj

source

buildsclj

source

calc-available-creditsclj

Calculates the available credits for the customer. Basically this is the amount of provisioned credits, substracted by the consumed credits.

Calculates the available credits for the customer.  Basically this is the
amount of provisioned credits, substracted by the consumed credits.
sourceraw docstring

create-build-metadatacljdeprecated

(create-build-metadata s md)
(create-build-metadata s sid md)
source

credit-cons-sidclj

(credit-cons-sid & parts)
source

credit-consumptionsclj

source

credit-sub-sidclj

(credit-sub-sid & parts)
source

credit-subscriptionsclj

source

customer-credit-sidclj

source

customer-creditsclj

source

customer-sidclj

source

delete-email-registrationclj

(delete-email-registration s id)
source

delete-join-requestclj

source

delete-paramclj

Deletes a single parameter set by sid

Deletes a single parameter set by sid
sourceraw docstring

delete-repoclj

Deletes repository with given sid, including all builds

Deletes repository with given sid, including all builds
sourceraw docstring

delete-webhookclj

(delete-webhook s id)
source

email-registration-sidclj

source

email-registrationsclj

source

ext-build-sidclj

source

ext-repo-sidclj

source

find-bb-webhookclj

(find-bb-webhook s id)
source

find-bb-webhook-for-webhookclj

Retrieves bitbucket webhook given an internal webhook id

Retrieves bitbucket webhook given an internal webhook id
sourceraw docstring

find-buildclj

(find-build s sid)

Finds build by sid

Finds build by sid
sourceraw docstring

find-build-metadatacljdeprecated

(find-build-metadata s sid)

Reads the build metadata given the build coordinates (required to build the path)

Reads the build metadata given the build coordinates (required to build the path)
sourceraw docstring

find-build-resultscljdeprecated

(find-build-results s sid)

Reads the build results given the build coordinates

Reads the build results given the build coordinates
sourceraw docstring

find-credit-consumptionclj

(find-credit-consumption s sid)
source

find-credit-subscriptionclj

(find-credit-subscription s sid)
source

find-customerclj

(find-customer s id)
source

find-customer-creditclj

(find-customer-credit s id)
source

find-details-for-webhookcljdeprecated

source

find-email-registrationclj

(find-email-registration s id)
source

find-email-registration-by-emailclj

source

find-join-requestclj

source

find-latest-buildclj

Retrieves the latest build for the repo

Retrieves the latest build for the repo
sourceraw docstring

find-next-build-idxclj

Retrieves the next integer build index to use. This is supposed to be the highest build index + 1.

Retrieves the next integer build index to use.  This is supposed to be the highest
build index + 1.
sourceraw docstring

find-paramclj

Retrieves a single parameter by sid

Retrieves a single parameter by sid
sourceraw docstring

find-paramsclj

(find-params s cust-id)
source

find-repoclj

Reads the repo, as part of the customer object's projects

Reads the repo, as part of the customer object's projects
sourceraw docstring

find-ssh-keysclj

(find-ssh-keys s cust-id)
source

find-userclj

Find user by cuid

Find user by cuid
sourceraw docstring

find-user-by-typeclj

Find user by type id (e.g. github)

Find user by type id (e.g. github)
sourceraw docstring

find-watched-github-reposclj

Looks up all watched repos with the given github id

Looks up all watched repos with the given github id
sourceraw docstring

find-webhookclj

(find-webhook s id)
source

find-webhooks-for-repoclj

source

globalclj

source

global-sidclj

(global-sid type)
(global-sid type id)
source

join-request-sidclj

source

join-requestsclj

source

legacy-build-exists?clj

(legacy-build-exists? s sid)

Similar to build-exists? but for legacy builds that consist of metadata and result entities.

Similar to `build-exists?` but for legacy builds that consist of metadata and 
result entities.
sourceraw docstring

list-active-credit-subscriptionsclj

Lists all active credit subscriptions at given timestamp

Lists all active credit subscriptions at given timestamp
sourceraw docstring

list-available-creditsclj

Lists all available customer credits. These are the credits that have not been fully consumed, i.e. the difference between the amount and the sum of all consumptions linked to the credit is positive.

Lists all available customer credits.  These are the credits that have not been fully
consumed, i.e. the difference between the amount and the sum of all consumptions linked
to the credit is positive.
sourceraw docstring

list-build-idsclj

(list-build-ids s sid)

Lists the ids of the builds for given repo sid

Lists the ids of the builds for given repo sid
sourceraw docstring

list-buildsclj

Lists all builds for the repo, and fetches the build details, similar to find-build but does not contain the job details.

Lists all builds for the repo, and fetches the build details, similar to `find-build`
but does not contain the job details.
sourceraw docstring

list-builds-sinceclj

Retrieves all builds for customer since the given timestamp

Retrieves all builds for customer since the given timestamp
sourceraw docstring

list-customer-credit-consumptionsclj

source

list-customer-credit-consumptions-sinceclj

source

list-customer-credit-subscriptionsclj

source

list-customer-credits-sinceclj

Lists all customer credits for the customer since given timestamp.
This includes those without a from-time.

Lists all customer credits for the customer since given timestamp.  
This includes those without a `from-time`.
sourceraw docstring

list-customer-join-requestsclj

Retrieves all customer join requests for that customer

Retrieves all customer join requests for that customer
sourceraw docstring

list-email-registrationsclj

source

list-repo-display-idsclj

Lists all display ids for the repos for given customer

Lists all display ids for the repos for given customer
sourceraw docstring

list-user-customersclj

source

list-user-join-requestsclj

Retrieves all customer join requests for that user

Retrieves all customer join requests for that user
sourceraw docstring

make-memory-storageclj

(make-memory-storage)
source

make-storagecljmultimethod

source

new-idclj

Generates a new random id

Generates a new random id
sourceraw docstring

params-sidclj

(params-sid customer-id & [param-id])
source

patch-build-resultscljdeprecated

(patch-build-results st sid f & args)

Finds the build result with given sid, then applies f to it with arguments and saves the return value back into the result.

Finds the build result with given sid, then applies `f` to it with arguments
and saves the return value back into the result.
sourceraw docstring

save-bb-webhookclj

(save-bb-webhook s wh)

Stores bitbucket webhook information. This links a Bitbucket native webhook uuid to a MonkeyCI webhook.

Stores bitbucket webhook information.  This links a Bitbucket native webhook uuid
to a MonkeyCI webhook.
sourceraw docstring

save-buildclj

(save-build s build)

Creates or updates the build entity

Creates or updates the build entity
sourceraw docstring

save-build-resultscljdeprecated

(save-build-results s sid r)
source

save-credit-consumptionclj

(save-credit-consumption s cs)
source

save-credit-subscriptionclj

(save-credit-subscription s cs)
source

save-customerclj

(save-customer s cust)
source

save-customer-creditclj

(save-customer-credit s cred)
source

save-email-registrationclj

(save-email-registration s reg)
source

save-join-requestclj

source

save-paramclj

Saves a single customer parameter

Saves a single customer parameter
sourceraw docstring

save-paramsclj

(save-params s cust-id p)

Saves all customer parameters at once

Saves all customer parameters at once
sourceraw docstring

save-repoclj

Saves the repository by updating the customer it belongs to

Saves the repository by updating the customer it belongs to
sourceraw docstring

save-ssh-keysclj

(save-ssh-keys s cust-id key)
source

save-userclj

(save-user s u)
source

save-webhookclj

(save-webhook s details)
source

save-webhook-detailscljdeprecated

source

search-bb-webhooksclj

Retrieves bitbucket webhook that match given filter, and adds customer and repo ids.

Retrieves bitbucket webhook that match given filter, and adds customer and repo ids.
sourceraw docstring

search-customersclj

Searches customers using given filter

Searches customers using given filter
sourceraw docstring

sid?clj

source

ssh-keys-sidclj

(ssh-keys-sid cust-id)
source

transactclj

(transact st f)
source

unwatch-github-repoclj

Removes the records to stop watching the repo. The entity will still exist, so any past builds can be looked up.

Removes the records to stop watching the repo.  The entity will still 
exist, so any past builds can be looked up.
sourceraw docstring

update-buildclj

Atomically updates build by retrieving it, applying f to it, and then saving it back

Atomically updates build by retrieving it, applying `f` to it, and then saving it back
sourceraw docstring

update-repoclj

Applies f to the repo with given sid

Applies `f` to the repo with given sid
sourceraw docstring

user->sidclj

source

user-sidclj

(user-sid [type id])
source

usersclj

source

watch-github-repoclj

Creates necessary records to start watching a github repo. Creates the repo entity and returns it.

Creates necessary records to start watching a github repo.  Creates the
repo entity and returns it.
sourceraw docstring

watched-sidclj

source

webhook-sidclj

source

with-transactioncljmacro

(with-transaction st conn & body)

Runs body in transaction by binding a transactional storage object to conn. If the storage implementation does not support transactions, this just invokes the body while binding the original storage to conn.

Runs body in transaction by binding a transactional storage object to `conn`.
If the storage implementation does not support transactions, this just invokes
the body while binding the original storage to `conn`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close