Versions in this module Expand all Collapse all v0 v0.2.0 Oct 3, 2026 v0.1.0 Oct 1, 2026 Changes in this version + type ActionResult struct + Changed bool + Name string + type CreateResult struct + Changed bool + Error string + Name string + type Darwin struct + func NewDarwinProvider() *Darwin + func (d *Darwin) Create(_ context.Context, _ Entry) (*CreateResult, error) + func (d *Darwin) Delete(_ context.Context, _ string) (*DeleteResult, error) + func (d *Darwin) Disable(_ context.Context, _ string) (*ActionResult, error) + func (d *Darwin) Enable(_ context.Context, _ string) (*ActionResult, error) + func (d *Darwin) Get(_ context.Context, _ string) (*Info, error) + func (d *Darwin) List(_ context.Context) ([]Info, error) + func (d *Darwin) Restart(_ context.Context, _ string) (*ActionResult, error) + func (d *Darwin) Start(_ context.Context, _ string) (*ActionResult, error) + func (d *Darwin) Stop(_ context.Context, _ string) (*ActionResult, error) + func (d *Darwin) Update(_ context.Context, _ Entry) (*UpdateResult, error) + type Debian struct + func NewDebianProvider(logger *slog.Logger, fs avfs.VFS, fileDeployer file.Deployer, ...) *Debian + func (d *Debian) Create(ctx context.Context, entry Entry) (*CreateResult, error) + func (d *Debian) Delete(ctx context.Context, name string) (*DeleteResult, error) + func (d *Debian) Disable(ctx context.Context, name string) (*ActionResult, error) + func (d *Debian) Enable(ctx context.Context, name string) (*ActionResult, error) + func (d *Debian) Get(ctx context.Context, name string) (*Info, error) + func (d *Debian) List(ctx context.Context) ([]Info, error) + func (d *Debian) Restart(ctx context.Context, name string) (*ActionResult, error) + func (d *Debian) Start(ctx context.Context, name string) (*ActionResult, error) + func (d *Debian) Stop(ctx context.Context, name string) (*ActionResult, error) + func (d *Debian) Update(ctx context.Context, entry Entry) (*UpdateResult, error) + type DeleteResult struct + Changed bool + Error string + Name string + type Entry struct + Name string + Object string + type Info struct + Description string + Enabled bool + Name string + PID int + Status string + type Linux struct + func NewLinuxProvider() *Linux + func (l *Linux) Create(_ context.Context, _ Entry) (*CreateResult, error) + func (l *Linux) Delete(_ context.Context, _ string) (*DeleteResult, error) + func (l *Linux) Disable(_ context.Context, _ string) (*ActionResult, error) + func (l *Linux) Enable(_ context.Context, _ string) (*ActionResult, error) + func (l *Linux) Get(_ context.Context, _ string) (*Info, error) + func (l *Linux) List(_ context.Context) ([]Info, error) + func (l *Linux) Restart(_ context.Context, _ string) (*ActionResult, error) + func (l *Linux) Start(_ context.Context, _ string) (*ActionResult, error) + func (l *Linux) Stop(_ context.Context, _ string) (*ActionResult, error) + func (l *Linux) Update(_ context.Context, _ Entry) (*UpdateResult, error) + type Provider interface + Create func(ctx context.Context, entry Entry) (*CreateResult, error) + Delete func(ctx context.Context, name string) (*DeleteResult, error) + Disable func(ctx context.Context, name string) (*ActionResult, error) + Enable func(ctx context.Context, name string) (*ActionResult, error) + Get func(ctx context.Context, name string) (*Info, error) + List func(ctx context.Context) ([]Info, error) + Restart func(ctx context.Context, name string) (*ActionResult, error) + Start func(ctx context.Context, name string) (*ActionResult, error) + Stop func(ctx context.Context, name string) (*ActionResult, error) + Update func(ctx context.Context, entry Entry) (*UpdateResult, error) + type UpdateResult struct + Changed bool + Error string + Name string