standalone

package
v0.34.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectStandaloneHost

func DetectStandaloneHost() ([]byte, bool, error)

DetectStandaloneHost returns the local standalone systemd unit contents when running on a standalone host. Missing standalone markers are reported as found=false without an error.

func ParseEnvFromSystemdUnit

func ParseEnvFromSystemdUnit(data []byte, key string) string

ParseEnvFromSystemdUnit extracts the value of an Environment="KEY=value" directive from a systemd unit file. Returns empty string if not found.

Types

type ServiceManager

type ServiceManager interface {
	Stop() error
	Start() error
}

serviceManager abstracts stopping and starting the standalone vCluster process.

func NewServiceManager

func NewServiceManager() (ServiceManager, error)

newServiceManager returns a systemd-based service manager when on Linux with systemd available. Returns an error on other platforms or when the service is not running.

type SystemdServiceManager

type SystemdServiceManager struct {
	// contains filtered or unexported fields
}

func (*SystemdServiceManager) Start

func (s *SystemdServiceManager) Start() error

func (*SystemdServiceManager) Stop

func (s *SystemdServiceManager) Stop() error

Jump to

Keyboard shortcuts

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