virtlauncher

package
v0.3.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 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 added in v0.2.0

func GracefulShutdownTriggerClear(triggerFile string) error

func GracefulShutdownTriggerDir added in v0.2.0

func GracefulShutdownTriggerDir(baseDir string) string

func GracefulShutdownTriggerFromNamespaceName added in v0.2.0

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

func GracefulShutdownTriggerInitiate added in v0.2.0

func GracefulShutdownTriggerInitiate(triggerFile string) error

func InitializePrivateDirectories added in v0.2.0

func InitializePrivateDirectories(baseDir string) error

func InitializeSharedDirectories added in v0.0.4

func InitializeSharedDirectories(baseDir string) error

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

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