Hitoshi Mitake 4e2b09a7ca etcdctl: an option for granting permission with key prefix
This commit adds a new option --prefix to "role grant-permission"
command. If the option is passed, the command interprets the key as a
prefix of range permission.

Example of usage:
$ ETCDCTL_API=3 bin/etcdctl --user root:p role grant-permission --prefix r1 readwrite /dir/
Role r1 updated
$ ETCDCTL_API=3 bin/etcdctl --user root:p role get r1
Role r1
KV Read:
        [/dir/, /dir0)
        [k1, k5)
KV Write:
        [/dir/, /dir0)
        [k1, k5)
$ ETCDCTL_API=3 bin/etcdctl --user u1:p put /dir/key val
OK
2016-09-14 12:54:14 +09:00
..
2016-05-12 20:51:48 -07:00
2016-05-12 20:51:48 -07:00
2016-05-12 20:51:48 -07:00
2016-08-30 20:52:33 -07:00
2016-05-12 20:51:48 -07:00
2016-05-12 20:51:48 -07:00
2016-06-20 14:29:10 -07:00
2016-06-20 14:29:10 -07:00