Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ShortPoll = 1 * time.Second ShortPollBackoff = 2.0 LongPoll = 15 * time.Minute )
ShortPoll and LongPoll hold the polling intervals for the instance updater. When a machine has no address or is not started, it will be polled at ShortPoll intervals until it does, exponentially backing off with an exponent of ShortPollBackoff until a maximum(ish) of LongPoll.
When a machine has an address and is started LongPoll will be used to check that the instance address or status has not changed.
Functions ¶
func Manifold ¶
func Manifold(config ManifoldConfig) dependency.Manifold
Manifold returns a Manifold that encapsulates the instancepoller worker.
Types ¶
type Config ¶
type Config struct { Clock clock.Clock Delay time.Duration Facade *instancepoller.API Environ InstanceGetter }
type InstanceGetter ¶
Click to show internal directories.
Click to hide internal directories.