func (c *MemStore) ControllerByName(name string) (*ControllerDetails, error) {
	c.mu.Lock()
	defer c.mu.Unlock()

	if err := ValidateControllerName(name); err != nil {
		return nil, err
	}
	if result, ok := c.Controllers[name]; ok {
		return &result, nil
	}
	return nil, errors.NotFoundf("controller %s", name)
}
// ControllerByName implements ControllerGetter.ControllerByName
ControllerByName implements ControllerGetter.ControllerByName
// ControllerByName implements ControllerGetter . ControllerByName
func (c *MemStore) ControllerByName(name string) (*ControllerDetails, error) {
	c.mu.Lock()
	defer c.mu.Unlock()
	if err := ValidateControllerName(name); err != nil {
		return nil, err
	}
	if result, ok := c.Controllers[name]; ok {
		return &result, nil
	}
	return nil, errors.NotFoundf("controller %s", name)
}
func ( c * MemStore ) ControllerByName ( name string ) ( * ControllerDetails , error ) { c . mu . Lock ( ) defer c . mu . Unlock ( ) if err := ValidateControllerName ( name ) ; err != nil { return nil , err } if result , ok := c . Controllers [ name ] ; ok { return & result , nil } return nil , errors . NotFoundf ( " " , name ) }
ControllerByName implements ControllerGetter.ControllerByName
ControllerByName implements ControllerGetter . ControllerByName