Versions in this module Expand all Collapse all v1 v1.1.0 Sep 17, 2015 Changes in this version + const EnvNameMaxLength + const EnvValueMaxLength + var CurrentUser *users.User + var LoginAbortedErr = errors.New("canceled by user.") + func AddonDestroy(app, addonID string) error + func AppsRestart(app string, scope *AppsRestartParams) (*http.Response, error) + func AppsScale(app string, params *AppsScaleParams) (*http.Response, error) + func Auth() (*users.User, error) + func AuthFromConfig() (*users.User, error) + func AuthUser(login, passwd string) (*users.User, error) + func CollaboratorRemove(app string, id string) error + func DomainsRemove(app string, id string) error + func IsRequestFailedError(err error) bool + func KeysDelete(id string) error + func NewRequestFailedError(res *http.Response, req *APIRequest) error + func ParseJSON(res *http.Response, data interface{}) error + func Self() (*users.User, error) + func SignUp(email, password string) error + func VariableUnset(app string, id string) error + type APIRequest struct + Endpoint string + Expected Statuses + HTTPRequest *http.Request + Method string + NoAuth bool + Params interface{} + Token string + URL string + func (req *APIRequest) BuildQueryFromParams() (url.Values, error) + func (req *APIRequest) Do() (*http.Response, error) + func (req *APIRequest) FillDefaultValues() error + type Addon struct + AddonProvider *AddonProvider + AddonProviderID string + ID string + Plan *Plan + PlanID string + ResourceID string + func AddonsList(app string) ([]*Addon, error) + type AddonProvider struct + ID string + LogoURL string + Name string + func AddonProvidersList() ([]*AddonProvider, error) + type AddonRes struct + Addon Addon + Message string + Variables []string + func AddonProvision(app, addon, planID string) (AddonRes, error) + func AddonUpgrade(app, addonID, planID string) (AddonRes, error) + type AddonsRes struct + Addons []*Addon + type App struct + CreatedAt time.Time + GitUrl string + Id string + Name string + Owner struct{ ... } + UpdatedAt time.Time + func (app App) String() string + type AppsPsRes struct + Containers []Container + type AppsRestartParams struct + Scope []string + type AppsScaleParams struct + Containers []Container type BadRequestError + ErrMessage string + func (err BadRequestError) Error() string + type Collaborator struct + Email string + ID string + Status string + Username string + func CollaboratorAdd(app string, email string) (Collaborator, error) + func CollaboratorsList(app string) ([]Collaborator, error) + type CollaboratorRes struct + Collaborator Collaborator + type CollaboratorsRes struct + Collaborators []Collaborator + type Container struct + Amount int + Command string + Name string + Size string + func AppsPs(app string) ([]Container, error) + type CreateAppParams struct + App *App + type Domain struct + ID string + Name string + SSL bool + TlsCert string + TlsKey string + Validity time.Time + func DomainsAdd(app string, d Domain) (Domain, error) + func DomainsList(app string) ([]Domain, error) + func DomainsUpdate(app, id, cert, key string) (Domain, error) + type DomainRes struct + Domain Domain + type DomainsRes struct + Domains []Domain + type Key struct + Content string + ID string + Name string + func KeysAdd(name string, content string) (*Key, error) + func KeysList() ([]Key, error) + type KeyIndex struct + Keys []Key + type ListParams struct + AddonProviders []*AddonProvider + type LoginError struct + Message string + Success bool + func (err *LoginError) Error() string + type LoginResponse struct + AuthenticationToken string + User *users.User + type NotFoundError struct + Err string + Resource string + func (err NotFoundError) Error() string + type Operation struct + CreatedAt time.Time + Error string + FinishedAt time.Time + ID string + Status string + Type string + func OperationsShow(app string, opID string) (*Operation, error) + func (op *Operation) ElapsedDuration() float64 + type OperationResponse struct + Op Operation + type PaymentRequiredError struct + ErrMessage string + URL string + func (err PaymentRequiredError) Error() string + type Plan struct + Description string + DisplayName string + ID string + LogoURL string + Name string + ShortDescription string + func AddonProviderPlansList(addon string) ([]*Plan, error) + type PlansParams struct + Plans []*Plan + type RequestFailedError struct + APIError error + Code int + Req *APIRequest + func (err *RequestFailedError) Error() string + func (err *RequestFailedError) String() string + type SelfResults struct + User *users.User + type Statuses []int + func (statuses Statuses) Contains(status int) bool + type UnprocessableEntity struct + Errors map[string][]string + func (err UnprocessableEntity) Error() string + type Variable struct + ID string + Name string + Value string + func VariableSet(app string, name string, value string) (*Variable, int, error) + type VariableSetParams struct + Variable *Variable + type Variables []*Variable + func VariablesList(app string) (Variables, error) + func VariablesListWithoutAlias(app string) (Variables, error) + func (vs Variables) Contains(name string) (*Variable, bool) + type VariablesRes struct + Variables Variables v1.0.0-rc1 Apr 15, 2015 v0 v0.3.5 Sep 23, 2014 Changes in this version + func AppsCreate(app string) (*http.Response, error) + func AppsDestroy(id string) (*http.Response, error) + func AppsList() (*http.Response, error) + func AppsShow(app string) (*http.Response, error) + func Do(req map[string]interface{}) (*http.Response, error) + func Login(email, password string) (*http.Response, error) + func Logs(url string, stream bool, n int) (*http.Response, error) + func LogsURL(app string) (*http.Response, error) + func Run(app string, command []string, env map[string]string) (*http.Response, error) + type BadRequestError struct + Errors map[string][]string + type InternalError struct + Error string