service

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Launchd

type Launchd struct{}

func (*Launchd) Install

func (l *Launchd) Install(ctx context.Context, name, execPath, namespace string) error

func (*Launchd) IsInstalled

func (l *Launchd) IsInstalled(name string) bool

func (*Launchd) Remove

func (l *Launchd) Remove(ctx context.Context, name string) error

func (*Launchd) ServiceName

func (l *Launchd) ServiceName(name string) string

type Service

type Service interface {
	IsInstalled(name string) bool
	Install(ctx context.Context, name, execPath, namespace string) error
	Remove(ctx context.Context, name string) error
	ServiceName(name string) string
}

func New

func New() (Service, error)

type Systemd

type Systemd struct{}

func (*Systemd) Install

func (s *Systemd) Install(ctx context.Context, name, execPath, namespace string) error

func (*Systemd) IsInstalled

func (s *Systemd) IsInstalled(name string) bool

func (*Systemd) Remove

func (s *Systemd) Remove(ctx context.Context, name string) error

func (*Systemd) ServiceName

func (s *Systemd) ServiceName(name string) string

Jump to

Keyboard shortcuts

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