servicecognito

package
v8.3.7 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(ctx context.Context, data *CreateUserData) error

func DeleteUser

func DeleteUser(ctx context.Context, data *DeleteUserData) error

Types

type CreateUserData

type CreateUserData struct {
	Username          string `json:"username"`
	TemporaryPassword string `json:"temporaryPassword"`
	CompanyKey        string `json:"companyKey"`
	StoreKey          string `json:"storeKey"`
	FirstName         string `json:"firstName"`
	LastName          string `json:"lastName"`
	Role              string `json:"role"`
}

type DeleteUserData

type DeleteUserData struct {
	Username string `json:"username"`
}

type GetUserData

type GetUserData struct {
	Username string `json:"username"`
}

type User

type User struct {
	Username  string `json:"username"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Status    string `json:"status"`
	Company   string `json:"company"`
}

func GetUser

func GetUser(ctx context.Context, data *GetUserData) (*User, error)

Jump to

Keyboard shortcuts

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