func (w *WhiteList) Check(existing, new string) error {
	if list, ok := w.matrix[existing]; ok {
		if !list.Contains(new) {
			return errors.Errorf("cloud type %q is not whitelisted for controller cloud type %q, current whitelist: %v", new, existing, list.SortedValues())
		}
		return nil
	}
	return errors.Errorf("controller cloud type %q is not whitelisted, current whitelist: \n%v", existing, w)
}
// Check will err out if 'existing' controller cloud type is
// not compatible with a 'new' cloud type according to this white list.
Check will err out if 'existing' controller cloud type is
not compatible with a 'new' cloud type according to this white list.
// Check will err out if ' existing ' controller cloud type is // not compatible with a ' new ' cloud type according to this white list .
func (w *WhiteList) Check(existing, new string) error {
	if list, ok := w.matrix[existing]; ok {
		if !list.Contains(new) {
			return errors.Errorf("cloud type %q is not whitelisted for controller cloud type %q, current whitelist: %v", new, existing, list.SortedValues())
		}
		return nil
	}
	return errors.Errorf("controller cloud type %q is not whitelisted, current whitelist: \n%v", existing, w)
}
func ( w * WhiteList ) Check ( existing , new string ) error { if list , ok := w . matrix [ existing ] ; ok { if ! list . Contains ( new ) { return errors . Errorf ( " " , new , existing , list . SortedValues ( ) ) } return nil } return errors . Errorf ( " \n " , existing , w ) }
Check will err out if 'existing' controller cloud type is
not compatible with a 'new' cloud type according to this white list.
Check will err out if ' existing ' controller cloud type is not compatible with a ' new ' cloud type according to this white list .