aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFiles
2013-04-22Minor fix.Sergey Poznyakoff1
* src/eclat.h (find_command_name): New proto.
2013-04-22Automate generation of command lists in the docs.Sergey Poznyakoff5
* src/.gitignore: Add generated *.man files. * src/Makefile.am (comtab.man,xref.man): Generate auxiliary man files for inclusion into eclat.1 * doc/.gitignore: New file. * doc/Makefile.am: Generate eclat.1 from eclat.1man by including two auxiliary files from src * doc/eclat.1: Rename to doc/eclat.1man * doc/eclat.1man: Replace the list of eclat commands and the "see also" list by the .so requests.
2013-04-20Some more fixes.Sergey Poznyakoff1
2013-04-20Implement new command - lsattr. Improve docs.Sergey Poznyakoff41
The lsattr command combines the functionality of lsiattr and lssattr.
2013-04-20Restore one more file.Sergey Poznyakoff2
2013-04-20Add back an accidentally removed file.Sergey Poznyakoff1
2013-04-20Major rewrite. Provide short names for each command.Sergey Poznyakoff76
2013-04-18Document describe-images and describe-snapshot-attribute.Sergey Poznyakoff4
2013-04-11Document create-image and deregister-imageSergey Poznyakoff32
2013-04-05Implement create-image and deregister-image.Sergey Poznyakoff15
* 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.
2013-02-15Implement DescribeImages and RunInstances.Sergey Poznyakoff15
* TODO: Update. * etc/describe-images.fln: New file. * etc/run-instances.fln: New file. * etc/Makefile.am: Add new files. * lib/q2url.c (add_param): Accept NULL values. * lib/qaddparm.c (eclat_query_add_param): Likewise. * lib/qencode.c (encode_param): Likewise. * lib/reqsign.c (eclat_query_signature): Likewise. * src/dscrimgs-cl.opt: New file. * src/dscrimgs.c: New file. * src/runinsts-cl.opt: New file. * src/runinsts.c: New file. * src/Makefile.am: Add new files. * src/eclat.c (cmdtab): Register new commands. * src/eclat.h (eclat_run_instances) (eclat_describe_images): New protos.
2013-02-09Read default options from the environment variable ECLAT_OPTIONS.Sergey Poznyakoff3
* src/cmdline.opt (process_options): Process the value of the environment variable ECLAT_OPTIONS prior to the actual command line options. * src/eclat.c (main): Update invocation of process_options. * doc/eclat.1: Update.
2013-02-09Make all tag-related subcommands accept the same set of options.Sergey Poznyakoff10
* src/dscrtags-cl.opt: New file. * src/Makefile.am (OPTFILES): Add dscrtags-cl.opt * src/cretags.c (process_tags): New parameter "require_tags". All uses updated. * src/dscrtags.c: Include dscrtags-cl.h. (eclat_describe_tags): Accept the same set of arguments as eclat_create_tags and eclat_delete_tags. * src/eclat.h (describe_query_update): New proto. * src/util.c (describe_query_update): New function. (describe_query_create): Rewrite as an entry point to describe_query_update. * doc/eclat-delete-tags.1: Update. * doc/eclat-describe-tags.1: Update * grecs: Upgrade * src/dscrsnapattr.c (eclat_modify_snapshot_attribute) (eclat_reset_snapshot_attribute): Remove unused locals.
2013-01-23Update TODO.Sergey Poznyakoff1
2013-01-23Some housekeeping.Sergey Poznyakoff2
* grecs: Updgrade. * todostat.awk: New file.
2013-01-23Implement snapshot attribute commands.Sergey Poznyakoff12
* TODO: Update. * etc/describe-snapshot-attribute.fln: New file. * etc/modify-snapshot-attribute.fln: New file. * etc/reset-snapshot-attribute.fln: New file. * etc/Makefile.am: Add new files. * src/dscrsnapattr.c: New file. * src/Makefile.am: Add new files. * src/dscrinstattr.c (list_attrs): Remove. (eclat_describe_instance_attribute): Assign available_attrs. * src/eclat.c (cmdtab): New commands: describe-snapshot-attribute, modify-snapshot-attribute, and reset-snapshot-attribute. * src/eclat.h (eclat_describe_snapshot_attribute) (eclat_modify_snapshot_attribute) (eclat_reset_snapshot_attribute): New protos. (available_attrs): New extern. (list_attrs): New function. * src/modinstattr.c (list_attrs): Rename to list_mod_attrs. * src/util.c (available_attrs): New global. (list_attrs): New function.
2013-01-23Escape backslashes in manpages.Sergey Poznyakoff1
* doc/eclat-create-tags.1: Escape \n.
2013-01-21BugfixSergey Poznyakoff1
* src/crevol.c (eclat_create_volume): Add SnapshotId parameter.
2013-01-19Update copyright years.Sergey Poznyakoff182
2013-01-19Use AM_CPPFLAGS instead of the obsolete INCLUDES.Sergey Poznyakoff3
* lib/Makefile.am: Update. * src/Makefile.am: Update. * tests/Makefile.am: Update.
2013-01-19Implement modify-instance-attributeSergey Poznyakoff10
* src/modinstattr.c: New file. * src/Makefile.am (eclat_SOURCES): add modinstattr.c * src/eclat.c (cmdtab): Add "modify-instance-attribute" * src/eclat.h (eclat_modify_instance_attribute): New proto. * TODO: Update. * doc/eclat-modify-instance-attribute.1: New file. * doc/eclat-describe-instance-attribute.1: Update. * doc/Makefile.am: Add new file. * etc/modify-instance-attribute.fln: New file. * etc/Makefile.am: Add new file.
2012-12-15Implement map lookup functions in forlan.Sergey Poznyakoff3
* lib/forlan.c: New functions "has_map" and "lookup". * lib/map.c (eclat_map_open): Don't issue error message if failed to open the map. Leave that to the caller. * src/util.c (translate_ids) (translate_resource_ids): Issue an error message if eclat_map_open fails.
2012-12-15Implement direct and reverse map lookups.Sergey Poznyakoff15
Not all maps support reverse lookups generically (for example, gdbm does not), therefore introduce a new "bidi" (bi-directional) map, which is a compound of two maps, each one used for a particular lookup direction. * lib/Makefile.am (maps): List all maps here. * lib/bidimap.c: New file. Implementation of a bi-directional map. * lib/filemap.c: Update to the changes in API. Implement reverse lookup. * lib/gdbmmap.c: Update to the changes in API. * lib/nullmap.c: Likewise. * lib/seqmap.c: Likewise. * lib/ldapmap.c: Update to the changes in API. Implement reverse lookup. New configuration keywords: reverse-filter, reverse-attr. * lib/libeclat.h (eclat_map_drv) <map_get>: Change signature, take search direction as a new argument. (eclat_map_get): Likewise. (eclat_map) <eclat_map_bad_dir>: New status code. (MAP_DIR, MAP_REV): New macros. (eclat_map_name_split): New function. (eclat_map_drv_bidi): New extern. * lib/map.c (eclat_map_get): Change signature, take search direction as a new argument. Pass new keyword to the "key" translation: "dir". (eclat_map_strerror): Handle new status code. (eclat_map_name_split): New function. * src/eclat.c (main): Register eclat_map_drv_bidi. * src/util.c (translate_ids): Use eclat_map_name_split to obtain direction code from the map name. (translate_resource_ids): Use direct lookups. * tests/Makefile.am: Add new testcases. * tests/testsuite.at: Likewise. * tests/bidimap.at: New testcase. * tests/filemap.at: Test reverse lookups.
2012-12-15BugfixSergey Poznyakoff1
* src/cretags-cl.opt: Expect colon as a separator between the map id and symbolic name (-r option).
2012-12-11Document attach-volume and detach-volumeSergey Poznyakoff5
* TODO: Update. * doc/Makefile.am: Add new files. * doc/eclat-attach-volume.1: New file. * doc/eclat-detach-volume.1: New file. * doc/eclat.1: Mention attach-volume and detach-volume.
2012-12-11Accept both Eclat command names and EC2 action names in format statements.Sergey Poznyakoff3
* src/util.c (eclat_actcmp): New function. * src/eclat.h (eclat_actcmp): New proto. * src/eclat.c (find_command_tag): Use eclat_actcmp.
2012-12-11Change handler invocation.Sergey Poznyakoff26
* src/eclat.c: Initialize query in main and pass it to each handler along with the curl pointer in a "runtime environment" structure. If the handler returns 0, send that query to the endpoint (from main, again). This avoids duplication of code. Reserve a CMD_NOQRY flag for commands that are supposed to do everything by themselves. Use command->tag member as the Action parameter. * src/eclat.h (eclat_command_env): New structure. Change all handler prototypes. * src/util.c (describe_query_create): Take a pointer to eclat_command_env_t as the first argument. Assume that the query structure is already initialized. The "verb" argument becomes superfluous and is removed. All uses changed. * src/allocaddr.c: Update. * src/asscaddr.c: Update. * src/attvol.c: Update. * src/cresnap.c: Update. * src/cretags.c: Update. * src/crevol.c: Update. * src/delsnap.c: Update. * src/delvol.c: Update. * src/detvol.c: Update. * src/disassaddr.c: Update. * src/dscraddrs.c: Update. * src/dscrazs.c: Update. * src/dscrinstattr.c: Update. * src/dscrinsts.c: Update. * src/dscrinststat.c: Update. * src/dscrregs.c: Update. * src/dscrsecgrps.c: Update. * src/dscrsnap.c: Update. * src/dscrtags.c: Update. * src/dscrvols.c: Update. * src/getconout.c: Update. * src/reladdr.c: Update. * src/startinst.c: Update.
2012-12-10Implement attach-volume and detach-volumeSergey Poznyakoff11
* TODO: Update * etc/attach-volume.fln: New file. * etc/detach-volume.fln: New file. * etc/Makefile.am: Add new files. * src/attvol.c: New file. * src/detvol-cl.opt: New file. * src/detvol.c: New file. * src/Makefile.am: Add new files. * src/eclat.c: Add new commands. * src/eclat.h: Add new protos. * src/util.c (translate_ids) (translate_resource_ids): Do nothing id argc is 0.
2012-12-07Re-implement confirmation support.Sergey Poznyakoff16
* doc/eclat-delete-volume.1: Update. * doc/eclat-release-address.1: Update. * doc/eclat.1: Update. * doc/eclat.conf.5: New section "CONFIRMATION" * lib/getyn.c (eclat_vgetyn): Negative default stands for no default at all. * lib/confirm.c (eclat_confirm_mode): Remove. (eclat_confirm): Change signature. Act according to the first argument. * lib/libeclat.h (eclat_confirm_mode): New enum. (eclat_confirm): Change signature. * src/cmdline.opt: Change handling of -Y and -N options. * src/config.c: New statement "confirm". * src/cretags.c: Remove call to eclat_confirm. This is done by the caller. * src/delvol.c: Likewise. * src/reladdr.c: Likewise. * src/eclat.c (confirm_mode): New variable. (command) <flags>: New member. (cmdtab): Mark commands with appropriate flags. (main): Call eclat_confirm to confirm the command. * src/eclat.h (confirm_mode): New extern. (set_command_confirmation): New proto. * etc/eclat.cfin: Set a reasonably safe confirmation default. * lib/forlan.c (strtots): Remove unused variable.
2012-12-06Minor fix.Sergey Poznyakoff1
2012-12-06Implement create-volume and delete-volume commands.Sergey Poznyakoff15
* doc/eclat-create-volume.1: New file. * doc/eclat-delete-volume.1: New file. * doc/Makefile.am: Add new files. * doc/eclat.1: Mention new commands. * etc/create-volume.fln: New file. * etc/delete-volume.fln: New file. * etc/Makefile.am: Add new files. * src/crevol-cl.opt: New file. * src/crevol.c: New file. * src/delvol.c: New file. * src/Makefile.am: Add new files. * src/eclat.c: Register new commands. * src/eclat.h (eclat_create_volume) (eclat_delete_volume): New protos. * TODO: Update.
2012-12-06Add missing file.Sergey Poznyakoff2
2012-12-06Implement the describe-regions command.Sergey Poznyakoff11
* TODO: Update. * doc/Makefile.am: Add new files. * doc/eclat-describe-availability-zones.1: Mention describe-regions. * doc/eclat-describe-regions.1: New file. * doc/tmpl.1: Fix time-stamp-start setting. * etc/Makefile.am: Add new files. * etc/describe-regions.fln: New file. * src/Makefile.am: Add new files. * src/dscrregs.c: New file. * src/eclat.c: Register describe-regions. * src/eclat.h (eclat_describe_regions): New proto.
2012-12-06Implement describe-availability-zonesSergey Poznyakoff11
* TODO: Update. * doc/Makefile.am: Add new files. * doc/eclat-describe-availability-zones.1: New file. * doc/eclat.1: Mention describe-availability-zones. * src/Makefile.am: Add new files. * src/dscrazs.c: New file. * src/eclat.c: Register the describe-availability-zones command. * src/eclat.h (eclat_describe_availability_zones): New proto. * tests/describe-availability-zones.at: New file. * tests/Makefile.am: Add new file. * tests/testsuite.at: Include new test.
2012-12-05Merge branch 'master' of ssh://gray@git.gnu.org.ua/gitroot/eclatSergey Poznyakoff1
2012-12-05Implement release-address.Sergey Poznyakoff20
* TODO: Update. * doc/Makefile.am: Add new files. * doc/eclat-allocate-address.1: New file. * doc/eclat-release-address.1: New file. * doc/eclat-associate-address.1: Update. * doc/eclat-describe-addresses.1: Update. * doc/eclat-disassociate-address.1: Update. * doc/eclat.1: Update. * etc/Makefile.am: Add new files. * etc/release-address.fln: New file. * lib/Makefile.am: Add new files. * lib/confirm.c: New file. * lib/getyn.c: New file. * lib/libeclat.h (eclat_getyn,eclat_vgetyn) (eclat_confirm): New protos. (eclat_confirm_mode): New extern. * src/Makefile.am: Add new files. * src/cmdline.opt: New options -Y (--yes) and -N (--no). * src/eclat.c: Register the release-address command. * src/eclat.h (EX_CANCELLED): New constant. (eclat_release_address): New proto. * src/reladdr-cl.opt: New file. * src/reladdr.c: New file.
2012-12-05Fix time-stamp-start settings in manpages.Sergey Poznyakoff19
2012-12-05Implement allocate-address command.Sergey Poznyakoff13
* etc/Makefile.am: Add new files. * etc/allocate-address.fln: new file. * src/Makefile.am: Add new files. * src/allocaddr-cl.opt: New file. * src/allocaddr.c: New file. * src/eclat.c (): Add allocate-address. * src/eclat.h (eclat_allocate_address): New command. * tests/Makefile.am: Add new files. * tests/allocate-address.at: New file. * tests/testsuite.at: Include allocate-address.at * TODO: Update. * doc/eclat-create-tags.1: New file. * doc/eclat.1: Update. * doc/eclat-create-tags.1: Minor fix.
2012-10-23Version 0.1Sergey Poznyakoff1
2012-10-22Fixes in documentation.Sergey Poznyakoff6
2012-10-18Document all commands implemented so far.Sergey Poznyakoff7
* TODO: Update. * doc/Makefile.am: Update. * doc/eclat-describe-instance-status.1: New file. * doc/eclat-describe-security-groups.1: New file. * doc/eclat-describe-volumes.1: New file. * src/dscrsecgrps-cl.opt: Fix documentation. * src/dscrvols.c: Accept volume IDs in the command line.
2012-10-17Improve documentation.Sergey Poznyakoff4
* doc/eclat-describe-instance-attribute.1: New file. * doc/eclat-describe-instances.1: New file. * TODO: Update. * doc/Makefile.am: Update.
2012-10-16Provide configuration statements for SSL control.Sergey Poznyakoff5
* doc/eclat.conf.5: Document new configuration statements. * src/cmdline.opt (replvar): Change structure. (replace_int_var): New function. * src/config.c: Use "ssl" as a block or scalar statement. * src/eclat.c (ssl_verify_peer, ssl_ca_file) (ssl_ca_path): New variables. (main): Set up SSL configuration. * src/eclat.h (ssl_verify_peer, ssl_ca_file) (ssl_ca_path): New protos.
2012-10-16Provide an option to read tags from file (for create-tags and delete-tags).Sergey Poznyakoff4
* doc/eclat-create-tags.1: Document new options. * doc/eclat-delete-tags.1: Likewise. * src/cretags-cl.opt: New option --from-file (-T). * src/cretags.c (process_tags): Read tags from file, if supplied.
2012-10-16Improve documentation.Sergey Poznyakoff8
* TODO: Update. * doc/Makefile.am: Update. * doc/eclat-describe-addresses.1: New file. * doc/eclat-create-tags.1: Fix extra prefix in command synopsis. * doc/eclat-delete-tags.1: Likewise. * doc/eclat-describe-tags.1: Likewise. * doc/eclat-tmpl.1: Likewise. * src/eclat.c: Sort options.
2012-10-15Document tag manipulation commands.Sergey Poznyakoff5
2012-10-15Improve manpages.Sergey Poznyakoff13
2012-10-15Document snapshot commands.Sergey Poznyakoff6
2012-10-15Add testcases for snapshot-management commands.Sergey Poznyakoff4
* tests/delete-snapshot.at: New file. * tests/describe-snapshots.at: New file. * tests/Makefile.am: Add new files. * tests/testsuite.at: Likewise.
2012-10-14Improve the sort function.Sergey Poznyakoff11
* grecs: Upgrade. * lib/forlan.c (strtots): New function. (func_sort): Rewrite. The "sort" built-in takes two optional arguments: a path to the node to use as a key, and a string of flags that set the comparison function and sorting order. * lib/forlangrm.y: Bugfix in argument verification code. * src/dscrsnap-cl.opt: Document filters. * tests/sortnum.at: New file. * tests/sortrevnum.at: New file. * tests/sortstring.at: New file. * tests/sortts.at: New file. * tests/Makefile.am: Add new test cases. * tests/testsuite.at: Likewise.

Return to:

Send suggestions and report system problems to the System administrator.