constellation/cli/internal/cmd
Otto Bittner c743398a23 AB#2181: retry k8s downloads (#286)
Generalize retrier:
* Generalize Do to use a supplied 'retriable' function
* Make clock an optional argument in NewIntervalRetrier
* Move grpc/retrier to interal package
* Update existing unittests to not use retry feature

Add retryDownloadToTempDir:
* Wrap downloadToTempDir with retrier.
* Retry if TCP connection is reset.
* Abort by canceling the context.
* Use a mock server in the unit test that serves responses
depending on the state received through a state channel.

Co-authored-by: katexochen <49727155+katexochen@users.noreply.github.com>
2022-07-21 15:20:12 +02:00
..
cloud_test.go Add goleak to all tests (#227) 2022-06-30 15:24:36 +02:00
cloud.go Move cli/cmd into cli/internal 2022-06-08 11:59:23 +02:00
config.go Move cli/cmd into cli/internal 2022-06-08 11:59:23 +02:00
configgenerate_test.go Move cli/cmd into cli/internal 2022-06-08 11:59:23 +02:00
configgenerate.go AB#2033 User-friendly wrap and reword errors 2022-06-22 12:02:10 +01:00
create_test.go Move cli/cmd into cli/internal 2022-06-08 11:59:23 +02:00
create.go AB#2033 User-friendly wrap and reword errors 2022-06-22 12:02:10 +01:00
details.go IDsFilename -> ClusterIDsFilename 2022-07-05 14:41:58 +02:00
init_test.go Only upload kubeadm certs if key is rotated 2022-07-14 17:25:18 +02:00
init.go AB#2181: retry k8s downloads (#286) 2022-07-21 15:20:12 +02:00
instancetypes.go Move cli/cmd into cli/internal 2022-06-08 11:59:23 +02:00
readconfig_test.go Move cli/cmd into cli/internal 2022-06-08 11:59:23 +02:00
readconfig.go AB#2033 User-friendly wrap and reword errors 2022-06-22 12:02:10 +01:00
recover_test.go Remove passing context seperately to initialize 2022-06-28 13:55:50 +02:00
recover.go Rename coordinator to bootstrapper and rename roles 2022-07-14 17:25:18 +02:00
recoveryclient_test.go Move attestation, atls and oid packages to internal directory 2022-06-08 17:17:06 +02:00
recoveryclient.go Move attestation, atls and oid packages to internal directory 2022-06-08 17:17:06 +02:00
terminate_test.go Delete cluster IDs file on terminate 2022-07-05 14:41:58 +02:00
terminate.go Delete cluster IDs file on terminate 2022-07-05 14:41:58 +02:00
userinteraction_test.go Move cli/cmd into cli/internal 2022-06-08 11:59:23 +02:00
userinteraction.go Move cli/cmd into cli/internal 2022-06-08 11:59:23 +02:00
validargs_test.go AB#2032 Write IDs to disk and read when verifying (#212) 2022-07-01 10:57:29 +02:00
validargs.go AB#2032 Write IDs to disk and read when verifying (#212) 2022-07-01 10:57:29 +02:00
verify_test.go IDsFilename -> ClusterIDsFilename 2022-07-05 14:41:58 +02:00
verify.go fix ci-lint issues (#287) 2022-07-20 16:44:41 +02:00
version_test.go Feat/more version info (#224) 2022-06-21 15:12:27 +02:00
version.go Only upload kubeadm certs if key is rotated 2022-07-14 17:25:18 +02:00