storj/cmd/storj-sim
Jeff Wendling 6ce22be744 cmd/storj-sim: make initial provisioning nicer
the old code to eventually create an api key on a satellite had
some issues. namely, there were some ignored errors, swallowed
errors, incorrect returns of nil errors when there should have
been an error, and it did not handle working against an already
existing database.

this commit fixes the above issues and organizes the code into
a set of methods performing individual steps rather than one big
function. it adds retries and attempts to get existing values
instead of creating them when possible, which means that it will
work if the values already exist. additionally, it removes the
3 second sleep in favor of a bounded retry loop with a small sleep
which improves startup times.

Change-Id: I4de04659e5a62dd3f675fbf3c76f3311c410a03e
2019-12-11 19:41:57 +00:00
..
cancelable.go updates copyright 2018 to 2019 (#1133) 2019-01-24 15:15:10 -05:00
console.go cmd/storj-sim: make initial provisioning nicer 2019-12-11 19:41:57 +00:00
main.go private: rename internal to private (#3573) 2019-11-14 21:46:15 +02:00
network.go cmd/storj-sim: make initial provisioning nicer 2019-12-11 19:41:57 +00:00
prefix_test.go cmd/storj-sim: ensure prefix writer can be used concurrently (#2243) 2019-06-19 22:30:48 +03:00
prefix.go cmd/storj-sim: ensure prefix writer can be used concurrently (#2243) 2019-06-19 22:30:48 +03:00
process.go all: build release fully dprc and test in mixed mode 2019-11-15 10:03:18 -07:00