configs

package
v0.0.0-...-a7e7b69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 2, 2020 License: MPL-2.0 Imports: 7 Imported by: 0

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 GetFullPath(childPath string) string

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 PackageConfig struct {
	Id          string
	Dir         string
	VersionFile string
	IsEncrypted bool
	Manifest    string
}

type PackageManifest

type PackageManifest struct {
	Version  string
	Source   string
	Checksum string
}

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 ProcessConfig struct {
	Id                string
	Dependencies      []string
	Dir               string
	Command           string
	Arguments         []string
	LogFilename       string
	WaitForCompletion bool
	WaitTime          int
	PidFilename       string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL