api

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateGremlinURL

func ValidateGremlinURL(ctx *cli.Context) (string, error)

ValidateGremlinURL .

Types

type GremlinClient

type GremlinClient interface {
	SetRecipes(topology, scenarios io.Reader, header, pattern string) (string, error)
	RecipeResults(id string, checks io.Reader) (*RecipeResults, error)
	DeleteRecipe(id string) (interface{}, error)
}

GremlinClient .

func NewGremlinClient

func NewGremlinClient(ctx *cli.Context) (GremlinClient, error)

NewGremlinClient .

type RecipeChecks

type RecipeChecks struct {
	Checklist json.RawMessage `json:"checklist"`
}

RecipeChecks .

type RecipeResults

type RecipeResults struct {
	Results []map[string]interface{} `json:"results"`
}

RecipeResults .

type RecipeRun

type RecipeRun struct {
	Topology  json.RawMessage `json:"topology" yaml:"topology"`
	Scenarios json.RawMessage `json:"scenarios" yaml:"scenarios"`
	Header    string          `json:"header" yaml:"header"`
	Pattern   string          `json:"header_pattern" yaml:"header_pattern"`
}

RecipeRun .

Jump to

Keyboard shortcuts

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