{"modulePath":"github.com/cruxstack/github-ops-app","version":"v0.22.0","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sync\n\nPackage sync coordinates synchronization of Okta groups to GitHub teams. depends only on domain interfaces, not concrete client implementations.\n\n## Types\n\n```go\ntype Syncer struct {\n\t// contains filtered or unexported fields\n}\n```\nSyncer coordinates synchronization of Okta groups to GitHub teams.\n\n```go\nfunc NewSyncer(oktaClient domain.OktaClient, githubClient domain.GitHubClient, rules []domain.SyncRule, safetyThreshold float64, logger *slog.Logger) *Syncer\n```\nNewSyncer creates a new Okta to GitHub syncer.\n\n```go\nfunc (s *Syncer) DetectOrphanedUsers(ctx context.Context, syncedTeams []string) (*domain.OrphanedUsersReport, error)\n```\nDetectOrphanedUsers finds organization members not in any synced teams. excludes external collaborators.\n\n```go\nfunc (s *Syncer) Sync(ctx context.Context) (*domain.SyncResult, error)\n```\nSync executes all enabled sync rules and returns reports. continues processing remaining rules even if some fail.\n\n","path":"github.com/cruxstack/github-ops-app/internal/sync","name":"sync","synopsis":"Package sync coordinates synchronization of Okta groups to GitHub teams.","isRedistributable":true}
