Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RepoWork ¶ added in v0.33.0
RepoWork represents a unique repo to import, with all tenants that track it.
func BuildWorkList ¶ added in v0.33.0
func BuildWorkList(rows []tenant.ImportWorkRow) []RepoWork
BuildWorkList deduplicates tenant_repo rows by (org, repo), grouping tenant refs under each unique repo. Preserves exact org/repo casing.
func ShardRepos ¶ added in v0.33.0
ShardRepos deterministically assigns repos to a task shard. Sorts by lowercase(repo), then lowercase(org) as tiebreaker, then assigns every taskCount-th item to the given taskIndex. Guarantees: union of all shards == input, no gaps, no overlaps.
Click to show internal directories.
Click to hide internal directories.