MCPcopy
hub / github.com/syncthing/syncthing / createClusterConfig

Function createClusterConfig

lib/model/model_test.go:56–67  ·  view source on GitHub ↗
(remote protocol.DeviceID, ids ...string)

Source from the content-addressed store, hash-verified

54}
55
56func 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
69func addFolderDevicesToClusterConfig(cc *protocol.ClusterConfig, remote protocol.DeviceID) *protocol.ClusterConfig {
70 for i := range cc.Folders {

Calls 1

Tested by

no test coverage detected