func (f *Cloud) ListRoutes(ctx context.Context, clusterName string) ([]*cloudprovider.Route, error) {
	f.Lock.Lock()
	defer f.Lock.Unlock()
	f.addCall("list-routes")
	var routes []*cloudprovider.Route
	for _, fakeRoute := range f.RouteMap {
		if clusterName == fakeRoute.ClusterName {
			routeCopy := fakeRoute.Route
			routes = append(routes, &routeCopy)
		}
	}
	return routes, f.Err
}
// ListRoutes lists all managed routes that belong to the specified clusterName
ListRoutes lists all managed routes that belong to the specified clusterName
// ListRoutes lists all managed routes that belong to the specified clusterName
func (f *Cloud) ListRoutes(ctx context.Context, clusterName string) ([]*cloudprovider.Route, error) {
	f.Lock.Lock()
	defer f.Lock.Unlock()
	f.addCall("list-routes")
	var routes []*cloudprovider.Route
	for _, fakeRoute := range f.RouteMap {
		if clusterName == fakeRoute.ClusterName {
			routeCopy := fakeRoute.Route
			routes = append(routes, &routeCopy)
		}
	}
	return routes, f.Err
}
func ( f * Cloud ) ListRoutes ( ctx context . Context , clusterName string ) ( [ ] * cloudprovider . Route , error ) { f . Lock . Lock ( ) defer f . Lock . Unlock ( ) f . addCall ( " " ) var routes [ ] * cloudprovider . Route for _ , fakeRoute := range f . RouteMap { if clusterName == fakeRoute . ClusterName { routeCopy := fakeRoute . Route routes = append ( routes , & routeCopy ) } } return routes , f . Err }
ListRoutes lists all managed routes that belong to the specified clusterName
ListRoutes lists all managed routes that belong to the specified clusterName