Versions in this module Expand all Collapse all v1 v1.0.0 Feb 17, 2026 Changes in this version + type Coordinator struct + Client client.Client + GitHubClient GitHubClient + LabelManager LabelManager + Logger Logger + func NewCoordinator(client client.Client, githubClient GitHubClient, labelManager LabelManager, ...) *Coordinator + func (c *Coordinator) CreateDriftMonitorForPRT(ctx context.Context, prt *v1alpha1.PullRequestTracker, clusters []string) ([]*v1alpha1.DriftMonitor, error) + func (c *Coordinator) EnsureConsistency(ctx context.Context, prt *v1alpha1.PullRequestTracker) (bool, error) + func (c *Coordinator) SyncGitHubToPRT(ctx context.Context, prt *v1alpha1.PullRequestTracker) (*SyncResult, error) + func (c *Coordinator) SyncPRTToGitHub(ctx context.Context, prt *v1alpha1.PullRequestTracker) (*SyncResult, error) + type GitHubClient interface + AddLabel func(ctx context.Context, repo github.Repository, number int, label string) error + GetPR func(ctx context.Context, repo github.Repository, number int) (*github.PullRequest, error) + RemoveLabel func(ctx context.Context, repo github.Repository, number int, label string) error + type LabelManager interface + ApplyState func(ctx context.Context, pr github.PullRequest, state pr.State) error + GetCurrentState func(pr github.PullRequest) pr.State + SyncToGitHub func(ctx context.Context, pr github.PullRequest, state pr.State) (*SyncResult, error) + type Logger interface + Error func(err error, msg string, keysAndValues ...interface{}) + Info func(msg string, keysAndValues ...interface{}) + V func(level int) Logger + type SyncResult struct + Errors []error + FinalState pr.State + InitialState pr.State + LabelsAdded []string + LabelsRemoved []string + SyncTime time.Time