executor

package
v0.0.1-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCookie = &Cookie{
	Name:   "",
	Path:   "",
	Domain: "",
	Value:  "",
}
View Source
var DefaultHTTPConnection = &Connection{
	Timeout: defTimeoutInSeconds * time.Second,
	Proxy:   "",
}

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Kind  string
	Value string
}

type Connection

type Connection struct {
	Timeout time.Duration
	Proxy   string
}
type Cookie struct {
	Name   string
	Path   string
	Domain string
	Value  string
}

type HTTP

type HTTP struct {
	URL         string
	Method      string
	Body        string
	Host        string
	Headers     map[string][]string
	QueryParams map[string][]string
	Connection  *Connection
	Cookies     []*Cookie
	Auth        *Auth
}

func (*HTTP) Execute

func (action *HTTP) Execute() (Variables, errors.Error)

type Variables

type Variables interface {
	SetStatusCode(code int)
	SetBody(body []byte)
	SetToContext(ctx *hcl.EvalContext)
	SetHeaders(headers map[string][]string)
}

Jump to

Keyboard shortcuts

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