virtlauncher

package
v0.5.0-alpha.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GracefulShutdownTriggerClear

func GracefulShutdownTriggerClear(triggerFile string) error

func GracefulShutdownTriggerDir

func GracefulShutdownTriggerDir(baseDir string) string

func GracefulShutdownTriggerFromNamespaceName

func GracefulShutdownTriggerFromNamespaceName(baseDir string, namespace string, name string) string

func GracefulShutdownTriggerInitiate

func GracefulShutdownTriggerInitiate(triggerFile string) error

func InitializeDisksDirectories

func InitializeDisksDirectories(baseDir string) error

func InitializePrivateDirectories

func InitializePrivateDirectories(baseDir string) error

func InitializeSharedDirectories

func InitializeSharedDirectories(baseDir string) error

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

type ProcessMonitor interface {
	RunForever(startTimeout time.Duration)
}

func NewProcessMonitor

func NewProcessMonitor(commandPrefix string,
	gracefulShutdownTriggerFile string,
	gracePeriod int,
	shutdownCallback OnShutdownCallback) ProcessMonitor

Directories

Path Synopsis
api
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL