Documentation
¶
Index ¶
- type CharacterSettings
- type CreateMySqlDatabase
- type CreateMySqlUser
- type CreateMySqlUserAccessLevel
- type CreateMySqlUserWithDatabase
- type CreateMySqlUserWithDatabaseAccessLevel
- type DatabaseStatus
- type DatabaseUserStatus
- type MySqlCharacterSettings
- type MySqlDatabase
- type MySqlUser
- type MySqlUserAccessLevel
- type MySqlVersion
- type PhpMyAdminURL
- type RedisDatabase
- type RedisDatabaseConfiguration
- type RedisVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CharacterSettings ¶
type CharacterSettings struct {
CharacterSet string `json:"characterSet"`
Collation string `json:"collation"`
}
func (*CharacterSettings) Validate ¶
func (o *CharacterSettings) Validate() error
type CreateMySqlDatabase ¶
type CreateMySqlDatabase struct {
CharacterSettings *CharacterSettings `json:"characterSettings,omitempty"`
Description string `json:"description"`
Version string `json:"version"`
}
func (*CreateMySqlDatabase) Validate ¶
func (o *CreateMySqlDatabase) Validate() error
type CreateMySqlUser ¶
type CreateMySqlUser struct {
AccessIpMask *string `json:"accessIpMask,omitempty"`
AccessLevel CreateMySqlUserAccessLevel `json:"accessLevel"`
DatabaseId string `json:"databaseId"`
Description string `json:"description"`
ExternalAccess *bool `json:"externalAccess,omitempty"`
Password string `json:"password"`
}
func (*CreateMySqlUser) Validate ¶
func (o *CreateMySqlUser) Validate() error
type CreateMySqlUserAccessLevel ¶
type CreateMySqlUserAccessLevel string
The access level that this MySQLUser should have for the database. The `full` access level grants the user read/write privileges on the database.
const CreateMySqlUserAccessLevelFull CreateMySqlUserAccessLevel = "full"
const CreateMySqlUserAccessLevelReadonly CreateMySqlUserAccessLevel = "readonly"
func (CreateMySqlUserAccessLevel) Validate ¶
func (e CreateMySqlUserAccessLevel) Validate() error
type CreateMySqlUserWithDatabase ¶
type CreateMySqlUserWithDatabase struct {
AccessIpMask *string `json:"accessIpMask,omitempty"`
AccessLevel CreateMySqlUserWithDatabaseAccessLevel `json:"accessLevel"`
ExternalAccess *bool `json:"externalAccess,omitempty"`
Password string `json:"password"`
}
func (*CreateMySqlUserWithDatabase) Validate ¶
func (o *CreateMySqlUserWithDatabase) Validate() error
type CreateMySqlUserWithDatabaseAccessLevel ¶
type CreateMySqlUserWithDatabaseAccessLevel string
The access level that this MySQLUser should have for the database. The `full` access level grants the user read/write privileges on the database.
For MySQLUsers that are created in the same step as the database itself, `full` is the only available option.
const CreateMySqlUserWithDatabaseAccessLevelFull CreateMySqlUserWithDatabaseAccessLevel = "full"
func (CreateMySqlUserWithDatabaseAccessLevel) Validate ¶
func (e CreateMySqlUserWithDatabaseAccessLevel) Validate() error
type DatabaseStatus ¶
type DatabaseStatus string
const DatabaseStatusError DatabaseStatus = "error"
const DatabaseStatusImporting DatabaseStatus = "importing"
const DatabaseStatusMigrating DatabaseStatus = "migrating"
const DatabaseStatusPending DatabaseStatus = "pending"
const DatabaseStatusReady DatabaseStatus = "ready"
func (DatabaseStatus) Validate ¶
func (e DatabaseStatus) Validate() error
type DatabaseUserStatus ¶
type DatabaseUserStatus string
const DatabaseUserStatusDisabled DatabaseUserStatus = "disabled"
const DatabaseUserStatusError DatabaseUserStatus = "error"
const DatabaseUserStatusPending DatabaseUserStatus = "pending"
const DatabaseUserStatusReady DatabaseUserStatus = "ready"
const DatabaseUserStatusTerminating DatabaseUserStatus = "terminating"
func (DatabaseUserStatus) Validate ¶
func (e DatabaseUserStatus) Validate() error
type MySqlCharacterSettings ¶
type MySqlCharacterSettings struct {
Collations []string `json:"collations"`
Name string `json:"name"`
VersionId string `json:"versionId"`
}
func (*MySqlCharacterSettings) Validate ¶
func (o *MySqlCharacterSettings) Validate() error
type MySqlDatabase ¶
type MySqlDatabase struct {
CharacterSettings CharacterSettings `json:"characterSettings"`
CreatedAt time.Time `json:"createdAt"`
Description string `json:"description"`
ExternalHostname string `json:"externalHostname"`
Finalizers []string `json:"finalizers,omitempty"`
Hostname string `json:"hostname"`
Id string `json:"id"`
IsReady bool `json:"isReady"`
MainUser *MySqlUser `json:"mainUser,omitempty"`
Name string `json:"name"`
ProjectId string `json:"projectId"`
Status DatabaseStatus `json:"status"`
StatusSetAt time.Time `json:"statusSetAt"`
StorageUsageInBytes int64 `json:"storageUsageInBytes"`
StorageUsageInBytesSetAt time.Time `json:"storageUsageInBytesSetAt"`
UpdatedAt time.Time `json:"updatedAt"`
Version string `json:"version"`
}
func (*MySqlDatabase) Validate ¶
func (o *MySqlDatabase) Validate() error
type MySqlUser ¶
type MySqlUser struct {
AccessIpMask *string `json:"accessIpMask,omitempty"`
AccessLevel MySqlUserAccessLevel `json:"accessLevel"`
CreatedAt time.Time `json:"createdAt"`
DatabaseId string `json:"databaseId"`
Description *string `json:"description,omitempty"`
Disabled bool `json:"disabled"`
ExternalAccess bool `json:"externalAccess"`
Id string `json:"id"`
MainUser bool `json:"mainUser"`
Name string `json:"name"`
PasswordUpdatedAt time.Time `json:"passwordUpdatedAt"`
Status DatabaseUserStatus `json:"status"`
StatusSetAt time.Time `json:"statusSetAt"`
UpdatedAt time.Time `json:"updatedAt"`
}
type MySqlUserAccessLevel ¶
type MySqlUserAccessLevel string
The access level that this MySQLUser should have for the database. The `full` access level grants the user read/write privileges on the database.
const MySqlUserAccessLevelFull MySqlUserAccessLevel = "full"
const MySqlUserAccessLevelReadonly MySqlUserAccessLevel = "readonly"
func (MySqlUserAccessLevel) Validate ¶
func (e MySqlUserAccessLevel) Validate() error
type MySqlVersion ¶
type MySqlVersion struct {
Disabled bool `json:"disabled"`
Id string `json:"id"`
Name string `json:"name"`
Number string `json:"number"`
}
func (*MySqlVersion) Validate ¶
func (o *MySqlVersion) Validate() error
type PhpMyAdminURL ¶
type PhpMyAdminURL struct {
Url string `json:"url"`
}
func (*PhpMyAdminURL) Validate ¶
func (o *PhpMyAdminURL) Validate() error
type RedisDatabase ¶
type RedisDatabase struct {
Configuration *RedisDatabaseConfiguration `json:"configuration,omitempty"`
CreatedAt time.Time `json:"createdAt"`
Description string `json:"description"`
Finalizers []string `json:"finalizers,omitempty"`
Hostname string `json:"hostname"`
Id string `json:"id"`
Name string `json:"name"`
Port int64 `json:"port"`
ProjectId string `json:"projectId"`
Status DatabaseStatus `json:"status"`
StatusSetAt time.Time `json:"statusSetAt"`
StorageUsageInBytes int64 `json:"storageUsageInBytes"`
StorageUsageInBytesSetAt time.Time `json:"storageUsageInBytesSetAt"`
UpdatedAt time.Time `json:"updatedAt"`
Version string `json:"version"`
}
func (*RedisDatabase) Validate ¶
func (o *RedisDatabase) Validate() error
type RedisDatabaseConfiguration ¶
type RedisDatabaseConfiguration struct {
AdditionalFlags []string `json:"additionalFlags,omitempty"`
MaxMemory *string `json:"maxMemory,omitempty"`
MaxMemoryPolicy *string `json:"maxMemoryPolicy,omitempty"`
Persistent *bool `json:"persistent,omitempty"`
}
The configuration for a RedisDatabase.
func (*RedisDatabaseConfiguration) Validate ¶
func (o *RedisDatabaseConfiguration) Validate() error
type RedisVersion ¶
type RedisVersion struct {
Disabled bool `json:"disabled"`
Id string `json:"id"`
Name string `json:"name"`
Number string `json:"number"`
}
func (*RedisVersion) Validate ¶
func (o *RedisVersion) Validate() error
Source Files
¶
- charactersettings.go
- createmysqldatabase.go
- createmysqluser.go
- createmysqluser_accesslevel.go
- createmysqluserwithdatabase.go
- createmysqluserwithdatabase_accesslevel.go
- databasestatus.go
- databaseuserstatus.go
- mysqlcharactersettings.go
- mysqldatabase.go
- mysqluser.go
- mysqluser_accesslevel.go
- mysqlversion.go
- phpmyadminurl.go
- redisdatabase.go
- redisdatabaseconfiguration.go
- redisversion.go
Click to show internal directories.
Click to hide internal directories.