Documentation
¶
Overview ¶
Package poll is an opinionated library for polling in the Signadot CLI.
Index ¶
- type Poll
- func (p *Poll) Readiness(ctx context.Context, interval time.Duration, ...) Readiness
- func (p *Poll) Until(ctx context.Context, fn UntilFunc) error
- func (p *Poll) UntilWithError(ctx context.Context, fn UntilWithErrorFunc) error
- func (p *Poll) WithDelay(delay time.Duration) *Poll
- func (p *Poll) WithResetOnLoop(resetOnLoop bool) *Poll
- func (p *Poll) WithTimeout(timeout time.Duration) *Poll
- type Readiness
- type UntilFunc
- type UntilWithErrorFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Poll ¶ added in v0.8.0
type Poll struct {
// contains filtered or unexported fields
}
func (*Poll) Until ¶ added in v0.8.0
Until polls until the given function returns true, or the timeout expires.
func (*Poll) UntilWithError ¶ added in v0.8.0
func (p *Poll) UntilWithError(ctx context.Context, fn UntilWithErrorFunc) error
UntilWithError polls until the given function returns true, or the timeout expires. But also can return error so can be pass down to handle proper errors
func (*Poll) WithResetOnLoop ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.