Documentation ¶ Index ¶ func Exists(path string) bool func Try(n int, f func() (interface{}, error)) (interface{}, error) type RetryTimeoutError func (t RetryTimeoutError) Error() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Exists ¶ func Exists(path string) bool Exists test a path existence on the OS. func Try ¶ func Try(n int, f func() (interface{}, error)) (interface{}, error) Try a simple exponential retry strategy whose first retry starting after 1s. The max delay timeout is 1min, if exceeds, a timeout error will be returned. Types ¶ type RetryTimeoutError ¶ type RetryTimeoutError time.Duration RetryTimeoutError return when the retry delay exceeds the max threshold. func (RetryTimeoutError) Error ¶ func (t RetryTimeoutError) Error() string Source Files ¶ View all Source files io.go retry.go Click to show internal directories. Click to hide internal directories.