client

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is the client for communicating with the in-cluster uidp

func NewClient

func NewClient() *Client

NewClient creates a new client for communicating with inspr's UID provider.

func (*Client) CreateUser

func (c *Client) CreateUser(ctx context.Context, uid, pwd string, newUser client.User) error

CreateUser creates a user in inspr's UID provider.

func (*Client) DeleteUser

func (c *Client) DeleteUser(ctx context.Context, uid, pwd, usrToBeDeleted string) error

DeleteUser deletes a user in inspr's UID provider

func (*Client) Login

func (c *Client) Login(ctx context.Context, uid, pwd string) (string, error)

Login creates a request to log in to a uid provider. It returns a signed token for communicating with the insprd cluster in question.

func (*Client) UpdatePassword

func (c *Client) UpdatePassword(ctx context.Context, uid, pwd, usrToBeUpdated, newPwd string) error

UpdatePassword updates a user's password on inspr's uid provider.

Jump to

Keyboard shortcuts

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