manager

package
v0.1.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 11 Imported by: 0

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"
)

Jump to

Keyboard shortcuts

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