blocking

package
v0.0.0-...-cde6bcd Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OIDCJWTPreCreate event.Type = "oidc.jwt.pre_create"
)
View Source
const (
	UserPreCreate event.Type = "user.pre_create"
)
View Source
const (
	UserPreScheduleAnonymization event.Type = "user.pre_schedule_anonymization"
)
View Source
const (
	UserPreScheduleDeletion event.Type = "user.pre_schedule_deletion"
)
View Source
const (
	UserProfilePreUpdate event.Type = "user.profile.pre_update"
)

Variables

This section is empty.

Functions

func ApplyUserMutations

func ApplyUserMutations(user model.User, userMutations event.UserMutations) (out model.User, mutated bool)

func MakeUserMutations

func MakeUserMutations(user model.User) event.UserMutations

func PerformEffectsOnUser

func PerformEffectsOnUser(ctx context.Context, effectCtx event.MutationsEffectContext, userID string, userMutations event.UserMutations) error

Types

type OIDCJWT

type OIDCJWT struct {
	Payload map[string]interface{} `json:"payload"`
}

type OIDCJWTPreCreateBlockingEventPayload

type OIDCJWTPreCreateBlockingEventPayload struct {
	UserRef    model.UserRef    `json:"-" resolve:"user"`
	UserModel  model.User       `json:"user"`
	Identities []model.Identity `json:"identities"`
	JWT        OIDCJWT          `json:"jwt"`
}

func (*OIDCJWTPreCreateBlockingEventPayload) ApplyMutations

func (e *OIDCJWTPreCreateBlockingEventPayload) ApplyMutations(ctx context.Context, mutations event.Mutations) bool

func (*OIDCJWTPreCreateBlockingEventPayload) BlockingEventType

func (e *OIDCJWTPreCreateBlockingEventPayload) BlockingEventType() event.Type

func (*OIDCJWTPreCreateBlockingEventPayload) FillContext

func (e *OIDCJWTPreCreateBlockingEventPayload) FillContext(ctx *event.Context)

func (*OIDCJWTPreCreateBlockingEventPayload) GetTriggeredBy

func (*OIDCJWTPreCreateBlockingEventPayload) PerformEffects

func (*OIDCJWTPreCreateBlockingEventPayload) UserID

type UserPreCreateBlockingEventPayload

type UserPreCreateBlockingEventPayload struct {
	UserRef    model.UserRef    `json:"-" resolve:"user"`
	UserModel  model.User       `json:"user"`
	Identities []model.Identity `json:"identities"`
	AdminAPI   bool             `json:"-"`
}

func (*UserPreCreateBlockingEventPayload) ApplyMutations

func (e *UserPreCreateBlockingEventPayload) ApplyMutations(ctx context.Context, mutations event.Mutations) bool

func (*UserPreCreateBlockingEventPayload) BlockingEventType

func (e *UserPreCreateBlockingEventPayload) BlockingEventType() event.Type

func (*UserPreCreateBlockingEventPayload) FillContext

func (e *UserPreCreateBlockingEventPayload) FillContext(ctx *event.Context)

func (*UserPreCreateBlockingEventPayload) GetTriggeredBy

func (*UserPreCreateBlockingEventPayload) PerformEffects

func (*UserPreCreateBlockingEventPayload) UserID

type UserPreScheduleAnonymizationBlockingEventPayload

type UserPreScheduleAnonymizationBlockingEventPayload struct {
	UserRef   model.UserRef `json:"-" resolve:"user"`
	UserModel model.User    `json:"user"`
	AdminAPI  bool          `json:"-"`
}

func (*UserPreScheduleAnonymizationBlockingEventPayload) ApplyMutations

func (*UserPreScheduleAnonymizationBlockingEventPayload) BlockingEventType

func (*UserPreScheduleAnonymizationBlockingEventPayload) FillContext

func (*UserPreScheduleAnonymizationBlockingEventPayload) GetTriggeredBy

func (*UserPreScheduleAnonymizationBlockingEventPayload) PerformEffects

func (*UserPreScheduleAnonymizationBlockingEventPayload) UserID

type UserPreScheduleDeletionBlockingEventPayload

type UserPreScheduleDeletionBlockingEventPayload struct {
	UserRef   model.UserRef `json:"-" resolve:"user"`
	UserModel model.User    `json:"user"`
	AdminAPI  bool          `json:"-"`
}

func (*UserPreScheduleDeletionBlockingEventPayload) ApplyMutations

func (*UserPreScheduleDeletionBlockingEventPayload) BlockingEventType

func (*UserPreScheduleDeletionBlockingEventPayload) FillContext

func (*UserPreScheduleDeletionBlockingEventPayload) GetTriggeredBy

func (*UserPreScheduleDeletionBlockingEventPayload) PerformEffects

func (*UserPreScheduleDeletionBlockingEventPayload) UserID

type UserProfilePreUpdateBlockingEventPayload

type UserProfilePreUpdateBlockingEventPayload struct {
	UserRef   model.UserRef `json:"-" resolve:"user"`
	UserModel model.User    `json:"user"`
	AdminAPI  bool          `json:"-"`
}

func (*UserProfilePreUpdateBlockingEventPayload) ApplyMutations

func (e *UserProfilePreUpdateBlockingEventPayload) ApplyMutations(ctx context.Context, mutations event.Mutations) bool

func (*UserProfilePreUpdateBlockingEventPayload) BlockingEventType

func (e *UserProfilePreUpdateBlockingEventPayload) BlockingEventType() event.Type

func (*UserProfilePreUpdateBlockingEventPayload) FillContext

func (*UserProfilePreUpdateBlockingEventPayload) GetTriggeredBy

func (*UserProfilePreUpdateBlockingEventPayload) PerformEffects

func (*UserProfilePreUpdateBlockingEventPayload) UserID

Jump to

Keyboard shortcuts

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