database

package
v1.0.23-3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
y or Y : Canonical URL