Documentation
¶
Index ¶
- func DeleteUnit(name string) error
- func DisableUnitFile(name string) error
- func EnableUnitFile(name string) error
- func ListUnit(name string) (dbus.UnitStatus, error)
- func ReadUnitFile(filename string) ([]*unit.UnitOption, error)
- func ReloadDaemon() error
- func ResetFailedUnitFile(name string) error
- func RestartUnit(name string, mode string) error
- func StartUnit(name string, mode string) error
- func StopUnit(name string, mode string) error
- func WriteUnitFile(filename string, templateName string, values ...string) error
- type CreateRequest
- type DeleteRequest
- type Response
- type Service
- func (s *Service) CreateService(req CreateRequest, resp *Response) error
- func (s *Service) DeleteUnitFile(req DeleteRequest, resp *Response) error
- func (s *Service) GetStatus(req UnitRequest, status *dbus.UnitStatus) error
- func (s *Service) SwitchServiceState(req StateRequest, resp *Response) error
- func (s *Service) Upgrade(req UpgradeRequest, resp *Response) error
- type StateRequest
- type UnitRequest
- type UpgradeRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableUnitFile ¶
DisableUnitFile may be used to disable the specified unit by removing symlinks to it
func EnableUnitFile ¶
EnableUnitFile may be used to enable the specified unit by creating symlinks to it
func ListUnit ¶
func ListUnit(name string) (dbus.UnitStatus, error)
ListUnit returns status information of the specified unit
func ReadUnitFile ¶
func ReadUnitFile(filename string) ([]*unit.UnitOption, error)
ReadUnitFile reads the specified unit file
func ReloadDaemon ¶
func ReloadDaemon() error
func ResetFailedUnitFile ¶
Types ¶
type CreateRequest ¶
CreateRequest ...
type Service ¶
type Service int
Service ...
func (*Service) CreateService ¶
func (s *Service) CreateService(req CreateRequest, resp *Response) error
CreateService ...
func (*Service) DeleteUnitFile ¶
func (s *Service) DeleteUnitFile(req DeleteRequest, resp *Response) error
DeleteUnitFile deletes the given unit file
func (*Service) GetStatus ¶
func (s *Service) GetStatus(req UnitRequest, status *dbus.UnitStatus) error
GetStatus returns status information of the given unit
func (*Service) SwitchServiceState ¶
func (s *Service) SwitchServiceState(req StateRequest, resp *Response) error
SwitchServiceState enables/disables the given unit
type StateRequest ¶
StateRequest ...
type UpgradeRequest ¶
UpgradeRequest ...
Click to show internal directories.
Click to hide internal directories.