Documentation
¶
Overview ¶
Package environments implements the environment discovery polling loop. It periodically queries the Plan42 API to determine which (GithubConnectionID, OrgName) pairs the runner should be polling GitHub for.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Client *p42.Client
TenantID string
RunnerID string
EventPoller EventPoller
ConnectionIdx map[string]*config.GithubInfo
}
Config holds the dependencies for the environment discovery poller.
type EventPoller ¶
type EventPoller interface {
UpdateTargets(desired map[githubevents.CheckpointKey]githubevents.ConnectionInfo)
}
EventPoller is the interface the github events poller must implement. Environment discovery calls UpdateTargets on each iteration with the desired set of polling pairs and their connection details.
Click to show internal directories.
Click to hide internal directories.