Versions in this module Expand all Collapse all v1 v1.13.1 Dec 19, 2018 Changes in this version + var ErrMissingAccessToken = errors.New(...) + func Bool(v bool) *bool + func Float64(v float64) *float64 + func Int(v int) *int + func RetrieveLogs(c *Client, urlStr string, limit int, fromDate string, toDate string) (<-chan LogEntry, <-chan error) + func String(v string) *string + func Stringify(message interface{}) string + func ValidateProject(project *Project) error + type App struct + Command *string + Dependencies []string + Domain *Domain + EnvVars map[string]string + ForceRollingDeploy *bool + HealthChecks []*HealthCheck + ID *string + Image *string + Instances *int + Logging *Logging + Memory *int + PortMappings []*PortMap + SSL *bool + Status []string + Version *string + Versions []string + Volumes []*Volume + func (a *App) StatusCount(s string) (n int) + func (a *App) String() string + type AppsDeleter interface + Delete func(project, service, id string, force bool) (*StatusResponse, *http.Response, error) + type AppsEndpoint struct + func (a *AppsEndpoint) Delete(project, service, app string, force bool) (*StatusResponse, *http.Response, error) + func (a *AppsEndpoint) Get(project, service, id string) (*App, *http.Response, error) + func (a *AppsEndpoint) GetLogs(project, service, app string, limit int, fromDate string, toDate string) (<-chan LogEntry, <-chan error) + func (a *AppsEndpoint) GetMetrics(project, service, app string) (Metrics, *http.Response, error) + func (a *AppsEndpoint) List(project, service string) ([]*App, *http.Response, error) + func (a *AppsEndpoint) Restart(project, service, app string) (*StatusResponse, *http.Response, error) + func (a *AppsEndpoint) Rollback(project, service, app, version string) (*App, *http.Response, error) + func (a *AppsEndpoint) Scale(project, service, app string, n int) (*App, *http.Response, error) + func (a *AppsEndpoint) Update(project, service, id string, input *App) (*App, *http.Response, error) + type AppsGetMetricer interface + GetMetrics func(project, service, id string) (Metrics, *http.Response, error) + type AppsGetter interface + Get func(project, service, id string) (*App, *http.Response, error) + type AppsLogger interface + GetLogs func(project, service, id string, limit int, fromDate string, toDate string) (<-chan LogEntry, <-chan error) + type AppsRestarter interface + Restart func(project, service, id string) (*StatusResponse, *http.Response, error) + type AppsRollbacker interface + Rollback func(project, service, id, version string) (*App, *http.Response, error) + type AppsScaler interface + Scale func(project, service, id string, n int) (*App, *http.Response, error) + type AppsUpdater interface + Update func(project, service, id string, input *App) (*App, *http.Response, error) + type Client struct + Apps *AppsEndpoint + Projects *ProjectsEndpoint + RegistryCredentials *RegistryCredentialsEndpoint + Services *ServicesEndpoint + func NewClient() *Client + func (c *Client) Do(req *http.Request, v interface{}) (*http.Response, error) + func (c *Client) GetBaseURL() string + func (c *Client) GetHeader(h string) []string + func (c *Client) NewRequest(method, path string, body interface{}) (*http.Request, error) + func (c *Client) SetAccessToken(t string) + func (c *Client) SetBaseURL(u string) error + func (c *Client) SetUserAgent(ua string) + type DataPoint struct + X Timestamp + Y *float64 + type DataPoints []*DataPoint + type Domain struct + BasicAuth *string + HstsHeader *bool + RedirectHttps *bool + URI *string + type ErrorResponse struct + Reason string + Response *http.Response + func (e *ErrorResponse) Error() string + type HealthCheck struct + GracePeriod *int + Interval *int + MaxConsectiveFailure *int + Path *string + Timeout *int + Type *string + type LogEntry struct + App *string + CreatedAt *Timestamp + Log *string + Project *string + Service *string + func (e *LogEntry) String() string + type Logging struct + Driver *string + Options map[string]string + type Metrics map[string]Series + func (m Metrics) UnmarshalJSON(data []byte) error + type PortMap struct + Port *int + ServicePort *int + type Project struct + Name *string + Services []*Service + func (p *Project) String() string + type ProjectsCreater interface + Create func(input *Project) (*Project, *http.Response, error) + type ProjectsDeleter interface + Delete func(name string, force bool) (*StatusResponse, *http.Response, error) + type ProjectsEndpoint struct + func (p *ProjectsEndpoint) Create(input *Project) (*Project, *http.Response, error) + func (p *ProjectsEndpoint) Delete(name string, force bool) (*StatusResponse, *http.Response, error) + func (p *ProjectsEndpoint) Get(name string) (*Project, *http.Response, error) + func (p *ProjectsEndpoint) GetLogs(name string, limit int, fromDate string, toDate string) (<-chan LogEntry, <-chan error) + func (p *ProjectsEndpoint) List() ([]Project, *http.Response, error) + func (p *ProjectsEndpoint) Update(name string, input *Project, force bool) (*Project, *http.Response, error) + type ProjectsGetLister interface + type ProjectsGetter interface + Get func(name string) (*Project, *http.Response, error) + type ProjectsLister interface + List func() ([]Project, *http.Response, error) + type ProjectsLogger interface + GetLogs func(project string, limit int, fromDate string, toDate string) (<-chan LogEntry, <-chan error) + type ProjectsUpdater interface + Update func(name string, input *Project, force bool) (*Project, *http.Response, error) + type RegistryCredentialsCheckDeleter interface + Check func() (*StatusResponse, *http.Response, error) + Delete func() (*StatusResponse, *http.Response, error) + type RegistryCredentialsEndpoint struct + func (r *RegistryCredentialsEndpoint) Check() (*StatusResponse, *http.Response, error) + func (r *RegistryCredentialsEndpoint) Delete() (*StatusResponse, *http.Response, error) + func (r *RegistryCredentialsEndpoint) Upload(reader io.Reader) (*StatusResponse, *http.Response, error) + type RegistryCredentialsUploader interface + Upload func(reader io.Reader) (*StatusResponse, *http.Response, error) + type Series map[string]DataPoints + type Service struct + Apps []*App + ID *string + func (s *Service) String() string + type ServicesDeleter interface + Delete func(project, id string, force bool) (*StatusResponse, *http.Response, error) + type ServicesEndpoint struct + func (s *ServicesEndpoint) Delete(project, id string, force bool) (*StatusResponse, *http.Response, error) + func (s *ServicesEndpoint) Get(project, id string) (*Service, *http.Response, error) + func (s *ServicesEndpoint) GetLogs(project, service string, limit int, fromDate string, toDate string) (<-chan LogEntry, <-chan error) + func (s *ServicesEndpoint) List(project string) ([]*Service, *http.Response, error) + type ServicesGetter interface + Get func(project, id string) (*Service, *http.Response, error) + type ServicesLogger interface + GetLogs func(project, id string, limit int, fromDate string, toDate string) (<-chan LogEntry, <-chan error) + type StatusResponse struct + Data json.RawMessage + Message string + Status string + func (s *StatusResponse) String() string + type Timestamp struct + func (u *Timestamp) UnmarshalJSON(data []byte) error + type Volume struct + Label *string + Path *string + Size *string