core

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2017 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version of REX-Ray.
	Version *apitypes.VersionInfo

	// BuildType is the build type of this binary.
	BuildType = "client+agent+controller"

	// Debug is whether or not the REXRAY_DEBUG environment variable is set
	// to a truthy value.
	Debug, _ = strconv.ParseBool(os.Getenv("REXRAY_DEBUG"))
)

Functions

func IsExitSignal added in v0.5.0

func IsExitSignal(s os.Signal) (bool, bool)

IsExitSignal returns a flag indicating whether a signal is SIGKILL, SIGHUP, SIGINT, SIGTERM, or SIGQUIT. The second return value is whether it is a graceful exit. This flag is true for SIGTERM, SIGHUP, SIGINT, and SIGQUIT.

func RegisterSignalHandler added in v0.5.0

func RegisterSignalHandler(f SignalHandlerFunc)

RegisterSignalHandler registers a SignalHandlerFunc.

func TrapSignals added in v0.5.0

func TrapSignals(ctx apitypes.Context)

TrapSignals tells the process to trap incoming process signals.

Types

type SignalHandlerFunc added in v0.5.0

type SignalHandlerFunc func(ctx apitypes.Context, s os.Signal)

SignalHandlerFunc is a function that can be registered with `core.RegisterSignalHandler` to receive a callback when the process receives a signal.

Jump to

Keyboard shortcuts

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