Documentation ¶
Index ¶
- func GetEndpointType(t string) (string, error)
- func GetHost() (string, error)
- func GetIDFromHref(href string) (int64, error)
- func GetToken() (string, error)
- func MakeStringSlice(if_slice []interface{}) ([]string, error)
- type App
- type Client
- func (c *Client) CreateApp(handle string, env_id int64) (App, error)
- func (c *Client) CreateDatabase(env_id int64, attrs DBCreateAttrs) (Database, error)
- func (c *Client) CreateEndpoint(resource_id int64, attrs EndpointCreateAttrs) (Endpoint, error)
- func (c *Client) CreateReplica(attrs ReplicateAttrs) (Database, error)
- func (c *Client) DeleteApp(app_id int64) (bool, error)
- func (c *Client) DeleteDatabase(db_id int64) error
- func (c *Client) DeleteEndpoint(endpoint_id int64) error
- func (c *Client) DeleteReplica(replica_id int64) error
- func (c *Client) DeployApp(app_id int64, config map[string]interface{}) error
- func (c *Client) GetApp(app_id int64) (bool, error)
- func (c *Client) GetContainerSize(href string) (int64, error)
- func (c *Client) GetDatabase(db_id int64) (Database, bool, error)
- func (c *Client) GetDatabaseIDFromHandle(env_id int64, handle string) (int64, bool, error)
- func (c *Client) GetDatabaseOperations(db_id int64, page int64) (*models.InlineResponse20029, error)
- func (c *Client) GetDiskSize(href string) (int64, error)
- func (c *Client) GetEndpoint(endpoint_id int64, resource_type string) (Endpoint, bool, error)
- func (c *Client) GetEnvironmentIDFromHandle(handle string) (int64, error)
- func (c *Client) GetReplica(replica_id int64) (Database, bool, error)
- func (c *Client) GetReplicaFromHandle(db_id int64, handle string) (*models.InlineResponse20014EmbeddedDatabases, error)
- func (c *Client) GetServiceID(resource_id int64, resource_type string) (int64, error)
- func (c *Client) UpdateApp(config map[string]interface{}, app_id int64) error
- func (c *Client) UpdateDatabase(db_id int64, updates DBUpdates) error
- func (c *Client) UpdateEndpoint(endpoint_id int64, up EndpointUpdates) error
- func (c *Client) UpdateReplica(replica_id int64, updates DBUpdates) error
- func (c *Client) WaitForOperation(op_id int64) (bool, error)
- type DBCreateAttrs
- type DBUpdates
- type Database
- type Endpoint
- type EndpointCreateAttrs
- type EndpointUpdates
- type ReplicaIdentifiers
- type ReplicateAttrs
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 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(env_id int64, attrs DBCreateAttrs) (Database, error)
func (*Client) CreateEndpoint ¶
func (c *Client) CreateEndpoint(resource_id int64, attrs EndpointCreateAttrs) (Endpoint, error)
CreateEndpoint() creates Vhost API object + provision operation on the app.
func (*Client) CreateReplica ¶
func (c *Client) CreateReplica(attrs ReplicateAttrs) (Database, error)
func (*Client) DeleteDatabase ¶
func (*Client) DeleteEndpoint ¶
DeleteEndpoint() deletes the endpoint.
func (*Client) DeleteReplica ¶
func (*Client) GetDatabaseIDFromHandle ¶
Gets database id associated with a given handle.
func (*Client) GetDatabaseOperations ¶
func (c *Client) GetDatabaseOperations(db_id int64, page int64) (*models.InlineResponse20029, error)
Gets operations of a database on a per page basis
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) GetReplicaFromHandle ¶
func (*Client) GetServiceID ¶
GetServiceID() Gets the service ID + acts as a helper for GetEndpoint().
func (*Client) UpdateDatabase ¶
func (*Client) UpdateEndpoint ¶
func (c *Client) UpdateEndpoint(endpoint_id int64, up EndpointUpdates) error
UpdateEndpoint() takes in an endpoint_id and updates needed, and updates the endpoint.