Oracle cloud specific functionality
Oracle cloud specific functionality
(base-work-dir build)
Determines the base work dir to use inside the container
Determines the base work dir to use inside the container
(checkout-subdir n)
Returns the path for n
as a subdir of the checkout dir
Returns the path for `n` as a subdir of the checkout dir
(config-entry n v)
Creates an entry config for a volume, where the contents are base64 encoded.
Creates an entry config for a volume, where the contents are base64 encoded.
(find-mount c n)
Finds mount with given volume name in the container
Finds mount with given volume name in the container
(find-volume ci n)
Finds volume with given name in the container instance
Finds volume with given name in the container instance
(get-full-instance-details client id)
Retrieves full container instance details by retrieving the container instance information, and fetching container details as well.
Retrieves full container instance details by retrieving the container instance information, and fetching container details as well.
(instance-config conf)
Generates a skeleton instance configuration, generated from the oci configuration.
Generates a skeleton instance configuration, generated from the oci configuration.
(poll-for-completion {:keys [get-details poll-interval post-event instance-id]
:as c
:or {poll-interval 10000 post-event (constantly true)}})
Starts an async poll loop that waits until the container instance has completed. Returns a deferred that holds the last response received.
Starts an async poll loop that waits until the container instance has completed. Returns a deferred that holds the last response received.
(run-instance client instance-config & [{:keys [delete? exited?] :as opts}])
Creates and starts a container instance using the given config, and then waits for it to terminate. Returns a deferred that will hold the full container instance state on completion, including the container details.
The exited?
option should be a function that accepts the instance id and returns
a deferred with the container instance status when it exits. If not provided, a
basic polling loop will be used. Not that using extensive polling may lead to 429
errors from OCI.
Creates and starts a container instance using the given config, and then waits for it to terminate. Returns a deferred that will hold the full container instance state on completion, including the container details. The `exited?` option should be a function that accepts the instance id and returns a deferred with the container instance status when it exits. If not provided, a basic polling loop will be used. Not that using extensive polling may lead to 429 errors from OCI.
(stream-to-bucket conf in)
Pipes an input stream to a bucket object using multipart uploads. Returns a deferred that will resolve when the upload completes. That is, when the input stream closes, or an error occurs.
Pipes an input stream to a bucket object using multipart uploads. Returns a deferred that will resolve when the upload completes. That is, when the input stream closes, or an error occurs.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close