aboutsummaryrefslogtreecommitdiffstats
path: root/lib/apiv1/projects.go
diff options
context:
space:
mode:
Diffstat (limited to 'lib/apiv1/projects.go')
-rw-r--r--lib/apiv1/projects.go32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/apiv1/projects.go b/lib/apiv1/projects.go
new file mode 100644
index 0000000..d76fa09
--- /dev/null
+++ b/lib/apiv1/projects.go
@@ -0,0 +1,32 @@
+package apiv1
+
+// ProjectType definition
+type ProjectType string
+
+const (
+ TypePathMap = "PathMap"
+ TypeCloudSync = "CloudSync"
+ TypeCifsSmb = "CIFS"
+)
+
+// Project Status definition
+const (
+ StatusErrorConfig = "ErrorConfig"
+ StatusDisable = "Disable"
+ StatusEnable = "Enable"
+ StatusPause = "Pause"
+ StatusSyncing = "Syncing"
+)
+
+// ProjectConfig is the config for one project
+type ProjectConfig struct {
+ ID string `json:"id"`
+ ServerID string `json:"serverId"`
+ Label string `json:"label"`
+ ClientPath string `json:"clientPath"`
+ ServerPath string `json:"serverPath"`
+ Type ProjectType `json:"type"`
+ Status string `json:"status"`
+ IsInSync bool `json:"isInSync"`
+ DefaultSdk string `json:"defaultSdk"`
+}