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 ¶
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 Target *SystemdTarget Machine *machine.Machine UnitPrefix string // contains filtered or unexported fields }
func NewSystemdManager ¶
func NewSystemdManager(machine *machine.Machine, unitPrefix string) *SystemdManager
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 NewSystemdService ¶
func NewSystemdService(manager *SystemdManager, name string) *SystemdService
func (*SystemdService) Name ¶
func (ss *SystemdService) Name() string
func (*SystemdService) Payload ¶
func (ss *SystemdService) Payload() (string, error)
type SystemdSocket ¶
type SystemdSocket struct {
// contains filtered or unexported fields
}
func NewSystemdSocket ¶
func NewSystemdSocket(manager *SystemdManager, name string) *SystemdSocket
func (*SystemdSocket) Name ¶
func (ss *SystemdSocket) Name() string
func (*SystemdSocket) Payload ¶
func (ss *SystemdSocket) Payload() (string, error)
type SystemdTarget ¶
type SystemdTarget struct {
// contains filtered or unexported fields
}
func NewSystemdTarget ¶
func NewSystemdTarget(name string) *SystemdTarget
func (*SystemdTarget) Name ¶
func (st *SystemdTarget) Name() string
func (*SystemdTarget) Payload ¶
func (st *SystemdTarget) Payload() (string, error)
Click to show internal directories.
Click to hide internal directories.