Hitoshi Mitake 253e313c09 *: support granting and revoking range
This commit adds a feature for granting and revoking range of keys,
not a single key.

Example:
$ ETCDCTL_API=3 bin/etcdctl role grant r1 readwrite k1 k3
Role r1 updated
$ ETCDCTL_API=3 bin/etcdctl role get r1
Role r1
KV Read:
        [a, b)
        [k1, k3)
        [k2, k4)
KV Write:
        [a, b)
        [k1, k3)
        [k2, k4)
$ ETCDCTL_API=3 bin/etcdctl --user u1:p get k1 k4
k1
v1
$ ETCDCTL_API=3 bin/etcdctl --user u1:p get k1 k5
Error:  etcdserver: permission denied
2016-06-08 14:58:25 -07:00
..
2016-05-12 20:51:39 -07:00
2016-05-12 20:51:39 -07:00
2016-05-12 20:51:39 -07:00
2016-05-12 20:51:39 -07:00
2016-05-13 11:29:58 -07:00
2016-05-12 20:51:39 -07:00
2016-05-12 20:51:39 -07:00
2016-06-07 10:54:50 -07:00
2016-05-12 20:51:39 -07:00