Documentation
¶
Index ¶
- func Disable(definition_path string, now bool) error
- func Enable(definition_path string, now bool) error
- func Inspect(service *Service, state *InspectState) (json.RawMessage, error)
- func PrintInspect(services ...string) error
- func PrintList(settings PrintListSettings) error
- func PrintListCommands(service *Service) error
- func PrintListFilter(service *Service, settings PrintListSettings) (bool, error)
- func PrintService(name string) error
- func Reload(definition_path string, opts ReloadOpts) error
- func ReloadServices(inclusive bool) error
- func Restart(definition_path string, opts RestartOpts) error
- func RunServiceCommand(service *Service, direct bool, env []string, cmd_name string, args ...string) error
- func ServiceSetConfig(filename string, config map[string]string) error
- func Start(definition_path string) error
- func Stop(definition_path string) error
- type InspectState
- type PrintListSettings
- type ReloadOpts
- type RestartOpts
- type Selector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Inspect ¶ added in v0.0.16
func Inspect(service *Service, state *InspectState) (json.RawMessage, error)
func PrintInspect ¶
func PrintList ¶
func PrintList(settings PrintListSettings) error
func PrintListCommands ¶ added in v0.0.15
func PrintListCommands(service *Service) error
func PrintListFilter ¶ added in v0.0.16
func PrintListFilter(service *Service, settings PrintListSettings) (bool, error)
func PrintService ¶
func Reload ¶
func Reload(definition_path string, opts ReloadOpts) error
func ReloadServices ¶ added in v0.0.15
func Restart ¶
func Restart(definition_path string, opts RestartOpts) error
func RunServiceCommand ¶ added in v0.0.15
Types ¶
type InspectState ¶ added in v0.0.16
type InspectState struct {
UnitStatus dbus.UnitStatus `json:"unit_status"`
}
type PrintListSettings ¶
type ReloadOpts ¶ added in v0.0.16
type ReloadOpts struct {
NoBlock bool
}
type RestartOpts ¶ added in v0.0.23
type RestartOpts struct {
NoBlock bool
}
Click to show internal directories.
Click to hide internal directories.