watchdog

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWatchdogListWatchFromClient

func NewWatchdogListWatchFromClient(virtShareDir string, watchdogTimeout int) cache.ListerWatcher

func WatchdogFileDirectory

func WatchdogFileDirectory(baseDir string) string

func WatchdogFileExists

func WatchdogFileExists(baseDir string, vm *v1.VirtualMachine) (bool, error)

func WatchdogFileFromNamespaceName

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

func WatchdogFileIsExpired

func WatchdogFileIsExpired(timeoutSeconds int, baseDir string, vm *v1.VirtualMachine) (bool, error)

func WatchdogFileRemove

func WatchdogFileRemove(baseDir string, vm *v1.VirtualMachine) error

func WatchdogFileUpdate

func WatchdogFileUpdate(watchdogFile string) error

Types

type WatchdogListWatcher

type WatchdogListWatcher struct {
	// contains filtered or unexported fields
}

func (*WatchdogListWatcher) List

func (*WatchdogListWatcher) ResultChan

func (d *WatchdogListWatcher) ResultChan() <-chan watch.Event

func (*WatchdogListWatcher) Stop

func (d *WatchdogListWatcher) Stop()

func (*WatchdogListWatcher) Watch

Jump to

Keyboard shortcuts

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