Documentation ¶
Index ¶
- Constants
- type AccessTokenResponse
- type AdvancedConf
- type Backup
- type BackupConfig
- type Connection
- type Database
- type Error
- type Limits
- type Log
- type MaintenanceWindow
- type Principal
- type Restore
- type Service
- type ServiceExternalConnection
- type ServiceInstance
- type ServiceInstanceStatus
- type ServiceInternalConnection
- type Services
- type User
- type UserCredentials
Constants ¶
const ( // MaintenanceWindowDayMonday captures enum value "Monday" MaintenanceWindowDayMonday string = "Monday" // MaintenanceWindowDayTuesday captures enum value "Tuesday" MaintenanceWindowDayTuesday string = "Tuesday" // MaintenanceWindowDayWednesday captures enum value "Wednesday" MaintenanceWindowDayWednesday string = "Wednesday" // MaintenanceWindowDayThursday captures enum value "Thursday" MaintenanceWindowDayThursday string = "Thursday" // MaintenanceWindowDayFriday captures enum value "Friday" MaintenanceWindowDayFriday string = "Friday" // MaintenanceWindowDaySaturday captures enum value "Saturday" MaintenanceWindowDaySaturday string = "Saturday" // MaintenanceWindowDaySunday captures enum value "Sunday" MaintenanceWindowDaySunday string = "Sunday" )
const ( // ServiceTypePostgresql captures enum value "postgresql" ServiceTypePostgresql string = "postgresql" // ServiceTypeMysql captures enum value "mysql" ServiceTypeMysql string = "mysql" )
const ( // ServiceInstanceStatusStatusRunning captures enum value "Running" ServiceInstanceStatusStatusRunning string = "Running" // ServiceInstanceStatusStatusFailed captures enum value "Failed" ServiceInstanceStatusStatusFailed string = "Failed" // ServiceInstanceStatusStatusPending captures enum value "Pending" ServiceInstanceStatusStatusPending string = "Pending" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenResponse ¶
type AccessTokenResponse struct { // access token AccessToken string `json:"access_token,omitempty"` // expires in ExpiresIn int64 `json:"expires_in,omitempty"` // refresh token RefreshToken string `json:"refresh_token,omitempty"` // token type TokenType string `json:"token_type,omitempty"` }
AccessTokenResponse access token response
swagger:model AccessTokenResponse
func (*AccessTokenResponse) MarshalBinary ¶
func (m *AccessTokenResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AccessTokenResponse) UnmarshalBinary ¶
func (m *AccessTokenResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Backup ¶
type Backup struct { // file // Required: true File *string `json:"file"` // last modified // Required: true // Format: date-time LastModified *strfmt.DateTime `json:"lastModified"` // size // Required: true Size *int64 `json:"size"` }
Backup backup
swagger:model Backup
func (*Backup) MarshalBinary ¶
MarshalBinary interface implementation
func (*Backup) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type BackupConfig ¶
type BackupConfig struct { // aws access key id // Required: true AwsAccessKeyID *string `json:"aws_access_key_id"` // aws secret access key // Required: true AwsSecretAccessKey *string `json:"aws_secret_access_key"` // bucket // Required: true Bucket *string `json:"bucket"` // enabled // Required: true Enabled *bool `json:"enabled"` // endpoint // Required: true // Pattern: ^http[s]*://.* Endpoint *string `json:"endpoint"` // region // Required: true Region *string `json:"region"` // schedule // Required: true Schedule *string `json:"schedule"` }
BackupConfig backup config
swagger:model BackupConfig
func (*BackupConfig) MarshalBinary ¶
func (m *BackupConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*BackupConfig) UnmarshalBinary ¶
func (m *BackupConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Connection ¶
type Connection struct { // cert Cert string `json:"cert,omitempty"` // host Host string `json:"host,omitempty"` // password Password string `json:"password,omitempty"` // port Port int64 `json:"port,omitempty"` // ssl mode SslMode string `json:"ssl_mode,omitempty"` // user User string `json:"user,omitempty"` }
Connection connection
swagger:model Connection
func (*Connection) MarshalBinary ¶
func (m *Connection) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Connection) UnmarshalBinary ¶
func (m *Connection) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Database ¶
type Database struct { // name // Required: true Name *string `json:"name"` }
Database database
swagger:model Database
func (*Database) MarshalBinary ¶
MarshalBinary interface implementation
func (*Database) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Error ¶
type Error struct { // message Message string `json:"message,omitempty"` }
Error error
swagger:model Error
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Limits ¶
type Limits struct { // cpu // Required: true // Pattern: ^([0-9]+$)|([0-9]+.[0-9]+$) CPU *string `json:"cpu"` // memory // Required: true // Pattern: ^([0-9]+$)|([0-9]+.[0-9]+$) Memory *string `json:"memory"` // volume size // Required: true // Pattern: ^([0-9]+$)|([0-9]+.[0-9]+$) VolumeSize *string `json:"volumeSize"` }
Limits limits
swagger:model Limits
func (*Limits) MarshalBinary ¶
MarshalBinary interface implementation
func (*Limits) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Log ¶
type Log struct { // body Body string `json:"body,omitempty"` // lines Lines int64 `json:"lines,omitempty"` }
Log log
swagger:model Log
func (*Log) MarshalBinary ¶
MarshalBinary interface implementation
func (*Log) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type MaintenanceWindow ¶
type MaintenanceWindow struct { // day // Required: true // Enum: [Monday Tuesday Wednesday Thursday Friday Saturday Sunday] Day *string `json:"day"` // start hour // Required: true // Maximum: 11 // Minimum: 0 StartHour *int64 `json:"startHour"` }
MaintenanceWindow maintenance window
swagger:model MaintenanceWindow
func (*MaintenanceWindow) MarshalBinary ¶
func (m *MaintenanceWindow) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MaintenanceWindow) UnmarshalBinary ¶
func (m *MaintenanceWindow) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Principal ¶
type Principal struct { // email Email string `json:"email,omitempty"` // namespace Namespace string `json:"namespace,omitempty"` // token Token string `json:"token,omitempty"` }
Principal principal
swagger:model Principal
func (*Principal) MarshalBinary ¶
MarshalBinary interface implementation
func (*Principal) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Restore ¶
type Restore struct { // database // Required: true Database *string `json:"database"` // file // Required: true File *string `json:"file"` // status // Required: true Status *string `json:"status"` // time // Required: true // Format: date-time Time *strfmt.DateTime `json:"time"` }
Restore restore
swagger:model Restore
func (*Restore) MarshalBinary ¶
MarshalBinary interface implementation
func (*Restore) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Service ¶
type Service struct { // advanced conf AdvancedConf AdvancedConf `json:"advancedConf,omitempty"` // created at // Read Only: true // Format: date-time CreatedAt strfmt.DateTime `json:"created_at,omitempty"` // external connection ExternalConnection *ServiceExternalConnection `json:"externalConnection,omitempty"` // instances // Read Only: true Instances []*ServiceInstance `json:"instances"` // internal connection InternalConnection *ServiceInternalConnection `json:"internalConnection,omitempty"` // limits Limits *Limits `json:"limits,omitempty"` // maintenance window MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"` // masters // Read Only: true Masters int64 `json:"masters,omitempty"` // name // Required: true // Max Length: 20 // Min Length: 2 // Pattern: [a-z0-9]([-a-z0-9]*[a-z0-9])? Name *string `json:"name"` // ns // Max Length: 33 // Min Length: 2 // Pattern: [a-z0-9]([-a-z0-9]*[a-z0-9])? Ns string `json:"ns,omitempty"` // replicas Replicas *int64 `json:"replicas,omitempty"` // status // Read Only: true Status string `json:"status,omitempty"` // type // Required: true // Enum: [postgresql mysql] Type *string `json:"type"` // version Version string `json:"version,omitempty"` }
Service service
swagger:model Service
func (*Service) MarshalBinary ¶
MarshalBinary interface implementation
func (*Service) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ServiceExternalConnection ¶
type ServiceExternalConnection struct { // master Master *Connection `json:"master,omitempty"` // replica Replica *Connection `json:"replica,omitempty"` }
ServiceExternalConnection service external connection
swagger:model ServiceExternalConnection
func (*ServiceExternalConnection) MarshalBinary ¶
func (m *ServiceExternalConnection) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServiceExternalConnection) UnmarshalBinary ¶
func (m *ServiceExternalConnection) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServiceInstance ¶
type ServiceInstance struct { // name Name string `json:"name,omitempty"` // role Role string `json:"role,omitempty"` // status Status *ServiceInstanceStatus `json:"status,omitempty"` }
ServiceInstance service instance
swagger:model ServiceInstance
func (*ServiceInstance) MarshalBinary ¶
func (m *ServiceInstance) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServiceInstance) UnmarshalBinary ¶
func (m *ServiceInstance) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServiceInstanceStatus ¶
type ServiceInstanceStatus struct { // status // Enum: [Running Failed Pending] Status string `json:"status,omitempty"` }
ServiceInstanceStatus service instance status
swagger:model ServiceInstanceStatus
func (*ServiceInstanceStatus) MarshalBinary ¶
func (m *ServiceInstanceStatus) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServiceInstanceStatus) UnmarshalBinary ¶
func (m *ServiceInstanceStatus) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServiceInternalConnection ¶
type ServiceInternalConnection struct { // master Master *Connection `json:"master,omitempty"` // replica Replica *Connection `json:"replica,omitempty"` }
ServiceInternalConnection service internal connection
swagger:model ServiceInternalConnection
func (*ServiceInternalConnection) MarshalBinary ¶
func (m *ServiceInternalConnection) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServiceInternalConnection) UnmarshalBinary ¶
func (m *ServiceInternalConnection) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type User ¶
type User struct { // name // Required: true Name *string `json:"name"` // password Password string `json:"password,omitempty"` }
User user
swagger:model User
func (*User) MarshalBinary ¶
MarshalBinary interface implementation
func (*User) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UserCredentials ¶
type UserCredentials struct { // password // Required: true Password *string `json:"password"` // username // Required: true Username *string `json:"username"` }
UserCredentials user credentials
swagger:model UserCredentials
func (*UserCredentials) MarshalBinary ¶
func (m *UserCredentials) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UserCredentials) UnmarshalBinary ¶
func (m *UserCredentials) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation