Documentation ¶
Index ¶
- func Delete(client *gophercloud.ServiceClient, instanceid string, dbUser string) (r commonResult)
- func List(client *gophercloud.ServiceClient, opts DbUsersBuilder, instance string) pagination.Pager
- type CreateDbUserBuilder
- type CreateDbUserOpts
- type DbUserResp
- type DbUserResult
- type DbUsersBuilder
- type DbUsersPage
- type DeleteDbUser
- type ListDbUsersOpts
- type ListDbUsersResp
- type NameList
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 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 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 ¶
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)
Click to show internal directories.
Click to hide internal directories.