Implement blacklist/whitelist

Change from the all/whitelist ebhavior to the blacklist/whitelist
behaviour documented in the write-up
This commit is contained in:
martinsumner 2017-07-11 11:44:01 +01:00
parent 7c86de2491
commit 80fd2615f6
5 changed files with 43 additions and 19 deletions

View file

@ -67,9 +67,17 @@
waste_retention_period :: integer(),
reload_strategy = [] :: list()}).
-record(recent_aae, {buckets :: list()|all,
% whitelist of buckets to support recent recent AAE
% or all to support all buckets
-record(recent_aae, {filter :: whitelist|blacklist,
% the buckets list should either be a
% - whitelist - specific buckets are included, and
% entries are indexed by bucket name
% - blacklist - specific buckets are excluded, and
% all other entries are indexes using the special
% $all bucket
buckets :: list(),
% whitelist or blacklist of buckets to support recent
% AAE
limit_minutes :: integer(),
% how long to retain entries the temporary index for