()
| 206 | } |
| 207 | |
| 208 | func (m *Modules) projects() *config.Config { |
| 209 | m.lock.RLock() |
| 210 | defer m.lock.RUnlock() |
| 211 | |
| 212 | projects := make(config.Projects) |
| 213 | for id := range m.blocks { |
| 214 | projects[id] = &config.Project{ProjectConfig: &config.ProjectConfig{ID: id}} |
| 215 | } |
| 216 | return &config.Config{Projects: projects} |
| 217 | } |
| 218 | |
| 219 | // Delete the project |
| 220 | func (m *Modules) Delete(projectID string) { |