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 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 GracefulShutdownTriggerClear ¶ added in v0.2.0
func GracefulShutdownTriggerDir ¶ added in v0.2.0
func GracefulShutdownTriggerFromNamespaceName ¶ added in v0.2.0
func GracefulShutdownTriggerInitiate ¶ added in v0.2.0
func InitializePrivateDirectories ¶ added in v0.2.0
func InitializeSharedDirectories ¶ added in v0.0.4
func VmGracefulShutdownTriggerClear ¶ added in v0.2.0
func VmGracefulShutdownTriggerClear(baseDir string, vm *v1.VirtualMachine) error
func VmHasGracefulShutdownTrigger ¶ added in v0.2.0
func VmHasGracefulShutdownTrigger(baseDir string, vm *v1.VirtualMachine) (bool, error)
Types ¶
type OnShutdownCallback ¶ added in v0.3.0
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.