models

package
v0.0.0-...-ea7eeef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const (

	// ServiceTypePostgresql captures enum value "postgresql"
	ServiceTypePostgresql string = "postgresql"

	// ServiceTypeMysql captures enum value "mysql"
	ServiceTypeMysql string = "mysql"
)
View Source
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

func (*AccessTokenResponse) Validate

func (m *AccessTokenResponse) Validate(formats strfmt.Registry) error

Validate validates this access token response

type AdvancedConf

type AdvancedConf map[string]string

AdvancedConf advanced conf

swagger:model AdvancedConf

func (AdvancedConf) Validate

func (m AdvancedConf) Validate(formats strfmt.Registry) error

Validate validates this advanced conf

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

func (m *Backup) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Backup) UnmarshalBinary

func (m *Backup) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Backup) Validate

func (m *Backup) Validate(formats strfmt.Registry) error

Validate validates this backup

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

func (*BackupConfig) Validate

func (m *BackupConfig) Validate(formats strfmt.Registry) error

Validate validates this backup config

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

func (*Connection) Validate

func (m *Connection) Validate(formats strfmt.Registry) error

Validate validates this connection

type Database

type Database struct {

	// name
	// Required: true
	Name *string `json:"name"`
}

Database database

swagger:model Database

func (*Database) MarshalBinary

func (m *Database) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Database) UnmarshalBinary

func (m *Database) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Database) Validate

func (m *Database) Validate(formats strfmt.Registry) error

Validate validates this database

type Error

type Error struct {

	// message
	Message string `json:"message,omitempty"`
}

Error error

swagger:model Error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

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

func (m *Limits) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Limits) UnmarshalBinary

func (m *Limits) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Limits) Validate

func (m *Limits) Validate(formats strfmt.Registry) error

Validate validates this limits

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

func (m *Log) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Log) UnmarshalBinary

func (m *Log) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Log) Validate

func (m *Log) Validate(formats strfmt.Registry) error

Validate validates this log

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

func (*MaintenanceWindow) Validate

func (m *MaintenanceWindow) Validate(formats strfmt.Registry) error

Validate validates this maintenance window

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

func (m *Principal) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Principal) UnmarshalBinary

func (m *Principal) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Principal) Validate

func (m *Principal) Validate(formats strfmt.Registry) error

Validate validates this principal

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

func (m *Restore) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Restore) UnmarshalBinary

func (m *Restore) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Restore) Validate

func (m *Restore) Validate(formats strfmt.Registry) error

Validate validates this restore

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

func (m *Service) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Service) UnmarshalBinary

func (m *Service) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Service) Validate

func (m *Service) Validate(formats strfmt.Registry) error

Validate validates this service

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

func (*ServiceExternalConnection) Validate

func (m *ServiceExternalConnection) Validate(formats strfmt.Registry) error

Validate validates this service external connection

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

func (*ServiceInstance) Validate

func (m *ServiceInstance) Validate(formats strfmt.Registry) error

Validate validates this service instance

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

func (*ServiceInstanceStatus) Validate

func (m *ServiceInstanceStatus) Validate(formats strfmt.Registry) error

Validate validates this service instance status

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

func (*ServiceInternalConnection) Validate

func (m *ServiceInternalConnection) Validate(formats strfmt.Registry) error

Validate validates this service internal connection

type Services

type Services []*Service

Services services

swagger:model Services

func (Services) Validate

func (m Services) Validate(formats strfmt.Registry) error

Validate validates this services

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

func (m *User) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*User) UnmarshalBinary

func (m *User) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*User) Validate

func (m *User) Validate(formats strfmt.Registry) error

Validate validates this user

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

func (*UserCredentials) Validate

func (m *UserCredentials) Validate(formats strfmt.Registry) error

Validate validates this user credentials

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL