Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultPollInterval = 2 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Poller ¶
type Poller interface {
Poll(ctx context.Context, identifiers object.ObjMetadataSet, options polling.Options) <-chan pollevent.Event
}
Poller defines the interface the applier needs to poll for status of resources. The context is the preferred way to shut down the poller. The identifiers defines the resources which the poller should poll and compute status for. The options allows callers to override some of the settings of the poller, like the polling frequency and the caching strategy.
Click to show internal directories.
Click to hide internal directories.