db_privilege

package
v1.0.18 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dbprivilege

type Dbprivilege struct {
	Resp string `json:"resp"`
}

type DbprivilegeBuilder

type DbprivilegeBuilder interface {
	ToDbprivilegeHaMap() (map[string]interface{}, error)
}

type DbprivilegeOpts

type DbprivilegeOpts struct {
	Dbname string `json:"db_name"  required:"true"`
	Users  []User `json:"users"  required:"true"`
}

func (DbprivilegeOpts) ToDbprivilegeHaMap

func (opts DbprivilegeOpts) ToDbprivilegeHaMap() (map[string]interface{}, error)

type DbprivilegeResult

type DbprivilegeResult struct {
	gophercloud.Result
}

func Create

func Create(client *gophercloud.ServiceClient, opts DbprivilegeBuilder, instanceId string) (r DbprivilegeResult)

func Delete

func Delete(client *gophercloud.ServiceClient, opts DeleteDbprivilegeBuilder, instanceId string) (r DbprivilegeResult)

func (DbprivilegeResult) Extract

func (r DbprivilegeResult) Extract() (*Dbprivilege, error)

type DeleteDbprivilegeBuilder

type DeleteDbprivilegeBuilder interface {
	DeleteDbprivilegeMap() (map[string]interface{}, error)
}

type DeleteDbprivilegeOpts

type DeleteDbprivilegeOpts struct {
	Dbname string        `json:"db_name"  required:"true"`
	Users  []DeleteUsers `json:"users"  required:"true"`
}

func (DeleteDbprivilegeOpts) DeleteDbprivilegeMap

func (opts DeleteDbprivilegeOpts) DeleteDbprivilegeMap() (map[string]interface{}, error)

type DeleteUsers

type DeleteUsers struct {
	Name string `json:"name"  required:"true"`
}

type User

type User struct {
	Name     string `json:"name"  required:"true"`
	Readonly bool   `json:"readonly"  required:"true"`
}

Jump to

Keyboard shortcuts

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