Oracle cloud specific functionality
Oracle cloud specific functionality
(->oci-config {:keys [credentials] :as conf})
Given a configuration map with credentials, turns it into a config map that can be passed to OCI context creators.
Given a configuration map with credentials, turns it into a config map that can be passed to OCI context creators.
(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
(group-credentials conf)
Assuming the conf is taken from env, groups all keys that start with credentials-
into the :credentials
submap.
Assuming the conf is taken from env, groups all keys that start with `credentials-` into the `:credentials` submap.
(instance-config conf)
Generates a skeleton instance configuration, generated from the oci configuration.
Generates a skeleton instance configuration, generated from the oci configuration.
(normalize-config conf k)
Normalizes the given OCI config key, by grouping the credentials both in the given key
and in the oci
key, and merging them.
Normalizes the given OCI config key, by grouping the credentials both in the given key and in the `oci` key, and merging them.
(run-instance client instance-config & [{:keys [delete?] :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.
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.
(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.
(wait-for-completion {:keys [get-details poll-interval post-event]
:as c
:or {poll-interval 5000 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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close