Documentation ¶
Index ¶
- func Delete(client *gophercloud.ServiceClient, instanceid string, dbName string) (r commonResult)
- func List(client *gophercloud.ServiceClient, opts ListOptsBuilder, instance string) pagination.Pager
- type CreateDatabaseResp
- type CreateDatabaseResult
- type CreateOpts
- type CreateOptsBuilder
- type DataBasePage
- type Databases
- type DeleteDataBase
- type ListDataBaseResp
- type ListOpts
- type ListOptsBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
func Delete(client *gophercloud.ServiceClient, instanceid string, dbName string) (r commonResult)
func List ¶
func List(client *gophercloud.ServiceClient, opts ListOptsBuilder, instance string) pagination.Pager
Types ¶
type CreateDatabaseResp ¶
type CreateDatabaseResp struct {
Resp string `json:"resp"`
}
type CreateDatabaseResult ¶
type CreateDatabaseResult struct {
gophercloud.Result
}
func Create ¶
func Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder, instanceId string) (r CreateDatabaseResult)
func (CreateDatabaseResult) Extract ¶
func (r CreateDatabaseResult) Extract() (*CreateDatabaseResp, error)
type CreateOpts ¶
type CreateOpts struct { Dbname string `json:"name" required:"true"` Characterset string `json:"character_set" required:"true"` }
func (CreateOpts) ToDatabaseCreateMap ¶
func (opts CreateOpts) ToDatabaseCreateMap() (map[string]interface{}, error)
type CreateOptsBuilder ¶
type DataBasePage ¶
type DataBasePage struct {
pagination.Offset
}
func (DataBasePage) IsEmpty ¶
func (r DataBasePage) IsEmpty() (bool, error)
type DeleteDataBase ¶
type DeleteDataBase struct {
Resp string `json:"resp"`
}
type ListDataBaseResp ¶
type ListDataBaseResp struct { DatabasesList []Databases `json:"databases"` Totalcount int `json:"total_count"` }
func ExtractDataBase ¶
func ExtractDataBase(r pagination.Page) (ListDataBaseResp, error)
type ListOpts ¶
func (ListOpts) ToDataBaseListQuery ¶
type ListOptsBuilder ¶
Click to show internal directories.
Click to hide internal directories.