Help us shape the future of Go! Take the 2026 Go Developer Survey

users

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(client *golangsdk.ServiceClient, instanceId string, opts CreateOpts) error

func Delete

func Delete(client *golangsdk.ServiceClient, instanceId string, opts DeleteOpts) error

func ResetPassword

func ResetPassword(client *golangsdk.ServiceClient, instanceId, userName, password string) error

Types

type CreateOpts

type CreateOpts struct {
	UserName   string `json:"user_name,omitempty"`
	UserPasswd string `json:"user_passwd,omitempty"`
}

type DeleteOpts

type DeleteOpts struct {
	Action string   `json:"action,omitempty"`
	Users  []string `json:"users,omitempty"`
}

type Users

type Users struct {
	UserName    string  `json:"user_name"`
	Role        string  `json:"role"`
	DefaultApp  bool    `json:"default_app"`
	CreatedTime float64 `json:"created_time"`
}

func List

func List(client *golangsdk.ServiceClient, instanceId string) ([]Users, error)

Jump to

Keyboard shortcuts

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