systemd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2014 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventStream

type EventStream struct {
	// contains filtered or unexported fields
}

func NewEventStream

func NewEventStream() *EventStream

func (*EventStream) Close

func (self *EventStream) Close()

func (*EventStream) Stream

func (self *EventStream) Stream(unitchan <-chan map[string]*dbus.UnitStatus, eventchan chan *event.Event)

type ListenSocket

type ListenSocket struct {
	Type string
	Port int
}

func NewListenSocketFromListenConfig

func NewListenSocketFromListenConfig(cfg string) (*ListenSocket, error)

func (*ListenSocket) String

func (ls *ListenSocket) String(ip string) string

type SystemdManager

type SystemdManager struct {
	Systemd    *dbus.Conn
	Machine    *machine.Machine
	UnitPrefix string
	// contains filtered or unexported fields
}

func NewSystemdManager

func NewSystemdManager(machine *machine.Machine, unitPrefix string) *SystemdManager

func (*SystemdManager) MarshalJSON added in v0.2.0

func (m *SystemdManager) MarshalJSON() ([]byte, error)

func (*SystemdManager) Publish

func (m *SystemdManager) Publish(bus *event.EventBus, stopchan chan bool)

func (*SystemdManager) StartJob

func (m *SystemdManager) StartJob(job *job.Job)

func (*SystemdManager) StopJob

func (m *SystemdManager) StopJob(jobName string)

type SystemdService

type SystemdService struct {
	// contains filtered or unexported fields
}

func (*SystemdService) Name

func (ss *SystemdService) Name() string

func (*SystemdService) State

func (ss *SystemdService) State() (string, string, string, []string, error)

type SystemdSocket

type SystemdSocket struct {
	// contains filtered or unexported fields
}

func (*SystemdSocket) Name

func (ss *SystemdSocket) Name() string

func (*SystemdSocket) State

func (ss *SystemdSocket) State() (string, string, string, []string, error)

type SystemdUnit

type SystemdUnit interface {
	Name() string

	// The first three strings correspond to the LoadState,
	// ActiveState and SubState of a unit.
	State() (string, string, string, []string, error)
}

Jump to

Keyboard shortcuts

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