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

Method DeleteOrgPoolManager

runner/runner.go:177–189  ·  view source on GitHub ↗
(org params.Organization)

Source from the content-addressed store, hash-verified

175}
176
177func (p *poolManagerCtrl) DeleteOrgPoolManager(org params.Organization) error {
178 p.mux.Lock()
179 defer p.mux.Unlock()
180
181 poolMgr, ok := p.organizations[org.ID]
182 if ok {
183 if err := poolMgr.Stop(); err != nil {
184 return fmt.Errorf("error stopping org pool manager: %w", err)
185 }
186 delete(p.organizations, org.ID)
187 }
188 return nil
189}
190
191func (p *poolManagerCtrl) GetOrgPoolManagers() (map[string]common.PoolManager, error) {
192 return p.organizations, nil

Callers

nothing calls this directly

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected