From 7c7d90a781082c6bd22d12a5e2451ca61a5198af Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Wed, 29 Nov 2017 11:19:00 +0100 Subject: Renamed apiv1 lib to xaapiv1. xa prefix (for Xds Agent) is safest to avoid confusion with xs prefix (for Xds Server) Signed-off-by: Sebastien Douheret --- lib/syncthing/stfolder.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/syncthing') diff --git a/lib/syncthing/stfolder.go b/lib/syncthing/stfolder.go index 196e3c7..2273f1a 100644 --- a/lib/syncthing/stfolder.go +++ b/lib/syncthing/stfolder.go @@ -20,7 +20,7 @@ type FolderChangeArg struct { // FolderLoadFromStConfig Load/Retrieve folder config from syncthing database /* -func (s *SyncThing) FolderLoadFromStConfig(f *[]XdsFolderConfig) error { +func (s *SyncThing) FolderLoadFromStConfig(f *[]xsapiv1.FolderConfig) error { defaultSdk := "" // cannot know which was the default sdk @@ -40,15 +40,15 @@ func (s *SyncThing) FolderLoadFromStConfig(f *[]XdsFolderConfig) error { } for _, stFld := range stCfg.Folders { - *f = append(*f, XdsFolderConfig{ + *f = append(*f, xsapiv1.FolderConfig{ ID: stFld.ID, Label: stFld.Label, ClientPath: strings.TrimRight(stFld.Path, "/"), - Type: XdsTypeCloudSync, + Type: xsapiv1.TypeCloudSync, Status: StatusDisable, DefaultSdk: defaultSdk, RootPath: "", - DataCloudSync: XdsCloudSyncConfig{SyncThingID: devID}, + DataCloudSync: xsapiv1.CloudSyncConfig{SyncThingID: devID}, }) } -- cgit 1.2.3-korg