Documentation
¶
Overview ¶
Package systemd provides systemd-specific platform implementations.
Index ¶
- Constants
- 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) SetUnitGenerationTimeout(timeout time.Duration)
- 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 ¶
View Source
const ( UnitSuffixContainer = ".container" UnitSuffixNetwork = ".network" UnitSuffixVolume = ".volume" UnitSuffixBuild = ".build" UnitSuffixService = ".service" )
Unit type suffix constants for Quadlet unit files. These suffixes distinguish different types of managed resources in systemd dependencies.
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.
func (*Lifecycle) SetUnitGenerationTimeout ¶ added in v0.24.7
SetUnitGenerationTimeout sets the timeout for waiting for units to be generated. This is primarily useful for testing.
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.