awsutil

package
v0.0.0-...-218c583 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2017 License: Apache-2.0, Apache-2.0, BSD-2-Clause Imports: 8 Imported by: 0

README

awsutil is a utility package from the Empire project for testing AWS request/response cycles.

See https://github.com/remind101/empire/blob/master/pkg/awsutil

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cycle

type Cycle struct {
	Request  Request
	Response Response
}

Cycle represents a request-response cycle.

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler is an http.Handler that will play back cycles.

func NewHandler

func NewHandler(c []Cycle) *Handler

NewHandler returns a new Handler instance.

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Request

type Request struct {
	Method     string
	RequestURI string
	Operation  string
	Body       string
}

Request represents an expected AWS API Operation.

func (*Request) String

func (r *Request) String() string

type Response

type Response struct {
	StatusCode int
	Body       string
}

Response represents a predefined response.

Jump to

Keyboard shortcuts

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