(remote protocol.DeviceID, ids ...string)
| 54 | } |
| 55 | |
| 56 | func createClusterConfig(remote protocol.DeviceID, ids ...string) *protocol.ClusterConfig { |
| 57 | cc := &protocol.ClusterConfig{ |
| 58 | Folders: make([]protocol.Folder, len(ids)), |
| 59 | } |
| 60 | for i, id := range ids { |
| 61 | cc.Folders[i] = protocol.Folder{ |
| 62 | ID: id, |
| 63 | Label: id, |
| 64 | } |
| 65 | } |
| 66 | return addFolderDevicesToClusterConfig(cc, remote) |
| 67 | } |
| 68 | |
| 69 | func addFolderDevicesToClusterConfig(cc *protocol.ClusterConfig, remote protocol.DeviceID) *protocol.ClusterConfig { |
| 70 | for i := range cc.Folders { |
no test coverage detected