diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-10-04 09:08:55 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2012-10-04 09:08:55 +0300 |
commit | cabb35e68d34bcccaa39a223eaa037b335c81558 (patch) | |
tree | ce866d6d5104a48945ea775805b308fd33ede655 | |
parent | 11db69e6d2b292df96845515f7df0e850b60c125 (diff) | |
download | eclat-cabb35e68d34bcccaa39a223eaa037b335c81558.tar.gz eclat-cabb35e68d34bcccaa39a223eaa037b335c81558.tar.bz2 |
Improve the docs.
* README: Update.
* TODO: Update.
* src/dscrsecgrps-cl.opt: Document available filters.
-rw-r--r-- | README | 13 | ||||
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | src/dscrsecgrps-cl.opt | 24 |
3 files changed, 32 insertions, 7 deletions
@@ -14,10 +14,12 @@ and has a tiny memory footprint. So far only a small fraction of EC2 actions is implemented. The set of actions is somewhat arbitrary and reflects my needs. See the file -TODO for the detailed list of actions and their states. I will be -adding new actions as the need arises and my time permits. If you -are interested in particular action, drop me a note and I'll try -to implement it. +TODO for the detailed list of actions and their status. I will be +adding new actions as the need arises and my time permits. Given a +well established Eclat framework, implementing a new action is quiet +straightforward and simple. If you are interested in a particular +action, drop me a note and I'll try to implement it out of schedule +(see the email at the end of this document). * Documentation @@ -63,7 +65,8 @@ Once done, you can use TAB to complete a partially typed command name. * Bug reporting. -Send bug reports to <bug-eclat@gnu.org.ua>. +Send bug reports, propositions and action requests to +<bug-eclat@gnu.org.ua>. * Copyright information: @@ -92,7 +92,7 @@ DescribeReservedInstances DSCRRSRVDINSTS [ ] [ ] DescribeReservedInstancesListings DSCRRSRVDINSTSLSTS [ ] [ ] DescribeReservedInstancesOfferings DSCRRSRVDINSTSOFRS [ ] [ ] DescribeRouteTables DSCRROUTTABS [ ] [ ] -DescribeSecurityGroups DSCRSECGRPS [ ] [ ] +DescribeSecurityGroups DSCRSECGRPS [X] [ ] DescribeSnapshotAttribute DSCRSNAPATTR [ ] [ ] DescribeSnapshots DSCRSNAPS [ ] [ ] DescribeSpotDatafeedSubscription DSCRSPOTDFSSCR [ ] [ ] diff --git a/src/dscrsecgrps-cl.opt b/src/dscrsecgrps-cl.opt index 9aa657d..67f953c 100644 --- a/src/dscrsecgrps-cl.opt +++ b/src/dscrsecgrps-cl.opt @@ -21,7 +21,7 @@ OPTIONS_BEGIN("eclat describe-security-groups", [<nousage>], [<noversion>]) -OPTION(group-name,n,, +OPTION(name,n,, [<treat non-filter arguments as group names, instead of group IDs>]) BEGIN name_option = 1; @@ -29,9 +29,31 @@ END OPTIONS_END +static char *proto_str[] = { + "tcp", "udp", "icmp", "or a protocol number", NULL +}; + +static struct filter_descr filters[] = { + { "description", FILTER_STRING }, + { "group-id", FILTER_STRING }, + { "group-name", FILTER_STRING }, + { "ip-permission.cidr", FILTER_STRING }, + { "ip-permission.from-port", FILTER_STRING }, + { "ip-permission.group-name", FILTER_STRING }, + { "ip-permission.protocol", FILTER_ENUM, proto_str }, + { "ip-permission.to-port", FILTER_STRING }, + { "ip-permission.user-id", FILTER_STRING }, + { "owner-id", FILTER_STRING }, + { "tag-key", FILTER_STRING }, + { "tag-value", FILTER_STRING }, + { NULL } +}; + static void parse_options(int argc, char *argv[], int *index) { + available_filters = filters; + proginfo.print_help_hook = list_filters; GETOPT(argc, argv, *index, exit(EX_USAGE)) } |