users

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserAccess

func AddUserAccess(identityToken, stage, userID, nodeID string) error

func AddUserAccessWithContext added in v0.0.8

func AddUserAccessWithContext(ctx context.Context, identityToken, stage, userID, nodeID string) (err error)

func AddUserRole

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

func AddUserRoleWithContext added in v0.0.8

func AddUserRoleWithContext(ctx context.Context, identityToken, stage, userID, role string) (err error)

func Delete

func Delete(identityToken, stage, userID string) error

func DeleteWithContext added in v0.0.8

func DeleteWithContext(ctx context.Context, identityToken, stage, userID string) error

func PollForTemporaryPassword

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

func RemoveUserAccess added in v0.2.0

func RemoveUserAccess(identityToken, stage, userID, nodeID string) error

func RemoveUserAccessWithContext added in v0.2.0

func RemoveUserAccessWithContext(ctx context.Context, identityToken, stage, userID, nodeID string) (err error)

func RemoveUserRole added in v0.2.0

func RemoveUserRole(identityToken, stage, userID, role string) error

func RemoveUserRoleWithContext added in v0.2.0

func RemoveUserRoleWithContext(ctx context.Context, identityToken, stage, userID, roleToBeRemoved string) (err 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(identityToken, stage, companyID, email string) (User, string, error)

func CreateWithContext added in v0.0.8

func CreateWithContext(ctx context.Context, identityToken, 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