cognitosvc

package
v0.15.14 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateGroupOpts

type CreateGroupOpts struct {
	Name        string
	Description string
}

type CreateUserOpts

type CreateUserOpts struct {
	FirstName string
	LastName  string
	Email     string
	IsAdmin   bool
}

type Service

type Service struct {
	Clock        clock.Clock
	DB           ddb.Storage
	Syncer       auth.IdentitySyncer
	Cognito      Cognito
	AdminGroupID string
}

Service holds business logic relating to Cognito user management.

func (*Service) AdminCreateGroup added in v0.12.0

func (s *Service) AdminCreateGroup(ctx context.Context, in CreateGroupOpts) (*identity.Group, error)

func (*Service) AdminCreateUser added in v0.12.0

func (s *Service) AdminCreateUser(ctx context.Context, in CreateUserOpts) (*identity.User, error)

func (*Service) AdminUpdateUserGroups added in v0.12.0

func (s *Service) AdminUpdateUserGroups(ctx context.Context, in UpdateUserGroupsOpts) (*identity.User, error)

type UpdateUserGroupsOpts

type UpdateUserGroupsOpts struct {
	UserID string
	Groups []string
}

Jump to

Keyboard shortcuts

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