MCPcopy Create free account
hub / github.com/cloudbase/garm / newToolsUpdater

Function newToolsUpdater

workers/cache/tool_cache.go:42–54  ·  view source on GitHub ↗
(ctx context.Context, entity params.ForgeEntity, store common.Store)

Source from the content-addressed store, hash-verified

40)
41
42func 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
56type toolsUpdater struct {
57 ctx context.Context

Callers 2

loadAllEntitiesMethod · 0.85
handleEntityEventMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected