Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListTemplateFields ¶
ListTemplateFields lists the fields used in a template. Sourced and adapted from: https://stackoverflow.com/a/40584967
Types ¶
type Configuration ¶
Configuration holds a configuration, the key of the map is the name of the configuration. This is a string defined by the user to differentiate the various services started.
func (Configuration) Valid ¶
func (s Configuration) Valid() bool
Valid validates a full configuration. This is mainly aiming at making sure we have unique port configurations.
type Service ¶
type Service struct { Command string `yaml:"command"` Environment string `yaml:"environment"` Enable bool `yaml:"enable"` // Variables are string mappings, the key can be used as $KEY in the "Command" string. It will be interpolated when // it is used to spawn the proc Variables []map[string]string `yaml:"variables"` }
Service is a single configuration option for a service we want to run
func (Service) InterpolatedCommand ¶
InterpolatedCommand is replacing the variable placeholders in a string with the variable value
Click to show internal directories.
Click to hide internal directories.