pluginhttp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Plugin = taskplugin.New("http", "0.5", exec,
		taskplugin.WithConfig(validConfig, HTTPConfig{}),
	)
)

the http plugin performs an http call

Functions

func ExecutorMetadata

func ExecutorMetadata() string

ExecutorMetadata generates json schema to validate the metadata returned by the http executor

Types

type HTTPConfig

type HTTPConfig struct {
	URL     string   `json:"url"`
	Method  string   `json:"method"`
	Body    string   `json:"body,omitempty"`
	Headers []Header `json:"headers,omitempty"`
}

HTTPConfig is the configuration needed to perform an http call

type Header struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

Header represents an http header

Jump to

Keyboard shortcuts

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