Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStartContext ¶
GetStartContext sets up database context
func ReadConfig ¶
func ReadConfig(cfg *StartConfig) (utils.Config, error)
ReadConfig allows to read the configuration using the provided config
func ReadConfigPreRunE ¶
func ReadConfigPreRunE(cfg *StartConfig) utils.CobraCmdFunc
ReadConfigPreRunE represents a Cobra cmd function allowing to read the config before executing the command itself
func UpdateGlobalConfig ¶
func UpdateGlobalConfig(cfg *StartConfig) error
UpdateGlobalConfig parses the configuration file and sets it as global configuration
Types ¶
type StartConfig ¶
type StartConfig struct {
// contains filtered or unexported fields
}
StartConfig contains all the configuration for "start" command
func NewStartConfig ¶
func NewStartConfig() *StartConfig
NewStartConfig allows to build new StartConfig instance
func (*StartConfig) GetConfigParser ¶
func (cfg *StartConfig) GetConfigParser() utils.ConfigParser
GetConfigParser returns the configuration parser
func (*StartConfig) GetDatabaseBuilder ¶
func (cfg *StartConfig) GetDatabaseBuilder() database.DatabaseBuilder
GetDatabaseBuilder returns the database builder
Click to show internal directories.
Click to hide internal directories.