Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectStandaloneHost ¶
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 ¶
ParseEnvFromSystemdUnit extracts the value of an Environment="KEY=value" directive from a systemd unit file. Returns empty string if not found.
Types ¶
type RuntimeMetadata ¶
type RuntimeMetadata struct {
Version string `json:"version,omitempty"`
IPAddress string `json:"ip,omitempty"`
NodeClaim string `json:"nodeClaim,omitempty"`
StartTime string `json:"startTime,omitempty"`
}
func LoadRuntimeMetadata ¶
func LoadRuntimeMetadata(dataDir string) (*RuntimeMetadata, error)
type ServiceManager ¶
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
Click to show internal directories.
Click to hide internal directories.