Documentation
¶
Index ¶
- type LaunchdServiceReference
- type LaunchdSupport
- type LaunchdUserManager
- func (m *LaunchdUserManager) Apply(ctx context.Context, spec provider.UserServiceInstallSpec) error
- func (m *LaunchdUserManager) Down(ctx context.Context, name provider.ServiceName) error
- func (m *LaunchdUserManager) Logs(ctx context.Context, name provider.ServiceName, ...) error
- func (m *LaunchdUserManager) Platform() string
- func (m *LaunchdUserManager) Restart(ctx context.Context, name provider.ServiceName) error
- type SystemdUserManager
- func (m *SystemdUserManager) Apply(ctx context.Context, spec provider.UserServiceInstallSpec) error
- func (m *SystemdUserManager) Down(ctx context.Context, name provider.ServiceName) error
- func (m *SystemdUserManager) Logs(ctx context.Context, name provider.ServiceName, ...) error
- func (m *SystemdUserManager) Platform() string
- func (m *SystemdUserManager) Restart(ctx context.Context, name provider.ServiceName) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LaunchdServiceReference ¶ added in v0.2.0
LaunchdServiceReference describes where a launchd service is or should be addressed.
func ResolveLaunchdService ¶ added in v0.2.0
func ResolveLaunchdService(ctx context.Context, uid int, name provider.ServiceName) (LaunchdServiceReference, error)
type LaunchdSupport ¶ added in v0.2.0
type LaunchdSupport struct {
Domain string
}
LaunchdSupport describes the current launchd session prerequisites.
func CheckLaunchdSupport ¶ added in v0.2.0
type LaunchdUserManager ¶
type LaunchdUserManager struct {
// contains filtered or unexported fields
}
func NewLaunchdUserManager ¶
func NewLaunchdUserManager(homeDir string, uid int) *LaunchdUserManager
func (*LaunchdUserManager) Apply ¶
func (m *LaunchdUserManager) Apply(ctx context.Context, spec provider.UserServiceInstallSpec) error
func (*LaunchdUserManager) Down ¶
func (m *LaunchdUserManager) Down(ctx context.Context, name provider.ServiceName) error
func (*LaunchdUserManager) Logs ¶
func (m *LaunchdUserManager) Logs(ctx context.Context, name provider.ServiceName, opts provider.UserServiceLogsOptions) error
func (*LaunchdUserManager) Platform ¶
func (m *LaunchdUserManager) Platform() string
func (*LaunchdUserManager) Restart ¶
func (m *LaunchdUserManager) Restart(ctx context.Context, name provider.ServiceName) error
type SystemdUserManager ¶
type SystemdUserManager struct {
// contains filtered or unexported fields
}
func NewSystemdUserManager ¶
func NewSystemdUserManager(homeDir string) *SystemdUserManager
func (*SystemdUserManager) Apply ¶
func (m *SystemdUserManager) Apply(ctx context.Context, spec provider.UserServiceInstallSpec) error
func (*SystemdUserManager) Down ¶
func (m *SystemdUserManager) Down(ctx context.Context, name provider.ServiceName) error
func (*SystemdUserManager) Logs ¶
func (m *SystemdUserManager) Logs(ctx context.Context, name provider.ServiceName, opts provider.UserServiceLogsOptions) error
func (*SystemdUserManager) Platform ¶
func (m *SystemdUserManager) Platform() string
func (*SystemdUserManager) Restart ¶
func (m *SystemdUserManager) Restart(ctx context.Context, name provider.ServiceName) error
Click to show internal directories.
Click to hide internal directories.