virtlauncher

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPid added in v0.9.0

func FindPid(commandNamePrefix string) (int, error)

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 InitializeDisksDirectories added in v0.3.0

func InitializeDisksDirectories(baseDir 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, vmi *v1.VirtualMachineInstance) error

func VmHasGracefulShutdownTrigger added in v0.2.0

func VmHasGracefulShutdownTrigger(baseDir string, vmi *v1.VirtualMachineInstance) (bool, error)

Types

type OnShutdownCallback added in v0.3.0

type OnShutdownCallback func(pid int)

type ProcessMonitor

type ProcessMonitor interface {
	RunForever(startTimeout time.Duration, signalStopChan chan struct{})
}

func NewProcessMonitor

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

Directories

Path Synopsis
agent-poller
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* This file is part of the KubeVirt project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
api
cli

Jump to

Keyboard shortcuts

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