Versions in this module Expand all Collapse all v0 v0.10.0 Sep 6, 2026 Changes in this version + func FixedError(err error) ent.Hook + func If(hk ent.Hook, cond Condition) ent.Hook + func On(hk ent.Hook, op ent.Op) ent.Hook + func Reject(op ent.Op) ent.Hook + func Unless(hk ent.Hook, op ent.Op) ent.Hook + type APIKeyFunc func(context.Context, *ent.APIKeyMutation) (ent.Value, error) + func (f APIKeyFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type AgentFunc func(context.Context, *ent.AgentMutation) (ent.Value, error) + func (f AgentFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type ApplicationFunc func(context.Context, *ent.ApplicationMutation) (ent.Value, error) + func (f ApplicationFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type Chain struct + func NewChain(hooks ...ent.Hook) Chain + func (c Chain) Append(hooks ...ent.Hook) Chain + func (c Chain) Extend(chain Chain) Chain + func (c Chain) Hook() ent.Hook + type Condition func(context.Context, ent.Mutation) bool + func And(first, second Condition, rest ...Condition) Condition + func HasAddedFields(field string, fields ...string) Condition + func HasClearedFields(field string, fields ...string) Condition + func HasFields(field string, fields ...string) Condition + func HasOp(op ent.Op) Condition + func Not(cond Condition) Condition + func Or(first, second Condition, rest ...Condition) Condition + type CredentialFunc func(context.Context, *ent.CredentialMutation) (ent.Value, error) + func (f CredentialFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type HumanFunc func(context.Context, *ent.HumanMutation) (ent.Value, error) + func (f HumanFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type InviteFunc func(context.Context, *ent.InviteMutation) (ent.Value, error) + func (f InviteFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type LicenseFunc func(context.Context, *ent.LicenseMutation) (ent.Value, error) + func (f LicenseFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type ListingFunc func(context.Context, *ent.ListingMutation) (ent.Value, error) + func (f ListingFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type MembershipFunc func(context.Context, *ent.MembershipMutation) (ent.Value, error) + func (f MembershipFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type OAuthAccountFunc func(context.Context, *ent.OAuthAccountMutation) (ent.Value, error) + func (f OAuthAccountFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type OAuthAppFunc func(context.Context, *ent.OAuthAppMutation) (ent.Value, error) + func (f OAuthAppFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type OAuthAppSecretFunc func(context.Context, *ent.OAuthAppSecretMutation) (ent.Value, error) + func (f OAuthAppSecretFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type OAuthAuthCodeFunc func(context.Context, *ent.OAuthAuthCodeMutation) (ent.Value, error) + func (f OAuthAuthCodeFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type OAuthConsentFunc func(context.Context, *ent.OAuthConsentMutation) (ent.Value, error) + func (f OAuthConsentFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type OAuthTokenFunc func(context.Context, *ent.OAuthTokenMutation) (ent.Value, error) + func (f OAuthTokenFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type OrganizationFunc func(context.Context, *ent.OrganizationMutation) (ent.Value, error) + func (f OrganizationFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type PrincipalFunc func(context.Context, *ent.PrincipalMutation) (ent.Value, error) + func (f PrincipalFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type PrincipalMembershipFunc func(context.Context, *ent.PrincipalMembershipMutation) (ent.Value, error) + func (f PrincipalMembershipFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type PrincipalTokenFunc func(context.Context, *ent.PrincipalTokenMutation) (ent.Value, error) + func (f PrincipalTokenFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type RefreshTokenFunc func(context.Context, *ent.RefreshTokenMutation) (ent.Value, error) + func (f RefreshTokenFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type SeatAssignmentFunc func(context.Context, *ent.SeatAssignmentMutation) (ent.Value, error) + func (f SeatAssignmentFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type ServiceAccountFunc func(context.Context, *ent.ServiceAccountMutation) (ent.Value, error) + func (f ServiceAccountFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type ServiceAccountKeyPairFunc func(context.Context, *ent.ServiceAccountKeyPairMutation) (ent.Value, error) + func (f ServiceAccountKeyPairFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type ServicePrincipalFunc func(context.Context, *ent.ServicePrincipalMutation) (ent.Value, error) + func (f ServicePrincipalFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type SubscriptionFunc func(context.Context, *ent.SubscriptionMutation) (ent.Value, error) + func (f SubscriptionFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error) + type UserFunc func(context.Context, *ent.UserMutation) (ent.Value, error) + func (f UserFunc) Mutate(ctx context.Context, m ent.Mutation) (ent.Value, error)