heroku

package
v0.0.0-...-1316712 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HEADER_ACCEPT       = "application/vnd.heroku+json; version=3"
	HEADER_CONTENT_TYPE = "application/json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Id         string      `json:"id"`
	SourceBlob *SourceBlob `json:"source_blob"`
	Status     string      `json:"status"`
}

type Client

type Client struct {
	Token string
	Debug bool
	// contains filtered or unexported fields
}

func NewClient

func NewClient(token string) *Client

func (*Client) BaseUrl

func (c *Client) BaseUrl() string

func (*Client) BuildCreate

func (c *Client) BuildCreate(appId string, sourceBlob *SourceBlob) (*Build, *http.Response, error)

func (*Client) BuildInfo

func (c *Client) BuildInfo(appId string, id string) (*Build, *http.Response, error)

func (*Client) MakeRequest

func (c *Client) MakeRequest(method, url string, body *[]byte) (*http.Response, error)

type SourceBlob

type SourceBlob struct {
	Checksum string `json:"checksum,omitempty"`
	Url      string `json:"url"`
	Version  string `json:"version"`
}

Jump to

Keyboard shortcuts

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