Documentation ¶
Index ¶
- func GetSpecs(specsDirectory string) ([]*models.Spec, error)
- func Launch(app *state.App, config *viper.Viper, specsDirectory string, duration float64, ...)
- func LaunchDeleteAll(config *viper.Viper, logger logrus.FieldLogger)
- func LaunchLocalManager(config *viper.Viper, specsDirectory string, duration time.Duration, ...)
- func LaunchManagerDeploy(config *viper.Viper, specsDirectory string, duration time.Duration, ...)
- func LaunchRemoteManager(config *viper.Viper, specsDirectory string, duration time.Duration, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpecs ¶
GetSpecs will walk through specsDirectory and transform all spec JSONs into Spec objects
func Launch ¶
func Launch(app *state.App, config *viper.Viper, specsDirectory string, duration float64, shouldReportMetrics bool, logger logrus.FieldLogger)
Launch launches the bot spec
func LaunchDeleteAll ¶
func LaunchDeleteAll(config *viper.Viper, logger logrus.FieldLogger)
LaunchDeleteAll launches the manager in kubernetes cluster, that will instantiate jobs and manage them until the end
func LaunchLocalManager ¶
func LaunchLocalManager(config *viper.Viper, specsDirectory string, duration time.Duration, shouldReportMetrics, deleteBeforeRun bool, logger logrus.FieldLogger)
LaunchLocalManager launches the manager locally, that will instantiate jobs and manage them until the end
func LaunchManagerDeploy ¶
func LaunchManagerDeploy(config *viper.Viper, specsDirectory string, duration time.Duration, shouldReportMetrics bool, logger logrus.FieldLogger)
LaunchManagerDeploy launches the deploy to instantiate a pitaya-bot manager pod inside kubernetes
func LaunchRemoteManager ¶
func LaunchRemoteManager(config *viper.Viper, specsDirectory string, duration time.Duration, shouldReportMetrics, deleteBeforeRun bool, logger logrus.FieldLogger)
LaunchRemoteManager launches the manager in kubernetes cluster, that will instantiate jobs and manage them until the end
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.