package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev

# Functions

NewHook returns a Hook object with the provided name and params.
NewHookWithEnv returns a Hook object with the provided name, params and ExtraEnv.
NewSimpleHook returns a Hook object with just a name.

# Constants

HOOK_CANNOT_GET_EXIT_STATUS is returned when after execution, we fail to get the exit code for the hook.
HOOK_DOES_NOT_EXIST is returned when the hook cannot be found.
HOOK_GENERIC_ERROR is returned for unknown errors.
HOOK_INVALID_NAME is returned if a hook has an invalid name.
HOOK_STAT_FAILED is returned when the hook exists, but stat on it fails.
HOOK_SUCCESS is returned when the hook worked.
HOOK_VTROOT_ERROR is returned if VTROOT is not set properly.

# Structs

Hook is the input structure for this library.
HookResult is returned by the Execute method.

# Type aliases

WaitFunc is a return type for the Pipe methods.