client

package
v0.0.0-...-f38afdf Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	halgo.Links
	ApplicationId string `json:"applicationId"`
}

type Chaos

type Chaos struct {
	halgo.Links
	ApplicationUrl string  `json:"application"`
	ScheduleUrl    string  `json:"schedule"`
	Probobility    float64 `json:"probability"`
}

type Client

type Client struct {
	Navigator  *halgo.Navigator
	Host       string
	HttpClient *http.Client
	Logger     lager.Logger
}

func New

func New(host string, logger lager.Logger) Client

func (Client) CreateApp

func (c Client) CreateApp(applicationId string) (string, error)

func (Client) CreateChaos

func (c Client) CreateChaos(applicationLink string, scheduleLink string, probability float64) (string, error)

func (Client) CreateSchedule

func (c Client) CreateSchedule(name string, expression string) (string, error)

func (Client) Delete

func (c Client) Delete(url string) error

type Event

type Event struct {
	halgo.Links
	ExecutedAt              string
	TerminatedInstances     []int
	TotalInstanceCount      int
	TerminatedInstanceCount int
	Chaos                   Chaos
}

type Schedule

type Schedule struct {
	halgo.Links
	Name       string `json:"name"`
	Expression string `json:"expression"`
}

Jump to

Keyboard shortcuts

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