Commit 061aeaf
Adam Talbot
When using WaitAuthorization or WaitOrder is not practical due to its blocking,
for example in Kubernetes controllers, the GetAuthorization can be used.
This change adds the RetryAfter field to the Authorization, Order and Challenge
objects returned by GetAuthorization, GetOrder and GetChallenge so it can be
used by these implementations that use their own polling mechanism.
The new RetryAfter field is populated by the "Retry-After" header in the HTTP
response.
Fixes golang/go#74454
Signed-off-by: Adam Talbot <[email protected]>1 parent 459a9db commit 061aeaf
3 files changed
+39
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
| 406 | + | |
406 | 407 | | |
407 | 408 | | |
408 | 409 | | |
| |||
460 | 461 | | |
461 | 462 | | |
462 | 463 | | |
463 | | - | |
| 464 | + | |
464 | 465 | | |
465 | 466 | | |
466 | 467 | | |
| |||
505 | 506 | | |
506 | 507 | | |
507 | 508 | | |
508 | | - | |
| 509 | + | |
| 510 | + | |
509 | 511 | | |
510 | 512 | | |
511 | 513 | | |
| |||
534 | 536 | | |
535 | 537 | | |
536 | 538 | | |
537 | | - | |
| 539 | + | |
538 | 540 | | |
539 | 541 | | |
540 | 542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
321 | 322 | | |
322 | 323 | | |
323 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
369 | 376 | | |
370 | 377 | | |
371 | 378 | | |
| |||
426 | 433 | | |
427 | 434 | | |
428 | 435 | | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
429 | 444 | | |
430 | 445 | | |
431 | 446 | | |
| |||
471 | 486 | | |
472 | 487 | | |
473 | 488 | | |
474 | | - | |
| 489 | + | |
475 | 490 | | |
476 | 491 | | |
477 | 492 | | |
| |||
480 | 495 | | |
481 | 496 | | |
482 | 497 | | |
| 498 | + | |
483 | 499 | | |
484 | 500 | | |
485 | | - | |
| 501 | + | |
486 | 502 | | |
487 | 503 | | |
488 | 504 | | |
| |||
542 | 558 | | |
543 | 559 | | |
544 | 560 | | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
545 | 568 | | |
546 | 569 | | |
547 | 570 | | |
| |||
555 | 578 | | |
556 | 579 | | |
557 | 580 | | |
558 | | - | |
| 581 | + | |
559 | 582 | | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
564 | 588 | | |
565 | 589 | | |
566 | 590 | | |
| |||
0 commit comments