Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultAPIVersion = "1" DefaultPort = "8000" DefaultSdkRootDir = "/xdt/sdk" )
Config default values
View Source
const ( // ConfigDir Directory in user HOME directory where xds config will be saved ConfigDir = ".xds" // GlobalConfigFilename Global config filename GlobalConfigFilename = "config.json" // FoldersConfigFilename Folders config filename FoldersConfigFilename = "server-config_folders.xml" )
Variables ¶
This section is empty.
Functions ¶
func FoldersConfigFilenameGet ¶
FoldersConfigFilenameGet
Types ¶
type BuilderConfig ¶
type BuilderConfig struct { IP string `json:"ip"` Port string `json:"port"` SyncThingID string `json:"syncThingID"` }
BuilderConfig represents the builder container configuration
func NewBuilderConfig ¶
func NewBuilderConfig(stID string) (BuilderConfig, error)
NewBuilderConfig creates a new BuilderConfig instance
func (*BuilderConfig) Copy ¶
func (c *BuilderConfig) Copy(n BuilderConfig)
Copy makes a real copy of BuilderConfig
type Config ¶
type Config struct { Version string `json:"version"` APIVersion string `json:"apiVersion"` VersionGitTag string `json:"gitTag"` Builder BuilderConfig `json:"builder"` // Private (un-exported fields in REST GET /config route) Options Options `json:"-"` FileConf FileConfig `json:"-"` Log *logrus.Logger `json:"-"` LogVerboseOut io.Writer `json:"-"` }
Config parameters (json format) of /config command
type FileConfig ¶
type FileConfig struct { WebAppDir string `json:"webAppDir"` SdkRootDir string `json:"sdkRootDir"` HTTPPort string `json:"httpPort"` SThgConf *SyncThingConf `json:"syncthing"` LogsDir string `json:"logsDir"` }
FileConfig is the JSON structure of xds-server config file (config.json)
Click to show internal directories.
Click to hide internal directories.