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

Method DeleteEnterprisePoolManager

runner/runner.go:219–231  ·  view source on GitHub ↗
(enterprise params.Enterprise)

Source from the content-addressed store, hash-verified

217}
218
219func (p *poolManagerCtrl) DeleteEnterprisePoolManager(enterprise params.Enterprise) error {
220 p.mux.Lock()
221 defer p.mux.Unlock()
222
223 poolMgr, ok := p.enterprises[enterprise.ID]
224 if ok {
225 if err := poolMgr.Stop(); err != nil {
226 return fmt.Errorf("error stopping enterprise pool manager: %w", err)
227 }
228 delete(p.enterprises, enterprise.ID)
229 }
230 return nil
231}
232
233func (p *poolManagerCtrl) GetEnterprisePoolManagers() (map[string]common.PoolManager, error) {
234 return p.enterprises, nil

Callers

nothing calls this directly

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65
StopMethod · 0.65

Tested by

no test coverage detected