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

Method loadAllInstances

workers/cache/cache.go:164–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162}
163
164func (w *Worker) loadAllInstances() error {
165 instances, err := w.store.ListAllInstances(w.ctx)
166 if err != nil {
167 return fmt.Errorf("listing instances: %w", err)
168 }
169
170 for _, instance := range instances {
171 cache.SetInstanceCache(instance)
172 }
173 return nil
174}
175
176func (w *Worker) loadAllGithubCredentials() error {
177 creds, err := w.store.ListGithubCredentials(w.ctx)

Callers 1

StartMethod · 0.95

Calls 2

SetInstanceCacheFunction · 0.92
ListAllInstancesMethod · 0.65

Tested by

no test coverage detected