Versions in this module Expand all Collapse all v1 v1.16.1 Nov 13, 2019 Changes in this version + type CreateOption func(o *CreateOptions) + func WithCommand(c string, args ...string) CreateOption + func WithEnv(env []string) CreateOption + func WithOutput(out io.Writer) CreateOption + type CreateOptions struct + Command []string + Env []string + Output io.Writer + type Event struct + Service string + Timestamp time.Time + Type EventType + Version string + type EventType int + const Create + const Delete + const Update + func (t EventType) String() string + type Notifier interface + Close func() error + Notify func() (<-chan Event, error) + type Option func(o *Options) + func WithNotifier(n Notifier) Option + type Options struct + Notifier Notifier + type Runtime interface + Create func(*Service, ...CreateOption) error + Delete func(*Service) error + Init func(...Option) error + List func() ([]*Service, error) + Start func() error + Stop func() error + Update func(*Service) error + var DefaultRuntime Runtime = NewRuntime() + func NewRuntime(opts ...Option) Runtime + type Service struct + Exec string + Name string + Path string + Source string + Version string