Documentation
¶
Overview ¶
Package systemd provides systemd-specific platform implementations.
Index ¶
- type Lifecycle
- func (l *Lifecycle) Name() string
- func (l *Lifecycle) Reload(ctx context.Context) error
- func (l *Lifecycle) Restart(ctx context.Context, name string) error
- func (l *Lifecycle) RestartMany(ctx context.Context, names []string) map[string]error
- func (l *Lifecycle) Start(ctx context.Context, name string) error
- func (l *Lifecycle) StartMany(ctx context.Context, names []string) map[string]error
- func (l *Lifecycle) Status(ctx context.Context, name string) (*platform.ServiceStatus, error)
- func (l *Lifecycle) Stop(ctx context.Context, name string) error
- func (l *Lifecycle) StopMany(ctx context.Context, names []string) map[string]error
- type Renderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lifecycle ¶
type Lifecycle struct {
// contains filtered or unexported fields
}
Lifecycle implements the platform.Lifecycle interface for systemd.
func NewLifecycle ¶
func NewLifecycle( unitManager systemd.UnitManager, connectionFactory systemd.ConnectionFactory, userMode bool, logger log.Logger, ) *Lifecycle
NewLifecycle creates a new systemd Lifecycle implementation.
func (*Lifecycle) RestartMany ¶
RestartMany restarts multiple services in dependency order.
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer implements platform.Renderer for systemd/Quadlet.
func NewRenderer ¶
NewRenderer creates a new systemd renderer.
Click to show internal directories.
Click to hide internal directories.