Documentation ¶
Overview ¶
initd provides interfaces and implementations for system initialization daemons
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
Component represents a file that can be used with an initd.Manager (e.g. systemd unit, upstart script, etc.)
type Manager ¶
type Manager interface { // ReloadDaemon reloads the system Manager daemon. ReloadDaemon() error // CreateComponent creates a component with the given name // and contents and returns an object representing the created component. CreateComponent(name, contents string) (Component, error) Validate(Component) error Install(Component) error Disable(Component) error Start(Component) error Reload(Component) error Stop(Component) error Extend(Component) error }
Manager interface represents a system Manager that manipulates the system boot events such as systemd, sysV-init, or upstart.
func NewMockManager ¶
func NewMockManager() Manager
Click to show internal directories.
Click to hide internal directories.