Documentation ¶
Index ¶
Constants ¶
View Source
const TYPE = "wget"
Variables ¶
This section is empty.
Functions ¶
func ConfigHandler ¶
func ConfigHandler() flagsets.ConfigOptionTypeSetHandler
Types ¶
type Spec ¶
type Spec struct { inputs.InputSpecBase `json:",inline"` // URL defines the url from which the artifact is downloaded. URL string `json:"url"` // MimeType defines the mime type of the artifact. MimeType string `json:"mediaType"` // Header to be passed in the http request Header map[string][]string `json:"header"` // Verb is the http verb to be used for the request Verb string `json:"verb"` // Body is the body to be included in the http request Body string `json:"body"` // NoRedirect allows to disable redirects NoRedirect bool `json:"noRedirect"` }
func (*Spec) GetBlob ¶
func (s *Spec) GetBlob(ctx inputs.Context, info inputs.InputResourceInfo) (blobaccess.BlobAccess, string, error)
Click to show internal directories.
Click to hide internal directories.