aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2012-10-04 09:08:55 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2012-10-04 09:08:55 +0300
commitcabb35e68d34bcccaa39a223eaa037b335c81558 (patch)
treece866d6d5104a48945ea775805b308fd33ede655
parent11db69e6d2b292df96845515f7df0e850b60c125 (diff)
downloadeclat-cabb35e68d34bcccaa39a223eaa037b335c81558.tar.gz
eclat-cabb35e68d34bcccaa39a223eaa037b335c81558.tar.bz2
Improve the docs.
* README: Update. * TODO: Update. * src/dscrsecgrps-cl.opt: Document available filters.
-rw-r--r--README13
-rw-r--r--TODO2
-rw-r--r--src/dscrsecgrps-cl.opt24
3 files changed, 32 insertions, 7 deletions
diff --git a/README b/README
index 0955f00..01696a8 100644
--- a/README
+++ b/README
@@ -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:
diff --git a/TODO b/TODO
index 6236ab2..05f1ef2 100644
--- a/TODO
+++ b/TODO
@@ -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))
}

Return to:

Send suggestions and report system problems to the System administrator.