db_user

package
v0.0.0-...-ae37572 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 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, dbUser string) (r commonResult)

func List

func List(client *gophercloud.ServiceClient, opts DbUsersBuilder, instance string) pagination.Pager

Types

type CreateDbUserBuilder

type CreateDbUserBuilder interface {
	ToDbUserCreateMap() (map[string]interface{}, error)
}

type CreateDbUserOpts

type CreateDbUserOpts struct {
	Username string `json:"name"  required:"true"`
	Password string `json:"password"  required:"true"`
}

func (CreateDbUserOpts) ToDbUserCreateMap

func (opts CreateDbUserOpts) ToDbUserCreateMap() (map[string]interface{}, error)

type DbUserResp

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

type DbUserResult

type DbUserResult struct {
	gophercloud.Result
}

func Create

func Create(client *gophercloud.ServiceClient, opts CreateDbUserBuilder, instanceId string) (r DbUserResult)

func (DbUserResult) Extract

func (r DbUserResult) Extract() (*DbUserResp, error)

type DbUsersBuilder

type DbUsersBuilder interface {
	ToDbUsersListQuery() (string, error)
}

type DbUsersPage

type DbUsersPage struct {
	pagination.Offset
}

func (DbUsersPage) IsEmpty

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

type DeleteDbUser

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

type ListDbUsersOpts

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

func (ListDbUsersOpts) ToDbUsersListQuery

func (opts ListDbUsersOpts) ToDbUsersListQuery() (string, error)

type ListDbUsersResp

type ListDbUsersResp struct {
	UsersList  []NameList `json:"users"`
	Totalcount int        `json:"total_count"`
}

func ExtractDbUsers

func ExtractDbUsers(r pagination.Page) (ListDbUsersResp, error)

type NameList

type NameList struct {
	Name string `json:"name"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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