Documentation
¶
Index ¶
- func GetEndpointType(t string) (string, error)
- func GetHost() (string, error)
- func GetHumanReadableEndpointType(t string) (string, error)
- func GetIDFromHref(href string) (int64, error)
- func GetToken() (string, error)
- func MakeStringSlice(interfaceSlice []interface{}) ([]string, error)
- type AcmeChallenge
- type App
- type Client
- func (c *Client) CreateApp(handle string, accountID int64) (App, error)
- func (c *Client) CreateDatabase(accountID int64, attrs DBCreateAttrs) (Database, error)
- func (c *Client) CreateEndpoint(service Service, attrs EndpointCreateAttrs) (Endpoint, error)
- func (c *Client) CreateLogDrain(handle string, accountID int64, attrs *LogDrainCreateAttrs) (*LogDrain, error)
- func (c *Client) CreateReplica(attrs ReplicateAttrs) (Database, error)
- func (c *Client) DeleteApp(appID int64) (bool, error)
- func (c *Client) DeleteDatabase(databaseID int64) error
- func (c *Client) DeleteEndpoint(endpointID int64) error
- func (c *Client) DeleteLogDrain(logDrainID int64) (bool, error)
- func (c *Client) DeleteReplica(replicaID int64) error
- func (c *Client) DeployApp(config map[string]interface{}, appID int64) error
- func (c *Client) GetApp(appID int64) (App, error)
- func (c *Client) GetConfiguration(configID int64) (Configuration, error)
- func (c *Client) GetConfigurationFromHref(href string) (Configuration, error)
- func (c *Client) GetDatabase(databaseID int64) (Database, error)
- func (c *Client) GetDatabaseIDFromHandle(accountID int64, handle string) (int64, bool, error)
- func (c *Client) GetDatabaseImage(imageID int64) (DatabaseImage, error)
- func (c *Client) GetDatabaseImageByTypeAndVersion(imageType string, version string) (DatabaseImage, error)
- func (c *Client) GetDatabaseOperations(databaseID int64, page int64) (*models.InlineResponse20031, error)
- func (c *Client) GetDisk(diskID int64) (Disk, error)
- func (c *Client) GetDiskFromHref(href string) (Disk, error)
- func (c *Client) GetEndpoint(endpointID int64) (Endpoint, error)
- func (c *Client) GetEnvironmentIDFromHandle(handle string) (int64, error)
- func (c *Client) GetImageFromHref(href string) (DatabaseImage, error)
- func (c *Client) GetLogDrain(logDrainID int64) (*LogDrain, error)
- func (c *Client) GetReplica(replicaID int64) (Database, error)
- func (c *Client) GetReplicaFromHandle(databaseID int64, handle string) (*models.InlineResponse20016EmbeddedDatabases, error)
- func (c *Client) GetService(serviceID int64) (Service, error)
- func (c *Client) GetServiceForAppByName(appID int64, serviceName string) (Service, error)
- func (c *Client) GetServiceFromHref(href string) (Service, error)
- func (c *Client) ScaleService(serviceID int64, containerCount int64, memoryLimit int64) error
- func (c *Client) UpdateDatabase(databaseID int64, updates DBUpdates) error
- func (c *Client) UpdateEndpoint(endpointID int64, up EndpointUpdates) error
- func (c *Client) UpdateReplica(replicaID int64, updates DBUpdates) error
- func (c *Client) WaitForOperation(operationID int64) (bool, error)
- type Configuration
- type DBCreateAttrs
- type DBUpdates
- type Database
- type DatabaseImage
- type Disk
- type Endpoint
- type EndpointCreateAttrs
- type EndpointUpdates
- type LogDrain
- type LogDrainCreateAttrs
- type ReplicaIdentifiers
- type ReplicateAttrs
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEndpointType ¶
func MakeStringSlice ¶
makes a string slice out of a slice of type interface
Types ¶
type AcmeChallenge ¶ added in v0.1.4
type Client ¶
type Client struct {
Client *deploy.DeployAPIV1
Token runtime.ClientAuthInfoWriter
}
func SetUpClient ¶
sets up client and gets auth token used for API requests
func (*Client) CreateDatabase ¶
func (c *Client) CreateDatabase(accountID int64, attrs DBCreateAttrs) (Database, error)
func (*Client) CreateEndpoint ¶
func (c *Client) CreateEndpoint(service Service, attrs EndpointCreateAttrs) (Endpoint, error)
CreateEndpoint() creates Vhost API object + provision operation on the app.
func (*Client) CreateLogDrain ¶ added in v0.1.5
func (*Client) CreateReplica ¶
func (c *Client) CreateReplica(attrs ReplicateAttrs) (Database, error)
func (*Client) DeleteDatabase ¶
func (*Client) DeleteEndpoint ¶
DeleteEndpoint() deletes the endpoint.
func (*Client) DeleteLogDrain ¶ added in v0.1.5
func (*Client) DeleteReplica ¶
func (*Client) GetConfiguration ¶
func (c *Client) GetConfiguration(configID int64) (Configuration, error)
func (*Client) GetConfigurationFromHref ¶
func (c *Client) GetConfigurationFromHref(href string) (Configuration, error)
func (*Client) GetDatabaseIDFromHandle ¶
Gets database id associated with a given handle.
func (*Client) GetDatabaseImage ¶
func (c *Client) GetDatabaseImage(imageID int64) (DatabaseImage, error)
func (*Client) GetDatabaseImageByTypeAndVersion ¶
func (c *Client) GetDatabaseImageByTypeAndVersion(imageType string, version string) (DatabaseImage, error)
func (*Client) GetDatabaseOperations ¶
func (*Client) GetEndpoint ¶
GetEndpoint() returns the response's payload, a bool saying whether or not the endpoint has been deprovisioned, and an error.
func (*Client) GetEnvironmentIDFromHandle ¶
Gets environment id associated with a given handle.
func (*Client) GetImageFromHref ¶
func (c *Client) GetImageFromHref(href string) (DatabaseImage, error)
func (*Client) GetLogDrain ¶ added in v0.1.5
func (*Client) GetReplicaFromHandle ¶
func (*Client) GetServiceForAppByName ¶
func (*Client) GetServiceFromHref ¶
func (*Client) ScaleService ¶
func (*Client) UpdateDatabase ¶
func (*Client) UpdateEndpoint ¶
func (c *Client) UpdateEndpoint(endpointID int64, up EndpointUpdates) error
UpdateEndpoint() takes in an endpointID and updates needed, and updates the endpoint.
func (*Client) UpdateReplica ¶
type Configuration ¶
type Configuration struct {
ID int64
Env interface{}
}
type DBCreateAttrs ¶
type DatabaseImage ¶
type EndpointCreateAttrs ¶
type EndpointUpdates ¶
type LogDrainCreateAttrs ¶ added in v0.1.5
type ReplicaIdentifiers ¶
type ReplicateAttrs ¶
Click to show internal directories.
Click to hide internal directories.