internalidentitysvc

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrGroupNotFoundOrNotInternal error = errors.New("group not found or it is not internal")
View Source
var ErrNotInternal error = errors.New("cannot update group because it is not an internal group")

Functions

This section is empty.

Types

type Service

type Service struct {
	DB    ddb.Storage
	Clock clock.Clock
}

Service holds business logic relating to Access Requests.

func (*Service) CreateGroup

func (s *Service) CreateGroup(ctx context.Context, in types.CreateGroupRequest) (*identity.Group, error)

func (*Service) DeleteGroup

func (s *Service) DeleteGroup(ctx context.Context, group identity.Group) error

func (*Service) UpdateGroup

func (s *Service) UpdateGroup(ctx context.Context, group identity.Group, in types.CreateGroupRequest) (*identity.Group, error)

func (*Service) UpdateUserGroups

func (s *Service) UpdateUserGroups(ctx context.Context, user identity.User, groups []string) (*identity.User, error)

type UserNotFoundError

type UserNotFoundError struct {
	UserID string
}

func (UserNotFoundError) Error

func (e UserNotFoundError) Error() string

Jump to

Keyboard shortcuts

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