Documentation
¶
Index ¶
- Constants
- func DefaultRunner(ctx context.Context, args ...string) ([]byte, error)
- func Render(p Plist) ([]byte, error)
- type Manager
- func (m *Manager) Install(ctx context.Context, args []string) error
- func (m *Manager) LogDir() string
- func (m *Manager) PlistPath() string
- func (m *Manager) Restart(ctx context.Context) error
- func (m *Manager) Status(ctx context.Context) (Status, error)
- func (m *Manager) Uninstall(ctx context.Context) error
- type Plist
- type Runner
- type Status
Constants ¶
View Source
const DefaultLabel = "dev.quacktel.serve"
DefaultLabel is the launchd label of the real agent.
Variables ¶
This section is empty.
Functions ¶
func DefaultRunner ¶
DefaultRunner runs the real launchctl.
Types ¶
type Manager ¶
type Manager struct {
Label string
Home string
UID int
Run Runner
Logger *slog.Logger
// contains filtered or unexported fields
}
Manager controls one launchd agent in the user's GUI domain.
type Plist ¶
type Plist struct {
Label string
ProgramArguments []string
// LogPath receives launchd's own stdout and stderr for the job.
LogPath string
}
Plist is the subset of a launchd job definition that quacktel writes.
Click to show internal directories.
Click to hide internal directories.