Documentation
¶
Index ¶
- func Register(reg *execution.ActionRegistry)
- type Disable
- type Enable
- type Provider
- func (p *Provider) Disable(name string, output io.Writer) error
- func (p *Provider) Enable(name string, output io.Writer) error
- func (p *Provider) Restart(name string, output io.Writer) error
- func (p *Provider) Start(name string, output io.Writer) error
- func (p *Provider) Stop(name string, output io.Writer) error
- type Restart
- type Start
- type Stop
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(reg *execution.ActionRegistry)
Register registers all service actions with the given registry.
Types ¶
type Disable ¶
type Disable struct{ Impl *Provider }
Disable disables a service from starting at boot.
type Enable ¶
type Enable struct{ Impl *Provider }
Enable enables a service to start at boot.
type Provider ¶
type Provider struct{}
Provider provides platform-agnostic service management. Platform detection happens at runtime — callers don't need to know whether launchd, systemd, or Windows services are being used.
type Restart ¶
type Restart struct{ Impl *Provider }
Restart restarts a service.
Click to show internal directories.
Click to hide internal directories.