(ctx context.Context, entity params.ForgeEntity, store common.Store)
| 40 | ) |
| 41 | |
| 42 | func newToolsUpdater(ctx context.Context, entity params.ForgeEntity, store common.Store) *toolsUpdater { |
| 43 | workerID := fmt.Sprintf("tools-updater-%s-%s", entity, entity.Credentials.Endpoint.Name) |
| 44 | ctx = garmUtil.WithSlogContext( |
| 45 | ctx, |
| 46 | slog.Any("worker", workerID)) |
| 47 | |
| 48 | return &toolsUpdater{ |
| 49 | ctx: ctx, |
| 50 | entity: entity, |
| 51 | quit: make(chan struct{}), |
| 52 | store: store, |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | type toolsUpdater struct { |
| 57 | ctx context.Context |
no outgoing calls
no test coverage detected