sixsq.slipstream.client.api.cimi.impl-async

Provides the core, low-level functions for SCRUD actions on CIMI resources. These are details of the implementation and are not a part of the public CIMI API.

add

(add token cep resource-type data)

Creates a new CIMI resource of the given type. The data will be converted into a JSON string before being sent to the server. The data must match the schema of the resource type.

cloud-entry-point

(cloud-entry-point)(cloud-entry-point endpoint)

Retrieves the cloud entry point from the given endpoint. The cloud entry point acts as a directory of the available resources within the CIMI server. This returns a channel which will contain the cloud entry point in edn format.

create-op-url-chan

(create-op-url-chan op baseURI)

Creates a channel that extracts the operations from a collection or resource.

default-cep-endpoint

default-login-endpoint

default-logout-endpoint

delete

(delete token cep url-or-id)

Deletes the CIMI resource identified by the URL or resource id from the server.

edit

(edit token cep url-or-id data)

Updates an existing CIMI resource identified by the URL or resource id.

get

(get token cep url-or-id)

Reads the CIMI resource identified by the URL or resource id. Returns the resource as an edn data structure in a channel.

get-collection-op-url

(get-collection-op-url token cep op collection-name)

Returns the URL for the given operation and collection within a channel.

get-resource-op-url

(get-resource-op-url token cep op url-or-id)

Returns the URL for the given operation and collection within a channel.