Documentation
¶
Index ¶
- Variables
- func App() *buffalo.App
- func DatabasesDelete(c buffalo.Context) error
- func DatabasesGet(c buffalo.Context) error
- func DatabasesList(c buffalo.Context) error
- func DatabasesPost(c buffalo.Context) error
- func DatabasesPut(c buffalo.Context) error
- func DatabasesPutState(c buffalo.Context) error
- func ErrCode(msg string, err error) error
- func PingPong(c buffalo.Context) error
- func SnapshotsDelete(c buffalo.Context) error
- func SnapshotsGet(c buffalo.Context) error
- func SnapshotsList(c buffalo.Context) error
- func SnapshotsPost(c buffalo.Context) error
- func VersionHandler(c buffalo.Context) error
- type CreateDBClusterInput
- type CreateDBInstanceInput
- type DatabaseCreateRequest
- type DatabaseModifyInput
- type DatabaseResponse
- type DatabaseStateInput
- type ScalingConfiguration
- type SnapshotCreateRequest
- type Tag
Constants ¶
This section is empty.
Variables ¶
var ( // ENV is used to help switch settings based on where the // application is being run. Default is "development". ENV = envy.Get("GO_ENV", "development") // ConfigFile is the name of the json config file ConfigFile = "config/config.json" // AppConfig holds the configuration information for the app AppConfig common.Config // The org for this instance of the app Org string // RDS is a global map of RDS clients RDS = make(map[string]rds.Client) // Version is the main version number Version = rdsapi.Version // VersionPrerelease is a prerelease marker VersionPrerelease = rdsapi.VersionPrerelease // BuildStamp is the timestamp the binary was built, it should be set at buildtime with ldflags BuildStamp = rdsapi.BuildStamp // GitHash is the git sha of the built binary, it should be set at buildtime with ldflags GitHash = rdsapi.GitHash )
Functions ¶
func DatabasesDelete ¶
DatabasesDelete deletes a database in a given account
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
func DatabasesPut ¶ added in v0.2.0
DatabasesPut modifies a database in a given account
func DatabasesPutState ¶ added in v0.8.0
DatabasesPutState stops or starts a database in a given account
func SnapshotsDelete ¶ added in v0.14.0
SnapshotsDelete deletes a specific database snapshot
func SnapshotsGet ¶ added in v0.12.0
SnapshotsGet returns information about a specific database snapshot
func SnapshotsList ¶ added in v0.12.0
SnapshotsList gets a list of snapshots for a given database instance or cluster
func SnapshotsPost ¶ added in v0.14.0
SnapshotsPost creates a manual snapshot for a given database instance or cluster
func VersionHandler ¶ added in v0.5.0
VersionHandler returns the app version.
Types ¶
type CreateDBClusterInput ¶ added in v0.13.0
type CreateDBClusterInput struct { BackupRetentionPeriod *int64 DBClusterIdentifier *string DBClusterParameterGroupName *string DBSubnetGroupName *string EnableCloudwatchLogsExports []*string Engine *string EngineMode *string EngineVersion *string MasterUserPassword *string MasterUsername *string Port *int64 ScalingConfiguration *ScalingConfiguration SnapshotIdentifier *string StorageEncrypted *bool Tags []*Tag VpcSecurityGroupIds []*string }
CreateDBClusterInput is the input for creating a new database cluster based on https://docs.aws.amazon.com/sdk-for-go/api/service/rds/#CreateDBClusterInput
type CreateDBInstanceInput ¶ added in v0.13.0
type CreateDBInstanceInput struct { AllocatedStorage *int64 BackupRetentionPeriod *int64 DBClusterIdentifier *string DBInstanceClass *string DBInstanceIdentifier *string DBParameterGroupName *string DBSubnetGroupName *string EnableCloudwatchLogsExports []*string Engine *string EngineVersion *string MasterUserPassword *string MasterUsername *string MultiAZ *bool Port *int64 SnapshotIdentifier *string StorageEncrypted *bool Tags []*Tag VpcSecurityGroupIds []*string }
CreateDBInstanceInput is the input for creating a new database instance based on https://docs.aws.amazon.com/sdk-for-go/api/service/rds/#CreateDBInstanceInput
type DatabaseCreateRequest ¶ added in v0.13.0
type DatabaseCreateRequest struct { Cluster *CreateDBClusterInput Instance *CreateDBInstanceInput }
func (DatabaseCreateRequest) String ¶ added in v0.13.0
func (dcr DatabaseCreateRequest) String() string
type DatabaseModifyInput ¶ added in v0.2.0
type DatabaseModifyInput struct { // https://docs.aws.amazon.com/sdk-for-go/api/service/rds/#ModifyDBClusterInput Cluster *rds.ModifyDBClusterInput // https://docs.aws.amazon.com/sdk-for-go/api/service/rds/#ModifyDBInstanceInput Instance *rds.ModifyDBInstanceInput Tags []*rds.Tag }
DatabaseModifyInput is the input for modifying an existing database
type DatabaseResponse ¶ added in v0.13.0
type DatabaseResponse struct { // https://docs.aws.amazon.com/sdk-for-go/api/service/rds/#DBCluster Cluster *rds.DBCluster // https://docs.aws.amazon.com/sdk-for-go/api/service/rds/#DBInstance Instance *rds.DBInstance }
DatabaseResponse is the output from database operations
type DatabaseStateInput ¶ added in v0.8.0
type DatabaseStateInput struct {
State string
}
DatabaseStateInput is the input for changing the database state
type ScalingConfiguration ¶ added in v0.13.0
type SnapshotCreateRequest ¶ added in v0.14.0
type SnapshotCreateRequest struct {
SnapshotIdentifier string
}