Documentation ¶
Index ¶
Constants ¶
View Source
const TypeName = "go2chef.source.s3"
TypeName is the name of this source plugin
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Source ¶
type Source struct { SourceName string `mapstructure:"name"` Region string `mapstructure:"region"` Bucket string `mapstructure:"bucket"` Key string `mapstructure:"key"` Credentials struct { AccessKeyID string `mapstructure:"access_key_id"` SecretAccessKey string `mapstructure:"secret_access_key"` Token string `mapstructure:"token"` } Archive bool `mapstructure:"archive"` // contains filtered or unexported fields }
Source implements an AWS s3 source plugin that copies files from a remote s3 bucket for use.
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.