storj/satellite/accounting
Qweder93 8be655c487 satellite/metainfo: add segment limit validation, caching
We want to be able to limit the number of segments per project for users.
To limit this we need to check limit value associated with project
and value of used segments already in BeginMoveObject, BeginMoveSegment
and increment cache segments usage after each CommitSegment call.

Resolves https://github.com/storj/team-metainfo/issues/1

Change-Id: I6290e67c095a174b9d101c4521802d9bfe0453b8
2022-01-10 14:33:26 +02:00
..
live satellite/metainfo: add segment limit validation, caching 2022-01-10 14:33:26 +02:00
nodetally private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
projectbwcleanup satellite/accounting: fix as of system interval value for some tests 2021-06-29 10:16:48 +00:00
rollup satellite/{audit, accounting}: use reputation store in tests 2021-07-28 13:21:55 -04:00
rolluparchive satellites/orders: populate egress_dead in project_bandwidth_daily_rollups 2021-10-06 16:54:49 +00:00
tally satellite/accounting/tally: make tests faster 2021-09-21 17:18:37 +03:00
billing_test.go satellite: use segment count for billing 2021-10-27 19:21:50 +00:00
bucketstats.go satellite/accounting/tally: use objects iterator instead metaloop 2021-07-20 15:52:18 +00:00
bucketusage.go satellite/accounting/tally: use objects iterator instead metaloop 2021-07-20 15:52:18 +00:00
common.go all: fix error naming 2021-04-29 15:38:21 +03:00
db_test.go satellite/accounting/tally: use objects iterator instead metaloop 2021-07-20 15:52:18 +00:00
db.go satellite/metainfo: add segment limit validation, caching 2022-01-10 14:33:26 +02:00
projectlimitcache_test.go satellite/accounting: expose project segment limit 2021-12-08 11:27:21 +00:00
projectlimitcache.go satellite/accounting: expose project segment limit 2021-12-08 11:27:21 +00:00
projectusage_test.go satellite/metainfo: add segment limit validation, caching 2022-01-10 14:33:26 +02:00
projectusage.go satellite/metainfo: add segment limit validation, caching 2022-01-10 14:33:26 +02:00