Versions in this module Expand all Collapse all v0 v0.1.2 Jun 29, 2013 v0.1.1 Jun 29, 2013 v0.1.0 Jun 28, 2013 Changes in this version + const DebugConfigKey + const HookProvision + const UiColorBlue + const UiColorCyan + const UiColorGreen + const UiColorMagenta + const UiColorRed + const UiColorYellow + const Version + const VersionPrerelease + type Artifact interface + BuilderId func() string + Destroy func() error + Files func() []string + Id func() string + String func() string + type Build interface + Cancel func() + Name func() string + Prepare func() error + Run func(Ui, Cache) ([]Artifact, error) + SetDebug func(bool) + type Builder interface + Cancel func() + Prepare func(...interface{}) error + Run func(ui Ui, hook Hook, cache Cache) (Artifact, error) + type BuilderFunc func(name string) (Builder, error) + type Cache interface + Lock func(string) string + RLock func(string) (string, bool) + RUnlock func(string) + Unlock func(string) + type ColoredUi struct + Color UiColor + ErrorColor UiColor + Ui Ui + func (u *ColoredUi) Ask(query string) (string, error) + func (u *ColoredUi) Error(message string) + func (u *ColoredUi) Message(message string) + func (u *ColoredUi) Say(message string) + type Command interface + Help func() string + Run func(env Environment, args []string) int + Synopsis func() string + type CommandFunc func(name string) (Command, error) + type Communicator interface + Download func(string, io.Writer) error + Start func(*RemoteCmd) error + Upload func(string, io.Reader) error + type ComponentFinder struct + Builder BuilderFunc + Command CommandFunc + Hook HookFunc + PostProcessor PostProcessorFunc + Provisioner ProvisionerFunc + type DispatchHook struct + Mapping map[string][]Hook + func (h *DispatchHook) Run(name string, ui Ui, comm Communicator, data interface{}) error + type Environment interface + Builder func(string) (Builder, error) + Cache func() Cache + Cli func([]string) (int, error) + Hook func(string) (Hook, error) + PostProcessor func(string) (PostProcessor, error) + Provisioner func(string) (Provisioner, error) + Ui func() Ui + func NewEnvironment(config *EnvironmentConfig) (resultEnv Environment, err error) + type EnvironmentConfig struct + Cache Cache + Commands []string + Components ComponentFinder + Ui Ui + func DefaultEnvironmentConfig() *EnvironmentConfig + type FileCache struct + CacheDir string + func (f *FileCache) Lock(key string) string + func (f *FileCache) RLock(key string) (string, bool) + func (f *FileCache) RUnlock(key string) + func (f *FileCache) Unlock(key string) + type Hook interface + Run func(string, Ui, Communicator, interface{}) error + type HookFunc func(name string) (Hook, error) + type MultiError struct + Errors []error + func (e *MultiError) Error() string + type PostProcessor interface + Configure func(interface{}) error + PostProcess func(Ui, Artifact) (Artifact, error) + type PostProcessorFunc func(name string) (PostProcessor, error) + type PrefixedUi struct + MessagePrefix string + SayPrefix string + Ui Ui + func (u *PrefixedUi) Ask(query string) (string, error) + func (u *PrefixedUi) Error(message string) + func (u *PrefixedUi) Message(message string) + func (u *PrefixedUi) Say(message string) + type ProvisionHook struct + Provisioners []Provisioner + func (h *ProvisionHook) Run(name string, ui Ui, comm Communicator, data interface{}) error + type Provisioner interface + Prepare func(...interface{}) error + Provision func(Ui, Communicator) error + type ProvisionerFunc func(name string) (Provisioner, error) + type ReaderWriterUi struct + Reader io.Reader + Writer io.Writer + func (rw *ReaderWriterUi) Ask(query string) (string, error) + func (rw *ReaderWriterUi) Error(message string) + func (rw *ReaderWriterUi) Message(message string) + func (rw *ReaderWriterUi) Say(message string) + type RemoteCmd struct + Command string + ExitStatus int + Exited bool + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + func (r *RemoteCmd) Wait() + type Template struct + Builders map[string]rawBuilderConfig + Hooks map[string][]string + PostProcessors [][]rawPostProcessorConfig + Provisioners []rawProvisionerConfig + func ParseTemplate(data []byte) (t *Template, err error) + func (t *Template) Build(name string, components *ComponentFinder) (b Build, err error) + func (t *Template) BuildNames() []string + type Ui interface + Ask func(string) (string, error) + Error func(string) + Message func(string) + Say func(string) + type UiColor uint