events

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package events provides the domain concept definitions needed to support SuperMQ auth service functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleManagerEventStore

type RoleManagerEventStore struct {
	events.Publisher
	// contains filtered or unexported fields
}

func NewRoleManagerEventStore

func NewRoleManagerEventStore(svcName, operationPrefix string, svc roles.RoleManager, publisher events.Publisher) RoleManagerEventStore

NewEventStoreMiddleware returns wrapper around auth service that sends events to event store.

func (*RoleManagerEventStore) AddRole

func (rmes *RoleManagerEventStore) AddRole(ctx context.Context, session authn.Session, entityID, roleName string, optionalActions []string, optionalMembers []string) (roles.Role, error)

func (*RoleManagerEventStore) ListAvailableActions

func (rmes *RoleManagerEventStore) ListAvailableActions(ctx context.Context, session authn.Session) ([]string, error)

func (*RoleManagerEventStore) RemoveMemberFromAllRoles

func (rmes *RoleManagerEventStore) RemoveMemberFromAllRoles(ctx context.Context, session authn.Session, memberID string) (err error)

func (*RoleManagerEventStore) RemoveRole

func (rmes *RoleManagerEventStore) RemoveRole(ctx context.Context, session authn.Session, entityID, roleName string) error

func (*RoleManagerEventStore) RetrieveAllRoles

func (rmes *RoleManagerEventStore) RetrieveAllRoles(ctx context.Context, session authn.Session, entityID string, limit, offset uint64) (roles.RolePage, error)

func (*RoleManagerEventStore) RetrieveRole

func (rmes *RoleManagerEventStore) RetrieveRole(ctx context.Context, session authn.Session, entityID, roleName string) (roles.Role, error)

func (*RoleManagerEventStore) RoleAddActions

func (rmes *RoleManagerEventStore) RoleAddActions(ctx context.Context, session authn.Session, entityID, roleName string, actions []string) ([]string, error)

func (*RoleManagerEventStore) RoleAddMembers

func (rmes *RoleManagerEventStore) RoleAddMembers(ctx context.Context, session authn.Session, entityID, roleName string, members []string) ([]string, error)

func (*RoleManagerEventStore) RoleCheckActionsExists

func (rmes *RoleManagerEventStore) RoleCheckActionsExists(ctx context.Context, session authn.Session, entityID, roleName string, actions []string) (bool, error)

func (*RoleManagerEventStore) RoleCheckMembersExists

func (rmes *RoleManagerEventStore) RoleCheckMembersExists(ctx context.Context, session authn.Session, entityID, roleName string, members []string) (bool, error)

func (*RoleManagerEventStore) RoleListActions

func (rmes *RoleManagerEventStore) RoleListActions(ctx context.Context, session authn.Session, entityID, roleName string) ([]string, error)

func (*RoleManagerEventStore) RoleListMembers

func (rmes *RoleManagerEventStore) RoleListMembers(ctx context.Context, session authn.Session, entityID, roleName string, limit, offset uint64) (roles.MembersPage, error)

func (*RoleManagerEventStore) RoleRemoveActions

func (rmes *RoleManagerEventStore) RoleRemoveActions(ctx context.Context, session authn.Session, entityID, roleName string, actions []string) (err error)

func (*RoleManagerEventStore) RoleRemoveAllActions

func (rmes *RoleManagerEventStore) RoleRemoveAllActions(ctx context.Context, session authn.Session, entityID, roleName string) error

func (*RoleManagerEventStore) RoleRemoveAllMembers

func (rmes *RoleManagerEventStore) RoleRemoveAllMembers(ctx context.Context, session authn.Session, entityID, roleName string) (err error)

func (*RoleManagerEventStore) RoleRemoveMembers

func (rmes *RoleManagerEventStore) RoleRemoveMembers(ctx context.Context, session authn.Session, entityID, roleName string, members []string) (err error)

func (*RoleManagerEventStore) UpdateRoleName

func (rmes *RoleManagerEventStore) UpdateRoleName(ctx context.Context, session authn.Session, entityID, oldRoleName, newRoleName string) (roles.Role, error)

Jump to

Keyboard shortcuts

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