user

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	PatchOpAdd     = "add"
	PatchOpReplace = "replace"
	PatchOpRemove  = "remove"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MeModel added in v0.0.18

type MeModel = map[string]interface{}

type PatchOperationModel added in v0.0.18

type PatchOperationModel = internal.PatchOperation

type UserClient

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

func New

func New(cfg *config.ClientConfig) (*UserClient, error)

func (*UserClient) CreateUser

func (c *UserClient) CreateUser(ctx context.Context, user UserCreateModel) (*http.Response, error)

func (*UserClient) GetMe added in v0.0.18

func (c *UserClient) GetMe(ctx context.Context, attributes string) (MeModel, error)

GetMe retrieves the authenticated user, optionally limited to comma-separated attributes

func (*UserClient) GetSchemas added in v0.0.18

func (c *UserClient) GetSchemas(ctx context.Context) (interface{}, error)

GetSchemas retrieves the SCIM schemas

func (*UserClient) PatchMe added in v0.0.18

func (c *UserClient) PatchMe(ctx context.Context, operations []PatchOperationModel) (MeModel, error)

PatchMe updates the authenticated user

type UserCreateModel

type UserCreateModel struct {
	Username  string `json:"username"`
	Email     string `json:"email"`
	Password  string `json:"password"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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