db_privilege

package
v1.0.23 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: 1 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

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