sync

package
v0.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package sync coordinates synchronization of Okta groups to GitHub teams. depends only on domain interfaces, not concrete client implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Syncer

type Syncer struct {
	// contains filtered or unexported fields
}

Syncer coordinates synchronization of Okta groups to GitHub teams.

func NewSyncer

func NewSyncer(oktaClient domain.OktaClient, githubClient domain.GitHubClient, rules []domain.SyncRule, safetyThreshold float64, logger *slog.Logger) *Syncer

NewSyncer creates a new Okta to GitHub syncer.

func (*Syncer) DetectOrphanedUsers

func (s *Syncer) DetectOrphanedUsers(ctx context.Context, syncedTeams []string) (*domain.OrphanedUsersReport, error)

DetectOrphanedUsers finds organization members not in any synced teams. excludes external collaborators.

func (*Syncer) Sync

func (s *Syncer) Sync(ctx context.Context) (*domain.SyncResult, error)

Sync executes all enabled sync rules and returns reports. continues processing remaining rules even if some fail.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL