Documentation
¶
Index ¶
Constants ¶
View Source
const TypeName = "go2chef.source.http"
TypeName is the name of this source plugin
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Source ¶
type Source struct {
SourceName string `mapstructure:"name"`
Method string `mapstructure:"http_method"`
URL string `mapstructure:"url"`
ValidStatusCodes []int `mapstructure:"valid_status_codes"`
Archive bool `mapstructure:"archive"`
OutputFilename string `mapstructure:"output_filename"`
SHA256 string `mapstructure:"sha256"`
// contains filtered or unexported fields
}
Source implements an HTTP source for resource downloads
func (*Source) DownloadToPath ¶
DownloadToPath downloads a file over HTTP to a given path, handling archive extraction if the Source.Archive parameter is true.
Click to show internal directories.
Click to hide internal directories.