blob: b1e64c83fa6554675a043359c23cf3875c5f22d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
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"`
ClientData string `json:"clientData"` // free form field that can used by client
}
// ProjectConfigUpdatableFields List fields that can be updated using Update function
var ProjectConfigUpdatableFields = []string{
"Label", "DefaultSdk", "ClientData",
}
|