awsutil

package
v0.0.0-...-b2b94d2 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2015 License: Apache-2.0, BSD-2-Clause, Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 {
	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