storj/pkg/accounting
Michal Niewrzal f731267e8c Per-project usage limiting (#2036)
What: Changes to support custom usage limit for the project. With this implementation by default project usage limit is taken from configuration flag. If project DB field usage_limit will be set to value larger than 0 it will become custom usage limit and we will be used to verify is limit was exceeded.

Whats changed:

usage_limit (bigint) field added to projects table (with migration)
things related to project usage moved from metainfo endpoint to project usage type
accounting.ProjectAccounting extended with GetProjectUsageLimits() method
Why: We need to have different usage limits per project. https://storjlabs.atlassian.net/browse/V3-1814
2019-05-28 09:36:52 -06:00
..
live real-time tracking of space used per project (#1910) 2019-05-09 20:39:21 -05:00
rollup Refactor accountingdb interface (#1897) 2019-05-10 15:05:42 -04:00
tally Refactor accountingdb interface (#1897) 2019-05-10 15:05:42 -04:00
bucketstats.go add tests for tally and accounting db (#1675) 2019-04-09 09:48:35 -04:00
bucketusage_test.go Bucket usage info rollup table creation and implementation (#1340) 2019-03-06 17:54:48 +02:00
bucketusage.go project usage limiting (#1561) 2019-04-02 11:21:18 -07:00
common.go Move pointerdb.Service to satellite (#1826) 2019-04-25 10:46:32 +02:00
db_test.go Refactor accountingdb interface (#1897) 2019-05-10 15:05:42 -04:00
db.go Per-project usage limiting (#2036) 2019-05-28 09:36:52 -06:00
projectusage_test.go Per-project usage limiting (#2036) 2019-05-28 09:36:52 -06:00
projectusage.go Per-project usage limiting (#2036) 2019-05-28 09:36:52 -06:00