mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
Provides interfaces to the Windows service manager and Windows services. These interfaces support creating new Windows services, deleting Windows services, configuring Windows services, and registering/deregistering services with Windows Eventlog. A path helper is included to support expansion of paths using a subset of known folder IDs. A privileged helper is included to check that the process is currently being executed with elevated privileges, which are required for managing Windows services and modifying the registry.
16 lines
327 B
Go
16 lines
327 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
//go:build !windows
|
|
|
|
package winsvc
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
// NewWindowsServiceManager returns an error
|
|
func NewWindowsServiceManager() (WindowsServiceManager, error) {
|
|
return nil, errors.New("Windows service manager is not supported on this platform")
|
|
}
|