initd

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2015 License: Apache-2.0 Imports: 0 Imported by: 0

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

type Component interface {
	Name() string
	Path() string
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL