go-ceph/internal/retry
Sven Anderson e01eb03284 retry: add a helper lib for retrying common operations
Our first operation is generating sizes for various caller-allocated
buffers.  The WithSizes function "suggests" sizes to an anonymous
function that takes a size as an argument and returns a hint how
sucessful the attempt was.  If required the same function is called
again with a larger size.  Errors and other results of that anonymous
function are "communicated" with variables of the surrounding scope
in wich the function is defined.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: Sven Anderson <sven@redhat.com>
2020-04-20 15:08:36 -04:00
..
example_sizer_test.go retry: add a helper lib for retrying common operations 2020-04-20 15:08:36 -04:00
sizer_test.go retry: add a helper lib for retrying common operations 2020-04-20 15:08:36 -04:00
sizer.go retry: add a helper lib for retrying common operations 2020-04-20 15:08:36 -04:00