Egon Elbre
dc0f7b5f77
storagenode,web/storagenode: use go:embed for assets
...
Go can now directly embed files without relying on external tools.
This makes code use go:embed and avoid the external tooling.
go:embed requires files to be present in the embedded directory,
hence we need to add .keep to "dist" folder. We also add one to
public/.keep, such that it won't be deleted when building storagenode.
Change-Id: I8bef81236be6829ed37ed4c16ef693677b93a631
2022-03-11 16:01:28 +02:00
Egon Elbre
5f7ea1358d
private/web: make caching headers reusable
...
Move storagnode/console caching headers to private/web. Also,
start using them in multinode/console/server.
Change-Id: I1f0f3c9833a183476009737cece515ae7537fb83
2022-03-11 11:19:11 +02:00
Egon Elbre
10372afbe4
ci: fix lint errors
...
Change-Id: Ib5893440807811f77175ccd347aa3f8ca9cccbdf
2021-05-17 13:37:31 +00:00
Egon Elbre
961e841bd7
all: fix error naming
...
errs.Class should not contain "error" in the name, since that causes a
lot of stutter in the error logs. As an example a log line could end up
looking like:
ERROR node stats service error: satellitedbs error: node stats database error: no rows
Whereas something like:
ERROR nodestats service: satellitedbs: nodestatsdb: no rows
Would contain all the necessary information without the stutter.
Change-Id: I7b7cb7e592ebab4bcfadc1eef11122584d2b20e0
2021-04-29 15:38:21 +03:00
Qweder93
6ba8f6c8a9
storanode, satellite: payout renamed to payouts, expected estimation payouts added, console api for audits reworked
...
Change-Id: I4aa5e99bffaa87d0a800a429a4c83aa498ad4b7b
2021-01-18 10:56:03 +00:00
Qweder93
8182fdad0b
storagenode: heldamount renamed to payouts, renamed some methods and structs to more meaningful names. grouped estimated payout with pathouts
...
satellite: heldamount renamed to SNOpayouts.
Change-Id: I244b4d2454e0621f4b8e22d3c0d3e602c0bbcb02
2020-09-16 14:57:35 +00:00
Qweder93
f531bc8638
storagenode/heldamount payout-history rout fix, usage_at_rest in estimation payout calculations fixed
...
Change-Id: I6f819a404a45b2a96c1aae33c67ebea1ab83aef0
2020-07-24 15:19:45 +00:00
Qweder93
7b4a8c4d6d
storagenode/heldamount: payoutHistory added
...
Change-Id: I93dd3d024085d19ecff76075e52bf66796207fd6
2020-07-14 17:35:03 +03:00
Qweder93
73214c6d1c
storagenode/heldamount: heldhistory reworked to all satellites
...
Change-Id: I8d7707fddfbdc52d29951a8a002978c7fbb07049
2020-05-28 11:44:26 +00:00
Qweder93
8db848791f
storagenode/console: added estimated payout for current month and estimated pay stub for previous month (until there's real data in satellite's table) + heldback percentage rate for previous month.
...
Change-Id: I9346f6d22ed6fbb7e5346b102fc898467678f384
2020-05-27 14:51:23 +03:00
crawter
2c9afe7f17
storagenode/console/api/helamount: periods with heldamount data endpoint added
...
Change-Id: Ie893f56f02c7a76bcfc21c32c10bd1f1d05660e7
2020-05-20 11:45:06 +00:00
Qweder93
16cd9b06ec
storagenode/heldamount: added api for heldamount history separated by periods
...
Change-Id: I170010364269822848bc6cd051e0e0fb3df95d91
2020-05-05 12:29:44 +00:00
Qweder93
805e328c47
storagenode/heldamount payments removed
...
Change-Id: I87cc04f43d182a4190a571ef417be85d02db9d34
2020-04-21 17:15:31 +00:00
Egon Elbre
a129a8bd35
all: separate err check for http
...
We want to avoid net/http dependency in errs2 package, hence we removed
http.ErrServerClosed from IgnoreCanceled and IsCanceled check. Now we
need to add that check explicitly to every http endpoint.
Change-Id: I62b1cc0a0a2d3b43301d713a7951e5022145f88f
2020-04-16 18:50:24 +03:00
Michal Niewrzal
fe2340285f
storagenode/console/consoleserver: fix TestConsole tests
...
https://storjlabs.atlassian.net/browse/SG-145
Change-Id: Idee6050cea5fd53ec631a7c64fb18f1ad7f16af0
2020-04-02 13:17:04 +00:00
crawter
f879bfcf70
storagenode/console/server/heldamount - endpoint tests added
...
Change-Id: I4a324e808fd18e55bad28c1cce2ea90c41dc659e
2020-03-26 15:50:33 +00:00
Qweder93
8597e6b512
storagenode/console/api period payment api extended
...
Change-Id: I18ec331c6a684e3a9351e3c917bacdb8b8f18c28
2020-03-19 16:51:31 +02:00
crawter
fde5c3542b
storagenode/console/api: period payStub api extended
...
Change-Id: I624bbf7a9640f9df97789bea109201cbfb556753
2020-03-19 14:42:02 +02:00
crawter
f12b6dc27e
storagenode/console/api: monthly payStub api extended
...
Change-Id: I816aeb01ea1338372e3a5f07a11dfdc0ffe20393
2020-03-16 03:39:08 +02:00
crawter
0c18ecf32e
storagenode/api refactored
...
Change-Id: Icfd6ded7a21b3803411688a0a34b0c80b44e756f
2020-03-15 20:30:23 +02:00
Qweder93
988bb52855
storagenode/heldamount GetPayment added, console/server updated
...
Change-Id: I51ebe69f9dc7920e59e91d7ba26617ee61889f78
2020-03-13 17:37:44 +00:00
Qweder93
7b0371e9e2
storagenode/heldamount/service added, console/heldamountapi added, console/server updated
...
Change-Id: I6290a6ea1b07b222908440defbbd7aec5f2a4cdf
2020-03-13 19:18:03 +02:00
Jeff Wendling
7999d24f81
all: use monkit v3
...
this commit updates our monkit dependency to the v3 version where
it outputs in an influx style. this makes discovery much easier
as many tools are built to look at it this way.
graphite and rothko will suffer some due to no longer being a tree
based on dots. hopefully time will exist to update rothko to
index based on the new metric format.
it adds an influx output for the statreceiver so that we can
write to influxdb v1 or v2 directly.
Change-Id: Iae9f9494a6d29cfbd1f932a5e71a891b490415ff
2020-02-05 23:53:17 +00:00
Egon Elbre
9e5679fdaa
storagenode/console/consoleserver: set content-type manually
...
http.FileServer relies on mime types defined in the operating system.
These values may be misconfigured, so a javascript file might
end up being served as "plain/text".
Change-Id: I3c13c8a9ac484bd765a4de0f8253bfe40dde7513
2020-02-03 15:37:47 +02:00
Egon Elbre
6615ecc9b6
common: separate repository
...
Change-Id: Ibb89c42060450e3839481a7e495bbe3ad940610a
2019-12-27 14:11:15 +02:00
Qweder93
e47ec84dee
storagenode notification service and api added
...
Change-Id: I36898d7c43e1768e0cae0da8d83bb20b16f0cdde
2019-12-20 18:42:23 +00:00
Nikolai Siedov
0d35505fe1
SNOboard/console: router changed for gorillaMux, caching added ( #3577 )
2019-11-15 14:36:43 +02:00
Egon Elbre
ee6c1cac8a
private: rename internal to private ( #3573 )
2019-11-14 21:46:15 +02:00
JT Olio
37491d0d32
storagenode: embed the console into the binary and makefile ( #3164 )
...
* web/storagenode: add package-lock.json
* storagenode: compile console into binary
2019-10-08 10:52:19 +02:00
Egon Elbre
a801fab66a
all: add archview annotations ( #2964 )
2019-09-10 16:24:16 +03:00
Yaroslav Vorobiov
c35ad5cbfc
storagenode/console: update api ( #2969 )
2019-09-06 15:01:03 +03:00
Egon Elbre
00b2e1a7d7
all: enable staticcheck ( #2849 )
...
* by having megacheck in disable it also disabled staticcheck
* fix closing body
* keep interfacer disabled
* hide bodies
* don't use deprecated func
* fix dead code
* fix potential overrun
* keep stylecheck disabled
* don't pass nil as context
* fix infinite recursion
* remove extraneous return
* fix data race
* use correct func
* ignore unused var
* remove unused consts
2019-08-22 13:40:15 +02:00
Yaroslav Vorobiov
141af7e2f7
storagenode/console: refactor service and api ( #2751 )
2019-08-14 15:17:11 +03:00
Yaroslav Vorobiov
28a7778e9e
storagenode/nodestats: cache node stats ( #2543 )
2019-08-08 16:47:04 +03:00
Yehor Butko
5f194b4533
SNO Dashboard API ( #2427 )
...
* SNO Dashboard API
2019-07-17 14:42:00 +03:00
Yehor Butko
8bf7c5c671
SNO Dashboard http status codes updated ( #2333 )
2019-06-26 16:36:47 +03:00
Yehor Butko
96bc0ccfa4
SNO Dshboard initial api endpoint added ( #2284 )
...
* initial api endpoint added
2019-06-24 18:15:31 +03:00
Yehor Butko
e5fd0287e4
V3-1819 Storage node operator server and service started ( #2112 )
...
* V3-1819 Storage node operator server and service started
2019-06-20 14:52:32 +03:00