Refit source files to have a public xs-apiv1 lib package.
[src/xds/xds-server.git] / lib / xsapiv1 / config.go
diff --git a/lib/xsapiv1/config.go b/lib/xsapiv1/config.go
new file mode 100644 (file)
index 0000000..33bc116
--- /dev/null
@@ -0,0 +1,18 @@
+package xsapiv1
+
+// APIConfig parameters (json format) of /config command
+type APIConfig struct {
+       ServerUID        string          `json:"id"`
+       Version          string          `json:"version"`
+       APIVersion       string          `json:"apiVersion"`
+       VersionGitTag    string          `json:"gitTag"`
+       SupportedSharing map[string]bool `json:"supportedSharing"`
+       Builder          BuilderConfig   `json:"builder"`
+}
+
+// BuilderConfig represents the builder container configuration
+type BuilderConfig struct {
+       IP          string `json:"ip"`
+       Port        string `json:"port"`
+       SyncThingID string `json:"syncThingID"`
+}