Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // note that the trailing %.s is not a typo; it's needed to suppress the // %!(EXTRA string=) that comes from having a Sprintf argument that's unused MAIN_CONFIG_FILE = []string{"%s/configs/mcli.json", "./configs/mcli.json%.s"} PACKAGES_CONFIG_FILE = []string{"%s/configs/packages_conf.json", "./configs/packages_conf.json%.s"} PROCESSES_CONFIG_FILE = []string{"%s/configs/processes_conf.json", "./configs/processes_conf.json%.s"} )
Functions ¶
func GetBaseDir ¶
func GetBaseDir() string
func GetFullPath ¶
func SetBaseDir ¶
func SetBaseDir(newBaseDir string)
func UpdatePackagesConf ¶
func UpdatePackagesConf(newPackagesConfig *PackagesConfig)
Types ¶
type BaseConfig ¶
type BaseConfig struct { Version string MarconiNodeHost string MarconiNodePort string MarconidRPCPort string }
func LoadBaseConf ¶
func LoadBaseConf() *BaseConfig
type PackageConfig ¶
type PackageManifest ¶
type PackagesConfig ¶
type PackagesConfig struct { Version string AutoUpdateEnabled bool Packages []PackageConfig }
Config for packages to be downloaded
func LoadPackagesConf ¶
func LoadPackagesConf() *PackagesConfig
type ProcessConfig ¶
type ProcessesConfig ¶
type ProcessesConfig struct { Version string Processes []ProcessConfig }
Config for an individual process to be started with the process manager
func LoadProcessesConf ¶
func LoadProcessesConf(baseDir string) *ProcessesConfig
Click to show internal directories.
Click to hide internal directories.