api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2014 License: BSD-4-Clause, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppsCreate

func AppsCreate(app string) (*http.Response, error)

func AppsDestroy

func AppsDestroy(id string) (*http.Response, error)

func AppsList

func AppsList() (*http.Response, error)

func AppsShow

func AppsShow(app string) (*http.Response, error)

func Do

func Do(req map[string]interface{}) (*http.Response, error)

Execute an API request and return its response/error

func Login

func Login(email, password string) (*http.Response, error)

func Logs

func Logs(url string, stream bool, n int) (*http.Response, error)

func LogsURL

func LogsURL(app string) (*http.Response, error)

func Run

func Run(app string, command []string, env map[string]string) (*http.Response, error)

Types

type BadRequestError

type BadRequestError struct {
	Errors map[string][]string `json: "errors"`
}

type InternalError

type InternalError struct {
	Error string `json: "error"`
}

Jump to

Keyboard shortcuts

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