hook

package
v0.333.2-candidate Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2016 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(args []string)

func Register

func Register(name Phase, fn Hook)

Types

type Hook

type Hook func()

type HookSet

type HookSet map[Phase]Hook
var DefaultHookSet HookSet = make(map[Phase]Hook)

func (HookSet) Main

func (h HookSet) Main(phase Phase)

func (HookSet) Register

func (h HookSet) Register(name Phase, fn Hook)

type Phase

type Phase string
const (
	PARENT_BEFORE_CLONE Phase = "parent-before-clone"
	PARENT_AFTER_CLONE  Phase = "parent-after-clone"
	CHILD_AFTER_PIVOT   Phase = "child-after-pivot"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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