users

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserAccess

func AddUserAccess(identityToken, stage, userID, companyID string) (err error)

func AddUserRole

func AddUserRole(identityToken, stage, userID, role string) (err error)

func Delete

func Delete(accessToken, stage, userID string) error

func PollForTemporaryPassword

func PollForTemporaryPassword(email string, startedAt time.Time) (string, error)

Types

type User

type User struct {
	ID        string `json:"id"`
	CompanyID string `json:"companyId"`
	Email     string `json:"email"`
	GivenName string `json:"givenName"`
	Surname   string `json:"surname"`
	Language  string `json:"language"`
	Status    string `json:"status"`
}

func Create

func Create(accessToken, stage, companyID, email string) (_ User, password string, err error)

Jump to

Keyboard shortcuts

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