YYYYMMDDhhmmssfff — same shape platform/syncs-transformer uses, so external-sync rows share the keyspace.
(now time.Time)
| 491 | // YYYYMMDDhhmmssfff — same shape platform/syncs-transformer uses, so |
| 492 | // external-sync rows share the keyspace. |
| 493 | func allocateSyncGroupID(now time.Time) uint64 { |
| 494 | t := now.UTC() |
| 495 | base := t.Format("20060102150405") + fmt.Sprintf("%03d", t.Nanosecond()/1e6) |
| 496 | u, _ := strconv.ParseUint(base, 10, 64) |
| 497 | return u |
| 498 | } |
| 499 | |
| 500 | func activeTenants(ctx context.Context, cl *cloudquery_api.ClientWithResponses, teamName string) ([]cloudquery_api.PlatformTenantSummary, error) { |
| 501 | ctx, cancel := context.WithTimeout(ctx, requestTimeout) |
no outgoing calls
no test coverage detected