Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AppConfig common.Config
AppConfig holds the configuration information for the app
var ENV = envy.Get("GO_ENV", "development")
ENV is used to help switch settings based on where the application is being run. Default is "development".
var RDS = make(map[string]rds.Client)
RDS is a global map of RDS clients
Functions ¶
func DatabasesDelete ¶
DatabasesDelete deletes a database in a given account It will delete the database instance with the given {db} name and will also delete the associated cluster if the instance belongs to a cluster and is the last remaining member. If the snapshot=true parameter is given, it will create a final snapshot of the instance/cluster.
func DatabasesGet ¶
DatabasesGet gets details about a specific database If the `all=true` parameter is passed it will return a list of clusters in addition to instances.
func DatabasesList ¶ added in v0.0.7
DatabasesList gets a list of databases for a given account If the `all=true` parameter is passed it will return a list of clusters in addition to instances.
func DatabasesPost ¶
DatabasesPost creates a database in a given account It will create a database instance as specified by the `Instance` hash parameters. If a `Cluster` hash is also given, it will first create an RDS cluster and the instance next.
Types ¶
type DatabaseCreateInput ¶ added in v0.0.7
type DatabaseCreateInput struct { // https://docs.aws.amazon.com/sdk-for-go/api/service/rds/#CreateDBClusterInput Cluster *rds.CreateDBClusterInput // https://docs.aws.amazon.com/sdk-for-go/api/service/rds/#CreateDBInstanceInput Instance *rds.CreateDBInstanceInput }
DatabaseCreateInput is the input for creating a new database The Instance part is required and defines the database instance properties The Cluster is optional if the created database instance belongs to a new cluster