Liking cljdoc? Tell your friends :D

monkey.ci.storage

Data storage functionality

Data storage functionality
raw docstring

->sidclj

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

create-build-metadatacljdeprecated

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

customer-sidclj

source

ext-build-sidclj

source

ext-repo-sidclj

source

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-customerclj

(find-customer s id)
source

find-details-for-webhookclj

(find-details-for-webhook s id)
source

find-paramsclj

(find-params s cust-id)
source

find-repoclj

(find-repo s [cust-id id])

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 s id)
source

find-watched-github-reposclj

(find-watched-github-repos s github-id)

Looks up all watched repos with the given github id

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

globalclj

source

global-sidclj

(global-sid type id)
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-buildsclj

(list-builds s sid)

Lists the ids of the builds for given repo sid

Lists the ids of the builds for given repo sid
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

normalize-storage-configcljmultimethod

source

params-sidclj

(params-sid customer-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-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-customerclj

(save-customer s cust)
source

save-paramsclj

(save-params s cust-id p)
source

save-repoclj

(save-repo s {:keys [customer-id id] :as r})

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-webhook-detailsclj

(save-webhook-details s details)
source

sid?clj

source

ssh-keys-sidclj

(ssh-keys-sid cust-id)
source

unwatch-github-repoclj

(unwatch-github-repo s sid)

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-repoclj

(update-repo s [cust-id repo-id] f & args)

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

(watch-github-repo s {:keys [customer-id id github-id] :as r})

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

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

× close