storj/satellite/satellitedb
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
..
dbx Per-project usage limiting (#2036) 2019-05-28 09:36:52 -06:00
satellitedbtest Optimize KnownUnreliableOrOffline SQL query (#1968) 2019-05-19 17:10:46 +02:00
testdata Per-project usage limiting (#2036) 2019-05-28 09:36:52 -06:00
apikeys.go server side macaroons (#1945) 2019-05-24 10:51:27 -06:00
bandwidthagreement.go Repair queue isolation level fix (#1466) 2019-03-14 17:12:47 -04:00
bucketusage.go Bucket usage info rollup table creation and implementation (#1340) 2019-03-06 17:54:48 +02:00
certdb.go fix saving uplink public key on satellite (#1797) 2019-04-23 15:48:57 -04:00
consoledb_test.go Console postgres tests (#1188) 2019-01-31 15:01:13 +02:00
consoledb.go ResetPassword Table and all CRUD methods. (#1916) 2019-05-13 18:53:52 +03:00
containment.go Save hash of expected share from missing audited node (#2025) 2019-05-23 16:07:19 -04:00
database.go remove unnecessary containmentDB wrapper (#2027) 2019-05-23 10:37:23 -04:00
irreparabledb.go remove utils.CombineErrors and utils.ErrorGroup (#1603) 2019-03-29 14:30:23 +02:00
locked.go Per-project usage limiting (#2036) 2019-05-28 09:36:52 -06:00
lockedtx.go ConsoleDB merge and buckets table creation (#1066) 2019-01-16 15:23:28 -05:00
migrate_postgres_test.go cover all the things (#1818) 2019-04-26 16:39:11 +03:00
migrate.go Per-project usage limiting (#2036) 2019-05-28 09:36:52 -06:00
orders.go Remove bw from tally service + query bandwidth in rollup service (#1618) 2019-04-04 11:20:59 -04:00
overlaycache.go filter duplicate node IPs (#1890) 2019-05-22 16:06:27 -04:00
projectaccounting.go Per-project usage limiting (#2036) 2019-05-28 09:36:52 -06:00
projectmembers_test.go V3-1307 combine first and last name to full name (#1569) 2019-03-27 14:33:32 +02:00
projectmembers.go fix error handling in GetByProjectID (#1604) 2019-03-29 14:55:05 +02:00
projects_test.go Console postgres tests (#1188) 2019-01-31 15:01:13 +02:00
projects.go Per-project usage limiting (#2036) 2019-05-28 09:36:52 -06:00
regtokens.go V3-1319 Add an authorization token field for account creation backend (#1492) 2019-03-19 19:55:43 +02:00
repairqueue.go using DB time only (#2018) 2019-05-21 12:50:55 -04:00
resetpasstokens.go ResetPassword Table and all CRUD methods. (#1916) 2019-05-13 18:53:52 +03:00
storagenodeaccounting.go Refactor accountingdb interface (#1897) 2019-05-10 15:05:42 -04:00
usagerollups.go Console buckets page (#1847) 2019-05-16 13:43:46 +03:00
users_test.go V3-1307 combine first and last name to full name (#1569) 2019-03-27 14:33:32 +02:00
users.go V3-1307 combine first and last name to full name (#1569) 2019-03-27 14:33:32 +02:00
utils_test.go Optimize KnownUnreliableOrOffline SQL query (#1968) 2019-05-19 17:10:46 +02:00
utils.go Optimize KnownUnreliableOrOffline SQL query (#1968) 2019-05-19 17:10:46 +02:00