-
Notifications
You must be signed in to change notification settings - Fork 3
/
parameters.go
35 lines (31 loc) · 1.33 KB
/
parameters.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package rdsbroker
/* Currently the provision parameters are a json.RawMessage in brokerapi
* while the update and bind parameters are a map[string]interface{}
* There is some interest in changing everything to json.RawMessage
* https://github.com/pivotal-cf/brokerapi/issues/36
*/
type ProvisionParameters struct {
BackupRetentionPeriod int64 `json:"backup_retention_period"`
CharacterSetName string `json:"character_set_name"`
PreferredBackupWindow string `json:"preferred_backup_window"`
PreferredMaintenanceWindow string `json:"preferred_maintenance_window"`
}
type UpdateParameters struct {
ApplyImmediately bool `json:"apply_immediately"`
BackupRetentionPeriod int64 `json:"backup_retention_period"`
PreferredBackupWindow string `json:"preferred_backup_window"`
PreferredMaintenanceWindow string `json:"preferred_maintenance_window"`
Extensions *[]string `json:"extensions"`
}
type BindParameters struct {
Username string `json:"username"`
}
type CredentialsHash struct {
Host string `json:"host,omitempty"`
Port int64 `json:"port,omitempty"`
Name string `json:"name,omitempty"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
URI string `json:"uri,omitempty"`
JDBCURI string `json:"jdbcUrl,omitempty"`
}