Documentation
¶
Overview ¶
Package lifecycle implements machine.LifecycleService.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
machine.UnimplementedLifecycleServiceServer
// contains filtered or unexported fields
}
Service implements machine.LifecycleService.
func NewService ¶
NewService creates a new instance of the lifecycle service.
The consoleLogger is used only to log the start and the result of the install/upgrade, as these are visible on the console; the progress goes to the logger.
func (*Service) Install ¶
func (s *Service) Install(req *machine.LifecycleServiceInstallRequest, ss grpc.ServerStreamingServer[machine.LifecycleServiceInstallResponse]) (retErr error)
Install handles the installation of the machine. It ensures that only one installation or upgrade can occur at a time by using a mutex lock.
func (*Service) Upgrade ¶
func (s *Service) Upgrade(req *machine.LifecycleServiceUpgradeRequest, ss grpc.ServerStreamingServer[machine.LifecycleServiceUpgradeResponse]) (retErr error)
Upgrade handles the upgrade of the machine. It ensures that only one installation or upgrade can occur at a time by using a mutex lock.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
containerpid
Package containerpid translates container PIDs reported by containerd into the PID namespace of the calling process.
|
Package containerpid translates container PIDs reported by containerd into the PID namespace of the calling process. |
|
output
Package output streams lifecycle container output.
|
Package output streams lifecycle container output. |