Versions in this module Expand all Collapse all v1 v1.0.0 Dec 27, 2019 Changes in this version + type Account struct + ID string + Name string + Slug string + type Accounts []Account + type Client struct + Config config.API + HTTPClient *http.Client + Mutex *sync.Mutex + Retries int + RetryInterval time.Duration + RetryStatusCodes []int + func NewClient(c *config.Config) *Client + func (c *Client) CreateDeployment(newDeployment NewDeployment) (*Deployment, error) + func (c *Client) Delete(endpoint string) (string, error) + func (c *Client) DeleteDeployment(deploymentID string) (*Recipe, error) + func (c *Client) Do(method, endpoint, payload string, code int) (string, error) + func (c *Client) Get(endpoint string) (string, error) + func (c *Client) GetAccounts() (Accounts, error) + func (c *Client) GetDatabases() (Databases, error) + func (c *Client) GetDeployment(deploymentID string) (*Deployment, error) + func (c *Client) GetDeploymentByName(name string) (*Deployment, error) + func (c *Client) GetDeployments() (Deployments, error) + func (c *Client) GetRecipe(recipeID string) (*Recipe, error) + func (c *Client) GetRecipes(deploymentID string) (Recipes, error) + func (c *Client) GetScaling(deploymentID string) (*Scaling, error) + func (c *Client) Post(endpoint, payload string) (string, error) + func (c *Client) PostAsync(endpoint, payload string) (string, error) + func (c *Client) UpdateScaling(deploymentID string, units int) (*Recipe, error) + type Database struct + DatabaseType string + Embedded struct{ ... } + Status string + type Databases []Database + type Deployment struct + AccountID string + CACertificateBase64 string + ClusterID string + ConnectionStrings struct{ ... } + CreatedAt time.Time + CustomerBillingCode string + ID string + Links struct{ ... } + Name string + Notes string + ProvisionRecipeID string + Type string + Version string + type Deployments []Deployment + type NewDeployment struct + AccountID string + CacheMode bool + Datacenter string + Name string + Notes string + Type string + Units int + Version string + type Recipe struct + AccountID string + CreatedAt time.Time + DeploymentID string + Embedded struct{ ... } + ID string + Name string + OperationsComplete int + OperationsTotal int + ParentID string + Status string + StatusDetail string + Template string + UpdatedAt time.Time + type Recipes []Recipe + func (r Recipes) SortByCreatedAt() + func (r Recipes) SortByUpdatedAt() + type Scaling struct + AllocatedUnits int + MemoryPerUnitInMB int + MinimumUnits int + StartingUnits int + StoragePerUnitInMB int + UnitSizeInMB int + UnitType string + UsedUnits int + type Version struct + Application string + Preferred bool + Status string + Version string