Documentation ¶
Overview ¶
Package httpresource provides methods to download resources over HTTP(s)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPInfo ¶
type HTTPInfo struct { URL types.TrimmedString `json:"url"` AuthMethod types.TrimmedString `json:"authMethod"` Username types.TrimmedString `json:"username"` Password types.TrimmedString `json:"password"` AllowInsecureDownload bool `json:"allowInsecureDownload"` }
HTTPInfo defines the accepted SourceInfo attributes and their json definition
type HTTPResource ¶
type HTTPResource struct { Handler handler.IHTTPHandler // contains filtered or unexported fields }
HTTPResource represents an HTTP(s) resource
func NewHTTPResource ¶
func NewHTTPResource(context context.T, info string, bridge ssmparameterresolver.ISsmParameterResolverBridge) (resource *HTTPResource, err error)
NewHTTPResource creates a new HTTP resource
func (*HTTPResource) DownloadRemoteResource ¶
func (resource *HTTPResource) DownloadRemoteResource(fileSystem filemanager.FileSystem, downloadPath string) (err error, result *remoteresource.DownloadResult)
DownloadRemoteResource downloads a HTTP resource into a specific download path
func (*HTTPResource) ValidateLocationInfo ¶
func (resource *HTTPResource) ValidateLocationInfo() (isValid bool, err error)
ValidateLocationInfo validates attribute values of an HTTP resource
Directories ¶
Path | Synopsis |
---|---|
Package handler provides methods to access resources over HTTP(s)
|
Package handler provides methods to access resources over HTTP(s) |
auth/digest
Package digest defines functionality required to support digest authorization
|
Package digest defines functionality required to support digest authorization |
Click to show internal directories.
Click to hide internal directories.