exoscale.compute.api.payload

Functions to work with appropriate cloudstack payloads.

build-payload

(build-payload config opcode params)(build-payload {:keys [api-key api-secret ttl]} params)

Build a signed payload for a given config, opcode and args triplet

query-args

(query-args params)

Build arguments, ready to be signed.

quote-plus

(quote-plus s)

Replace + in encoded URL by %20

sanitize-lists

(sanitize-lists params)

serialize-pair

(serialize-pair [k v])

Encode a key/value pair

sign

(sign query api-secret)

Sign the given query

stringify

(stringify x)

transform-arg

(transform-arg [k v])

Transform argument into a list of key/value pairs.

transform-maps

(transform-maps param maps)

For a list of maps, produce the expected key/value pairs.

url-encode

(url-encode s)

Encode URL