users

package
v1.67.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 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, tokenURL string, endpointURL 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(ctx context.Context, user *users.User) (*api.Stub, error)

func (*UserServiceClient) Delete

func (me *UserServiceClient) Delete(ctx context.Context, email string) error

func (*UserServiceClient) EndpointURL added in v1.67.0

func (me *UserServiceClient) EndpointURL() string

func (*UserServiceClient) Get

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

func (*UserServiceClient) List

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

func (*UserServiceClient) SchemaID

func (me *UserServiceClient) SchemaID() string

func (*UserServiceClient) TokenURL added in v1.67.0

func (me *UserServiceClient) TokenURL() string

func (*UserServiceClient) Update

func (me *UserServiceClient) Update(ctx context.Context, 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