client

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintErr

func PrintErr(err string)

PrintErr formats an application error.

func Version

func Version() string

Version prints the version of the client then exits.

Types

type Client

type Client struct {
	Token string `json:"bearerToken"` // The API authorization token to the server.
	Url   string `json:"URL"`         // The URL to the docker-deploy-server endpoint.
}

Client represents an instance of a connection to the server.

func New

func New(token string, url string) *Client

New is a factory function that returns a new client instance.

func (*Client) Deploy

func (c *Client) Deploy(repository string, tag string, environment string) (string, error)

Deploy submits a deploy request to the server.

func (*Client) Status

func (c *Client) Status(deployID string) (string, error)

Status prints out the status of a previous deploy.

Jump to

Keyboard shortcuts

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