packer: Hook interface, not hooked up yet

This commit is contained in:
Mitchell Hashimoto 2013-05-10 16:58:50 -07:00
parent de03e97643
commit 208daf7d03
1 changed files with 12 additions and 0 deletions

12
packer/hook.go Normal file
View File

@ -0,0 +1,12 @@
package packer
// A Hook is used to hook into an arbitrarily named location in a build,
// allowing custom behavior to run at certain points along a build.
//
// Run is called when the hook is called, with the name of the hook and
// arbitrary data associated with it. To know what format the data is in,
// you must reference the documentation for the specific hook you're interested
// in.
type Hook interface {
Run(string, interface{})
}