Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandString ¶
func CommandString(framework string, action LifecycleAction) string
CommandString returns a human-readable version of the command that would run.
func Execute ¶
func Execute(ctx context.Context, framework string, action LifecycleAction) error
Execute runs a lifecycle action for the given framework. It checks whether the OS service is installed first and adapts the command accordingly.
func ExecuteWithConfig ¶
func ExecuteWithConfig(ctx context.Context, framework, configPath string, action LifecycleAction) error
ExecuteWithConfig runs a lifecycle action for a framework using a specific config path. This is used for provisioned instances that have their own config files.
Types ¶
type LifecycleAction ¶
type LifecycleAction string
const ( ActionStart LifecycleAction = "start" ActionStop LifecycleAction = "stop" ActionRestart LifecycleAction = "restart" )
Click to show internal directories.
Click to hide internal directories.