Documentation
¶
Index ¶
- type Service
- func (s *Service) Exists() bool
- func (s *Service) Install() error
- func (s *Service) InstallCommands() ([]string, error)
- func (s *Service) Installed() bool
- func (s *Service) Remove() error
- func (s *Service) Running() bool
- func (s *Service) Start() error
- func (s *Service) Status() (string, error)
- func (s *Service) Stop() error
- func (s *Service) StopAndRemove() error
- func (s *Service) UpdateConfig(conf common.Conf)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service represents a service running on the current system
func NewService ¶
NewService returns a new Service type
func (*Service) Exists ¶
Exists returns whether the service configuration exists in the init directory with the same content that this Service would have if installed. TODO (gabriel-samfira): 2014-07-30 bug 1350171 Needs a proper implementation when testing is improved
func (*Service) InstallCommands ¶
InstallCommands returns shell commands to install and start the service.
func (*Service) StopAndRemove ¶
StopAndRemove stops the service and then deletes the service.
func (*Service) UpdateConfig ¶
Click to show internal directories.
Click to hide internal directories.