Julien Fontanet
1a71cc9223
Implement method.resolve
...
API methods can now have some of their objects automatically fetched:
```
method.resolve = {
vm: ['vm', 'VM'],
};
```
The key is the name of the property with which the object will be
attached in the parameters dictionary, the first entry of the array is
the name of the parameter to use to fetch the object and the second
the expected type/types of the object.
Note that permissions are automatically checked via the ACLs.
2015-03-02 13:27:37 +01:00
Julien Fontanet
ed6fcf5ae7
Move ensureArray() in utils.
2015-02-27 17:31:11 +01:00
Olivier Lambert
bb31693a4d
fix array check
2015-02-27 15:00:02 +01:00
Olivier Lambert
d15c8b16f3
add NFS SR
2015-02-26 23:15:58 +01:00
Olivier Lambert
8b9c932b80
add optionnal port
2015-02-26 22:34:52 +01:00
Olivier Lambert
c10e8f5f9a
handle correctly iSCSI exists
2015-02-26 15:55:35 +01:00
Olivier Lambert
cd27e43994
iscsi target probe
2015-02-26 14:17:17 +01:00
Olivier Lambert
20614cf64b
start to work on iscsi SR
2015-02-26 13:16:44 +01:00
Julien Fontanet
c69c02bcb3
formatXml() & parseXml().
2015-02-26 12:58:27 +01:00
Julien Fontanet
21b177cbb4
Cannot use arrow function here. ( fix #44 )
2015-02-26 10:23:23 +01:00
Olivier Lambert
31a7e48768
add methods for SR: createIso, destroy and forget
2015-02-25 18:10:10 +01:00
Julien Fontanet
fd3d60ed7d
Fix vdi.migrate() & vdi.delete() parameters.
2015-02-25 17:10:08 +01:00
Julien Fontanet
e2e369a463
Cannot use arrow functions.
2015-02-25 16:08:55 +01:00
Julien Fontanet
0c3304f041
API sr.*() converted to ES6.
2015-02-25 16:07:10 +01:00
Julien Fontanet
0d4b9b4bce
Update Api code.
2015-02-24 18:28:56 +01:00
Julien Fontanet
1192bf6a87
The identifier of an object is its UUID not its ref.
2015-02-23 18:37:01 +01:00
Julien Fontanet
2366a91e8d
Shameful typo (fix consoles).
2015-02-23 17:44:46 +01:00
Julien Fontanet
2c4e46c630
Rename acl.* methods and always accept identifiers.
2015-02-19 16:28:16 +01:00
Julien Fontanet
a989e296b0
Missing file.
2015-02-19 12:54:53 +01:00
Julien Fontanet
26648dbcd2
Remove debug trace.
2015-02-19 12:46:44 +01:00
Julien Fontanet
147d759d35
Minor fixes.
2015-02-19 12:45:49 +01:00
Julien Fontanet
f6b07c5609
Remove no longer relevant comment.
2015-02-19 12:40:42 +01:00
Julien Fontanet
29fa7a053f
Minor fixes.
2015-02-19 12:40:31 +01:00
Julien Fontanet
f380f245c6
Minor fix.
2015-02-18 16:06:40 +01:00
Julien Fontanet
1824a30cde
6to5 has been renamed Babel.
2015-02-18 14:52:56 +01:00
Julien Fontanet
8ab86fd6bb
Remove unused deps.
2015-02-18 14:48:11 +01:00
Julien Fontanet
2c7bdc54c1
Minor fixes.
2015-02-18 13:35:28 +01:00
Julien Fontanet
39b57da42b
Remove a debugging trace.
2015-02-18 11:58:59 +01:00
Julien Fontanet
a98a9fd97a
Remove unused memory collection implementation.
2015-02-18 11:58:36 +01:00
Julien Fontanet
093a5c1019
Minor fixes.
2015-02-18 11:56:11 +01:00
Julien Fontanet
ba25acaab9
Redis implementation converted to ES6.
2015-02-18 11:53:51 +01:00
Julien Fontanet
9783802370
ACL model and collection.
2015-02-17 18:15:00 +01:00
Julien Fontanet
47bb02ac08
Minor fixes.
2015-02-17 18:14:32 +01:00
Julien Fontanet
1f952d81aa
API methods never return undefined.
2015-02-17 18:13:26 +01:00
Julien Fontanet
0632019e44
Collection & Model rewritten in ES6.
2015-02-17 17:01:12 +01:00
Julien Fontanet
bc14d0f580
Revert problematic changes.
2015-02-12 18:06:59 +01:00
Julien Fontanet
4bc3998010
Update EditorConfig.
2015-02-12 18:03:50 +01:00
Julien Fontanet
cd9c2d1988
Remove unused $waitEvent().
2015-02-12 16:54:50 +01:00
Julien Fontanet
5d597c22bf
Remove $fiberize in favor of $coroutine.
2015-02-12 16:52:09 +01:00
Julien Fontanet
574144f9b1
Minor fix in tests.
2015-02-12 16:01:40 +01:00
Julien Fontanet
b26bee3524
Fix tests using ES6.
2015-02-12 15:58:44 +01:00
Julien Fontanet
c835cf7829
utils: CoffeeScript → ES6.
2015-02-12 15:58:29 +01:00
Julien Fontanet
a1d819dcb6
Remove unused code.
2015-02-12 14:47:36 +01:00
Julien Fontanet
2234cc9334
Always use let instead of var in ES6.
2015-02-12 14:18:40 +01:00
Julien Fontanet
cabd1506b7
Remove unused import.
2015-02-12 13:45:29 +01:00
Julien Fontanet
a7c2e321bf
Remove incorrectly saved dep.
2015-02-12 13:45:16 +01:00
Julien Fontanet
31b75179bd
Remove unused dep.
2015-02-12 13:32:19 +01:00
Julien Fontanet
06152f3131
Use graceful-fs.
2015-02-12 12:28:06 +01:00
Julien Fontanet
c82f8c997f
Use fs-promise.
2015-02-12 12:27:48 +01:00
Julien Fontanet
f06840f4b8
Main startup file: CoffeeScript → ES6.
2015-02-12 11:54:36 +01:00