From 2f7828d01f4c4ca2909f95f098627cd5475ed225 Mon Sep 17 00:00:00 2001 From: Sebastien Douheret Date: Wed, 29 Nov 2017 08:54:00 +0100 Subject: Refit source files to have a public xs-apiv1 lib package. Signed-off-by: Sebastien Douheret --- lib/xsapiv1/config.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/xsapiv1/config.go (limited to 'lib/xsapiv1/config.go') diff --git a/lib/xsapiv1/config.go b/lib/xsapiv1/config.go new file mode 100644 index 0000000..33bc116 --- /dev/null +++ b/lib/xsapiv1/config.go @@ -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"` +} -- cgit 1.2.3-korg