database

package
Version: v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

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 CreateOptsBuilder interface {
	ToDatabaseCreateMap() (map[string]interface{}, error)
}

type DataBasePage

type DataBasePage struct {
	pagination.Offset
}

func (DataBasePage) IsEmpty

func (r DataBasePage) IsEmpty() (bool, error)

type Databases

type Databases struct {
	Name         string `json:"name"`
	CharacterSet string `json:"character_set"`
}

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

type ListOpts struct {
	Page  int `q:"page" `
	Limit int `q:"limit" `
}

func (ListOpts) ToDataBaseListQuery

func (opts ListOpts) ToDataBaseListQuery() (string, error)

type ListOptsBuilder

type ListOptsBuilder interface {
	ToDataBaseListQuery() (string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL