Documentation ¶
Index ¶
- func GracefulShutdownTriggerClear(triggerFile string) error
- func GracefulShutdownTriggerDir(baseDir string) string
- func GracefulShutdownTriggerFromNamespaceName(baseDir string, namespace string, name string) string
- func GracefulShutdownTriggerInitiate(triggerFile string) error
- func InitializeDisksDirectories(baseDir string) error
- func InitializePrivateDirectories(baseDir string) error
- func InitializeSharedDirectories(baseDir string) error
- func VmGracefulShutdownTriggerClear(baseDir string, vm *v1.VirtualMachine) error
- func VmHasGracefulShutdownTrigger(baseDir string, vm *v1.VirtualMachine) (bool, error)
- type OnShutdownCallback
- type ProcessMonitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VmGracefulShutdownTriggerClear ¶
func VmGracefulShutdownTriggerClear(baseDir string, vm *v1.VirtualMachine) error
func VmHasGracefulShutdownTrigger ¶
func VmHasGracefulShutdownTrigger(baseDir string, vm *v1.VirtualMachine) (bool, error)
Types ¶
type OnShutdownCallback ¶
type OnShutdownCallback func(pid int)
type ProcessMonitor ¶
func NewProcessMonitor ¶
func NewProcessMonitor(commandPrefix string, gracefulShutdownTriggerFile string, gracePeriod int, shutdownCallback OnShutdownCallback) ProcessMonitor
Click to show internal directories.
Click to hide internal directories.