client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL  string
	Username string
	Password string
}

func New

func New(baseURL string, username string, password string) *Client

func (*Client) CreateDeploy

func (c *Client) CreateDeploy(service string, version string, destroyPrevious bool, instanceCount int) (*http.Response, error)

func (*Client) CreateTask

func (c *Client) CreateTask(service string, version string, command string) (*http.Response, error)

func (*Client) DestroyDeploy

func (c *Client) DestroyDeploy(service string, version string) (*http.Response, error)

func (*Client) GetUnits

func (c *Client) GetUnits(service string) ([]*Unit, error)

type Unit

type Unit server.VersionedUnit

type UnitsResponse

type UnitsResponse struct {
	Units []*Unit `json:"units"`
}

Jump to

Keyboard shortcuts

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