Documentation
¶
Index ¶
Constants ¶
View Source
const TypeName = "go2chef.source.local"
TypeName is the name of this source plugin
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Source ¶
type Source struct { SourceName string `mapstructure:"name"` Path string `mapstructure:"path"` Archive bool `mapstructure:"archive"` // contains filtered or unexported fields }
Source implements a local filesystem source plugin that copies files from a directory on local filesystem to temp for use. Paths are relative to the current working directory of the go2chef process.
func (*Source) DownloadToPath ¶
DownloadToPath performs the actual copy of files to the working directory. We copy rather than just setting downloadPath to avoid side effects from steps affecting the original source location.
Click to show internal directories.
Click to hide internal directories.