wget

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TYPE = "wget"

Variables

This section is empty.

Functions

func AddConfig

func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error

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 New

func New(url, mimeType string, header map[string][]string, verb string, body string, noRedirect bool) *Spec

func (*Spec) GetBlob

func (*Spec) Validate

func (s *Spec) Validate(fldPath *field.Path, ctx inputs.Context, inputFilePath string) field.ErrorList

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL