users

package
v1.41.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Service

func Service(credentials *settings.Credentials) settings.CRUDService[*users.User]

Types

type GetUserGroupsResponse

type GetUserGroupsResponse struct {
	Groups []*GroupStub
	UID    string `json:"uid"`
}

type GroupStub

type GroupStub struct {
	GroupName string `json:"groupName"`
	UUID      string `json:"uuid"`
}

type ListUsersResponse

type ListUsersResponse struct {
	Count int        `json:"count:"`
	Items []UserStub `json:"items"`
}

type UserServiceClient

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

func NewUserService

func NewUserService(clientID string, accountID string, clientSecret string) *UserServiceClient

func (*UserServiceClient) AccountID

func (me *UserServiceClient) AccountID() string

func (*UserServiceClient) ClientID

func (me *UserServiceClient) ClientID() string

func (*UserServiceClient) ClientSecret

func (me *UserServiceClient) ClientSecret() string

func (*UserServiceClient) Create

func (me *UserServiceClient) Create(user *users.User) (*api.Stub, error)

func (*UserServiceClient) Delete

func (me *UserServiceClient) Delete(email string) error

func (*UserServiceClient) Get

func (me *UserServiceClient) Get(email string, v *users.User) error

func (*UserServiceClient) List

func (me *UserServiceClient) List() (api.Stubs, error)

func (*UserServiceClient) Name added in v1.28.0

func (me *UserServiceClient) Name() string

func (*UserServiceClient) SchemaID

func (me *UserServiceClient) SchemaID() string

func (*UserServiceClient) Update

func (me *UserServiceClient) Update(email string, user *users.User) error

type UserStub

type UserStub struct {
	UID   string `json:"uid"`
	Email string `json:"email"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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