aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-04-05 18:06:37 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2013-04-05 18:06:37 +0300
commitd19bab14d9f3e8093ea8288c08f4df5249f2801c (patch)
tree64124e0bfb195664ba5ef3562c80437091d6b0d5 /etc
parent9205135a977cacebb79df1309ef5eaab57127f06 (diff)
downloadeclat-d19bab14d9f3e8093ea8288c08f4df5249f2801c.tar.gz
eclat-d19bab14d9f3e8093ea8288c08f4df5249f2801c.tar.bz2
Implement create-image and deregister-image.
* TODO: Update. * etc/create-image.fln: New file. * etc/deregister-image.fln: New file. * etc/Makefile.am (FLNFILES): Add new files. * lib/envmap.c: New file. * lib/Makefile.am (libeclat_a_SOURCES): Add new files. * lib/libeclat.h (eclat_encode_devmap): New proto. * src/creimg-cl.opt: New file. * src/creimg.c: New file. * src/drgimg.c: New file. * src/Makefile.am: Add new files. * src/dscrimgs-cl.opt: Change short option to -u for consistency with other commands. * src/eclat.c: New commands create-image and deregister-image. * src/eclat.h (eclat_create_image) (eclat_deregister_image): New prototypes. * src/runinsts.c (encode_devmap): Move to the library.
Diffstat (limited to 'etc')
-rw-r--r--etc/Makefile.am2
-rw-r--r--etc/create-image.fln19
-rw-r--r--etc/deregister-image.fln20
3 files changed, 41 insertions, 0 deletions
diff --git a/etc/Makefile.am b/etc/Makefile.am
index d44ccfe..a8a903b 100644
--- a/etc/Makefile.am
+++ b/etc/Makefile.am
@@ -20,12 +20,14 @@ FLNFILES=\
allocate-address.fln\
attach-volume.fln\
associate-address.fln\
+ create-image.fln\
create-snapshot.fln\
create-tags.fln\
create-volume.fln\
delete-snapshot.fln\
delete-tags.fln\
delete-volume.fln\
+ deregister-image.fln\
describe-addresses.fln\
describe-availability-zones.fln\
describe-images.fln\
diff --git a/etc/create-image.fln b/etc/create-image.fln
new file mode 100644
index 0000000..938926a
--- /dev/null
+++ b/etc/create-image.fln
@@ -0,0 +1,19 @@
+/* This file is part of Eclat.
+ Copyright (C) 2013 Sergey Poznyakoff.
+
+ Eclat is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Eclat is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Eclat. If not, see <http://www.gnu.org/licenses/>. */
+
+if (.CreateImageResponse) {
+ print(.CreateImageResponse.imageId,"\n");
+}
diff --git a/etc/deregister-image.fln b/etc/deregister-image.fln
new file mode 100644
index 0000000..8ada92c
--- /dev/null
+++ b/etc/deregister-image.fln
@@ -0,0 +1,20 @@
+/* This file is part of Eclat.
+ Copyright (C) 2013 Sergey Poznyakoff.
+
+ Eclat is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ Eclat is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with Eclat. If not, see <http://www.gnu.org/licenses/>. */
+
+if (.DeregisterImageResponse.return) {
+ if (!.DeregisterImageResponse.return[true])
+ error("Return: ",.DeregisterImageResponse.return,"\n");
+}

Return to:

Send suggestions and report system problems to the System administrator.