Versions in this module Expand all Collapse all v0 v0.10.1 Jun 14, 2016 Changes in this version + const CommitMessageHeader + func CheckResp(res *http.Response) error type Client + func (c *Client) DeleteWithHeaders(path string, headers http.Header) error + func (c *Client) GetWithHeaders(v interface{}, path string, headers http.Header) error + func (c *Client) PatchWithHeaders(v interface{}, path string, body interface{}, headers http.Header) error + func (c *Client) PostWithHeaders(v interface{}, path string, body interface{}, headers http.Header) error + func (c *Client) PutWithHeaders(v interface{}, path string, body interface{}, headers http.Header) error type DynoCreateOpts + Message string + type RequestHeaders struct + CommitMessage string + func (r *RequestHeaders) Headers() http.Header v0.10.0 Jan 14, 2016 Changes in this version + const DefaultAPIURL + const DefaultUserAgent + const Version + type Account struct + AllowTracking bool + Beta bool + CreatedAt time.Time + Email string + Id string + LastLogin time.Time + Name *string + UpdatedAt time.Time + Verified bool + type AccountFeature struct + CreatedAt time.Time + Description string + DocURL string + Enabled bool + Id string + Name string + State string + UpdatedAt time.Time + type AccountUpdateOpts struct + AllowTracking *bool + Beta *bool + Name *string + type Addon struct + ConfigVars []string + CreatedAt time.Time + Id string + Name string + Plan struct{ ... } + ProviderId string + UpdatedAt time.Time + type AddonCreateOpts struct + Config *map[string]string + type AddonService struct + CreatedAt time.Time + Id string + Name string + UpdatedAt time.Time + type App struct + ArchivedAt *time.Time + BuildpackProvidedDescription *string + Cert string + CreatedAt time.Time + GitURL string + Id string + Maintenance bool + Name string + Owner struct{ ... } + Region struct{ ... } + ReleasedAt *time.Time + RepoSize *int + SlugSize *int + Stack struct{ ... } + UpdatedAt time.Time + WebURL string + type AppCreateOpts struct + Name *string + Region *string + Stack *string + type AppFeature struct + CreatedAt time.Time + Description string + DocURL string + Enabled bool + Id string + Name string + State string + UpdatedAt time.Time + type AppTransfer struct + App struct{ ... } + CreatedAt time.Time + Id string + Owner struct{ ... } + Recipient struct{ ... } + State string + UpdatedAt time.Time + type AppUpdateOpts struct + Cert *string + Maintenance *bool + Name *string + type Client struct + AdditionalHeaders http.Header + Debug bool + HTTP *http.Client + Password string + URL string + UserAgent string + Username string + func (c *Client) APIReq(v interface{}, meth, path string, body interface{}) error + func (c *Client) AccountChangeEmail(password string, email string) (*Account, error) + func (c *Client) AccountChangePassword(newPassword string, password string) (*Account, error) + func (c *Client) AccountFeatureInfo(accountFeatureIdentity string) (*AccountFeature, error) + func (c *Client) AccountFeatureList(lr *ListRange) ([]AccountFeature, error) + func (c *Client) AccountFeatureUpdate(accountFeatureIdentity string, enabled bool) (*AccountFeature, error) + func (c *Client) AccountInfo() (*Account, error) + func (c *Client) AccountUpdate(password string, options *AccountUpdateOpts) (*Account, error) + func (c *Client) AddonCreate(appIdentity string, plan string, options *AddonCreateOpts) (*Addon, error) + func (c *Client) AddonDelete(appIdentity string, addonIdentity string) error + func (c *Client) AddonInfo(appIdentity string, addonIdentity string) (*Addon, error) + func (c *Client) AddonList(appIdentity string, lr *ListRange) ([]Addon, error) + func (c *Client) AddonServiceInfo(addonServiceIdentity string) (*AddonService, error) + func (c *Client) AddonServiceList(lr *ListRange) ([]AddonService, error) + func (c *Client) AddonUpdate(appIdentity string, addonIdentity string, plan string) (*Addon, error) + func (c *Client) AppCreate(options *AppCreateOpts) (*App, error) + func (c *Client) AppDelete(appIdentity string) error + func (c *Client) AppFeatureInfo(appIdentity string, appFeatureIdentity string) (*AppFeature, error) + func (c *Client) AppFeatureList(appIdentity string, lr *ListRange) ([]AppFeature, error) + func (c *Client) AppFeatureUpdate(appIdentity string, appFeatureIdentity string, enabled bool) (*AppFeature, error) + func (c *Client) AppInfo(appIdentity string) (*App, error) + func (c *Client) AppList(lr *ListRange) ([]App, error) + func (c *Client) AppTransferCreate(app string, recipient string) (*AppTransfer, error) + func (c *Client) AppTransferDelete(appTransferIdentity string) error + func (c *Client) AppTransferInfo(appTransferIdentity string) (*AppTransfer, error) + func (c *Client) AppTransferList(lr *ListRange) ([]AppTransfer, error) + func (c *Client) AppTransferUpdate(appTransferIdentity string, state string) (*AppTransfer, error) + func (c *Client) AppUpdate(appIdentity string, options *AppUpdateOpts) (*App, error) + func (c *Client) CollaboratorCreate(appIdentity string, user string, options *CollaboratorCreateOpts) (*Collaborator, error) + func (c *Client) CollaboratorDelete(appIdentity string, collaboratorIdentity string) error + func (c *Client) CollaboratorInfo(appIdentity string, collaboratorIdentity string) (*Collaborator, error) + func (c *Client) CollaboratorList(appIdentity string, lr *ListRange) ([]Collaborator, error) + func (c *Client) ConfigVarInfo(appIdentity string) (map[string]string, error) + func (c *Client) ConfigVarUpdate(appIdentity string, options map[string]*string) (map[string]string, error) + func (c *Client) Delete(path string) error + func (c *Client) DoReq(req *http.Request, v interface{}) error + func (c *Client) DomainCreate(appIdentity string, hostname string) (*Domain, error) + func (c *Client) DomainDelete(appIdentity string, domainIdentity string) error + func (c *Client) DomainInfo(appIdentity string, domainIdentity string) (*Domain, error) + func (c *Client) DomainList(appIdentity string, lr *ListRange) ([]Domain, error) + func (c *Client) DynoCreate(appIdentity string, command string, options *DynoCreateOpts) (*Dyno, error) + func (c *Client) DynoInfo(appIdentity string, dynoIdentity string) (*Dyno, error) + func (c *Client) DynoList(appIdentity string, lr *ListRange) ([]Dyno, error) + func (c *Client) DynoRestart(appIdentity string, dynoIdentity string) error + func (c *Client) DynoRestartAll(appIdentity string) error + func (c *Client) FormationBatchUpdate(appIdentity string, updates []FormationBatchUpdateOpts) ([]Formation, error) + func (c *Client) FormationInfo(appIdentity string, formationIdentity string) (*Formation, error) + func (c *Client) FormationList(appIdentity string, lr *ListRange) ([]Formation, error) + func (c *Client) FormationUpdate(appIdentity string, formationIdentity string, options *FormationUpdateOpts) (*Formation, error) + func (c *Client) Get(v interface{}, path string) error + func (c *Client) KeyCreate(publicKey string) (*Key, error) + func (c *Client) KeyDelete(keyIdentity string) error + func (c *Client) KeyInfo(keyIdentity string) (*Key, error) + func (c *Client) KeyList(lr *ListRange) ([]Key, error) + func (c *Client) LogDrainCreate(appIdentity string, url string) (*LogDrain, error) + func (c *Client) LogDrainDelete(appIdentity string, logDrainIdentity string) error + func (c *Client) LogDrainInfo(appIdentity string, logDrainIdentity string) (*LogDrain, error) + func (c *Client) LogDrainList(appIdentity string, lr *ListRange) ([]LogDrain, error) + func (c *Client) LogSessionCreate(appIdentity string, options *LogSessionCreateOpts) (*LogSession, error) + func (c *Client) NewRequest(method, path string, body interface{}) (*http.Request, error) + func (c *Client) OAuthAuthorizationCreate(scope []string, options *OAuthAuthorizationCreateOpts) (*OAuthAuthorization, error) + func (c *Client) OAuthAuthorizationDelete(oauthAuthorizationIdentity string) error + func (c *Client) OAuthAuthorizationInfo(oauthAuthorizationIdentity string) (*OAuthAuthorization, error) + func (c *Client) OAuthAuthorizationList(lr *ListRange) ([]OAuthAuthorization, error) + func (c *Client) OAuthClientCreate(name string, redirectUri string) (*OAuthClient, error) + func (c *Client) OAuthClientDelete(oauthClientIdentity string) error + func (c *Client) OAuthClientInfo(oauthClientIdentity string) (*OAuthClient, error) + func (c *Client) OAuthClientList(lr *ListRange) ([]OAuthClient, error) + func (c *Client) OAuthClientUpdate(oauthClientIdentity string, options *OAuthClientUpdateOpts) (*OAuthClient, error) + func (c *Client) OAuthTokenCreate(grant OAuthTokenCreateGrant, client OAuthTokenCreateClient, ...) (*OAuthToken, error) + func (c *Client) OrganizationAppCollaboratorCreate(appIdentity string, user string, ...) (*OrganizationAppCollaborator, error) + func (c *Client) OrganizationAppCollaboratorDelete(appIdentity string, collaboratorIdentity string) error + func (c *Client) OrganizationAppCollaboratorInfo(appIdentity string, collaboratorIdentity string) (*OrganizationAppCollaborator, error) + func (c *Client) OrganizationAppCollaboratorList(appIdentity string, lr *ListRange) ([]OrganizationAppCollaborator, error) + func (c *Client) OrganizationAppCreate(options *OrganizationAppCreateOpts) (*OrganizationApp, error) + func (c *Client) OrganizationAppInfo(appIdentity string) (*OrganizationApp, error) + func (c *Client) OrganizationAppList(lr *ListRange) ([]OrganizationApp, error) + func (c *Client) OrganizationAppListForOrganization(organizationIdentity string, lr *ListRange) ([]OrganizationApp, error) + func (c *Client) OrganizationAppTransferToAccount(appIdentity string, owner string) (*OrganizationApp, error) + func (c *Client) OrganizationAppTransferToOrganization(appIdentity string, owner string) (*OrganizationApp, error) + func (c *Client) OrganizationAppUpdateLocked(appIdentity string, locked bool) (*OrganizationApp, error) + func (c *Client) OrganizationList(lr *ListRange) ([]Organization, error) + func (c *Client) OrganizationMemberCreateOrUpdate(organizationIdentity string, email string, role string) (*OrganizationMember, error) + func (c *Client) OrganizationMemberDelete(organizationIdentity string, organizationMemberIdentity string) error + func (c *Client) OrganizationMemberList(organizationIdentity string, lr *ListRange) ([]OrganizationMember, error) + func (c *Client) OrganizationUpdate(organizationIdentity string, options *OrganizationUpdateOpts) (*Organization, error) + func (c *Client) Patch(v interface{}, path string, body interface{}) error + func (c *Client) PlanInfo(addonServiceIdentity string, planIdentity string) (*Plan, error) + func (c *Client) PlanList(addonServiceIdentity string, lr *ListRange) ([]Plan, error) + func (c *Client) Post(v interface{}, path string, body interface{}) error + func (c *Client) Put(v interface{}, path string, body interface{}) error + func (c *Client) RateLimitInfo() (*RateLimit, error) + func (c *Client) RegionInfo(regionIdentity string) (*Region, error) + func (c *Client) RegionList(lr *ListRange) ([]Region, error) + func (c *Client) ReleaseCreate(appIdentity string, slug string, options *ReleaseCreateOpts) (*Release, error) + func (c *Client) ReleaseInfo(appIdentity string, releaseIdentity string) (*Release, error) + func (c *Client) ReleaseList(appIdentity string, lr *ListRange) ([]Release, error) + func (c *Client) ReleaseRollback(appIdentity string, release string) (*Release, error) + func (c *Client) SSLEndpointCreate(appIdentity string, certificateChain string, privateKey string, ...) (*SSLEndpoint, error) + func (c *Client) SSLEndpointDelete(appIdentity string, sslEndpointIdentity string) error + func (c *Client) SSLEndpointInfo(appIdentity string, sslEndpointIdentity string) (*SSLEndpoint, error) + func (c *Client) SSLEndpointList(appIdentity string, lr *ListRange) ([]SSLEndpoint, error) + func (c *Client) SSLEndpointUpdate(appIdentity string, sslEndpointIdentity string, options *SSLEndpointUpdateOpts) (*SSLEndpoint, error) + func (c *Client) SlugCreate(appIdentity string, processTypes map[string]string, options *SlugCreateOpts) (*Slug, error) + func (c *Client) SlugInfo(appIdentity string, slugIdentity string) (*Slug, error) + func (c *Client) StackInfo(stackIdentity string) (*Stack, error) + func (c *Client) StackList(lr *ListRange) ([]Stack, error) + type Collaborator struct + CreatedAt time.Time + Id string + UpdatedAt time.Time + User struct{ ... } + type CollaboratorCreateOpts struct + Silent *bool + type Domain struct + CreatedAt time.Time + Hostname string + Id string + UpdatedAt time.Time + type Dyno struct + AttachURL *string + Command string + CreatedAt time.Time + Id string + Name string + Release struct{ ... } + Size string + State string + Type string + UpdatedAt time.Time + type DynoCreateOpts struct + Attach *bool + Env *map[string]string + Size *string + type Error struct + Id string + URL string + type Formation struct + Command string + CreatedAt time.Time + Id string + Quantity int + Size string + Type string + UpdatedAt time.Time + type FormationBatchUpdateOpts struct + Process string + Quantity *int + Size *string + type FormationUpdateOpts struct + Quantity *int + Size *string + type Key struct + Comment string + CreatedAt time.Time + Email string + Fingerprint string + Id string + PublicKey string + UpdatedAt time.Time + type ListRange struct + Descending bool + Field string + FirstId string + LastId string + Max int + func (lr *ListRange) SetHeader(req *http.Request) + type LogDrain struct + Addon ... + CreatedAt time.Time + Id string + Token string + URL string + UpdatedAt time.Time + type LogSession struct + CreatedAt time.Time + Id string + LogplexURL string + UpdatedAt time.Time + type LogSessionCreateOpts struct + Dyno *string + Lines *int + Source *string + Tail *bool + type OAuthAuthorization struct + AccessToken ... + Client ... + CreatedAt time.Time + Grant ... + Id string + RefreshToken ... + Scope []string + UpdatedAt time.Time + type OAuthAuthorizationCreateOpts struct + Client *string + Description *string + ExpiresIn *int + type OAuthClient struct + CreatedAt time.Time + Id string + IgnoresDelinquent *bool + Name string + RedirectUri string + Secret string + UpdatedAt time.Time + type OAuthClientUpdateOpts struct + Name *string + RedirectUri *string + type OAuthToken struct + AccessToken struct{ ... } + Authorization struct{ ... } + Client ... + CreatedAt time.Time + Grant struct{ ... } + Id string + RefreshToken struct{ ... } + Session struct{ ... } + UpdatedAt time.Time + User struct{ ... } + type OAuthTokenCreateClient struct + Secret string + type OAuthTokenCreateGrant struct + Code string + Type string + type OAuthTokenCreateRefreshToken struct + Token string + type Organization struct + CreditCardCollections bool + Default bool + Name string + ProvisionedLicenses bool + Role string + type OrganizationApp struct + ArchivedAt *time.Time + BuildpackProvidedDescription *string + CreatedAt time.Time + GitURL string + Id string + Joined bool + Locked bool + Maintenance bool + Name string + Organization ... + Owner ... + Region struct{ ... } + ReleasedAt *time.Time + RepoSize *int + SlugSize *int + Stack struct{ ... } + UpdatedAt time.Time + WebURL string + type OrganizationAppCollaborator struct + CreatedAt time.Time + Id string + Role string + UpdatedAt time.Time + User struct{ ... } + type OrganizationAppCollaboratorCreateOpts struct + Silent *bool + type OrganizationAppCreateOpts struct + Locked *bool + Name *string + Organization *string + Personal *bool + Region *string + Stack *string + type OrganizationMember struct + CreatedAt time.Time + Email string + Role string + UpdatedAt time.Time + type OrganizationUpdateOpts struct + Default *bool + type Plan struct + CreatedAt time.Time + Default bool + Description string + Id string + Name string + Price struct{ ... } + State string + UpdatedAt time.Time + type RateLimit struct + Remaining int + type Region struct + CreatedAt time.Time + Description string + Id string + Name string + UpdatedAt time.Time + type Release struct + CreatedAt time.Time + Description string + Id string + Slug ... + UpdatedAt time.Time + User struct{ ... } + Version int + type ReleaseCreateOpts struct + Description *string + type SSLEndpoint struct + CertificateChain string + Cname string + CreatedAt time.Time + Id string + Name string + UpdatedAt time.Time + type SSLEndpointCreateOpts struct + Preprocess *bool + type SSLEndpointUpdateOpts struct + CertificateChain *string + Preprocess *bool + PrivateKey *string + Rollback *bool + type Slug struct + Blob struct{ ... } + BuildpackProvidedDescription *string + Commit *string + CreatedAt time.Time + Id string + ProcessTypes map[string]string + Size *int + UpdatedAt time.Time + type SlugCreateOpts struct + BuildpackProvidedDescription *string + Commit *string + type Stack struct + CreatedAt time.Time + Id string + Name string + State string + UpdatedAt time.Time