From 208daf7d03a32a4feaa6d8daeed101031df51c81 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 10 May 2013 16:58:50 -0700 Subject: [PATCH] packer: Hook interface, not hooked up yet --- packer/hook.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packer/hook.go diff --git a/packer/hook.go b/packer/hook.go new file mode 100644 index 000000000..bcf963711 --- /dev/null +++ b/packer/hook.go @@ -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{}) +}