Versions in this module Expand all Collapse all v0 v0.1.1 May 30, 2014 Changes in this version type RequestOptions + RawBodyLength int64 v0.1.0 May 30, 2014 Changes in this version + type Client struct + BaseUrl *url.URL + Deploys *DeploysService + Sites *SitesService + UserAgent string + func NewClient(config *Config) *Client + func (c *Client) Request(method, path string, options *RequestOptions, decodeTo interface{}) (*Response, error) + type Config struct + AccessToken string + BaseUrl string + ClientId string + ClientSecret string + HttpClient *http.Client + UserAgent string + type Deploy struct + CreatedAt Timestamp + DeployUrl string + ErrorMessage string + Id string + Required []string + ScreenshotUrl string + SiteId string + State string + UpdatedAt Timestamp + UserId string + func (deploy *Deploy) Reload() (*Response, error) + func (deploy *Deploy) Restore() (*Response, error) + func (deploy *Deploy) WaitForReady(timeout time.Duration) error + type DeployInfo struct + DeployId string + Id string + Required []string + type DeploysService struct + func (d *DeploysService) Get(id string) (*Deploy, *Response, error) + func (s *DeploysService) Create(dirOrZip string) (*Deploy, *Response, error) + func (s *DeploysService) List(options *ListOptions) ([]Deploy, *Response, error) + type ErrorResponse struct + Message string + Response *http.Response + func (r *ErrorResponse) Error() string + type ListOptions struct + Page int + PerPage int + type RequestOptions struct + Headers *map[string]string + JsonBody interface{} + QueryParams *url.Values + RawBody io.Reader + type Response struct + FirstPage int + LastPage int + NextPage int + PrevPage int + type Site struct + AdminUrl string + Claimed bool + CreatedAt Timestamp + CustomDomain string + DeployUrl string + Deploys *DeploysService + Id string + Name string + NotificationEmail string + Password string + Premium bool + ScreenshotUrl string + State string + UpdatedAt Timestamp + Url string + UserId string + func (site *Site) Destroy() (*Response, error) + func (site *Site) Reload() (*Response, error) + func (site *Site) Update() (*Response, error) + type SiteAttributes struct + CustomDomain string + Name string + NotificationEmail string + Password string + type SitesService struct + func (s *SitesService) Create(attributes *SiteAttributes) (*Site, *Response, error) + func (s *SitesService) Get(id string) (*Site, *Response, error) + func (s *SitesService) List(options *ListOptions) ([]Site, *Response, error) + type Timestamp struct + func (t *Timestamp) UnmarshalJSON(data []byte) (err error) + func (t Timestamp) Equal(u Timestamp) bool + func (t Timestamp) String() string