hook

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixedError

func FixedError(err error) generated.Hook

FixedError is a hook returning a fixed error.

func If

func If(hk generated.Hook, cond Condition) generated.Hook

If executes the given hook under condition.

hook.If(ComputeAverage, And(HasFields(...), HasAddedFields(...)))

func On

On executes the given hook only for the given operation.

hook.On(Log, generated.Delete|generated.Create)

func Reject

func Reject(op generated.Op) generated.Hook

Reject returns a hook that rejects all operations that match op.

func (T) Hooks() []generated.Hook {
	return []generated.Hook{
		Reject(generated.Delete|generated.Update),
	}
}

func Unless

func Unless(hk generated.Hook, op generated.Op) generated.Hook

Unless skips the given hook only for the given operation.

hook.Unless(Log, generated.Update|generated.UpdateOne)

Types

type APITokenFunc

The APITokenFunc type is an adapter to allow the use of ordinary function as APIToken mutator.

func (APITokenFunc) Mutate

Mutate calls f(ctx, m).

type ActionPlanFunc added in v0.3.3

The ActionPlanFunc type is an adapter to allow the use of ordinary function as ActionPlan mutator.

func (ActionPlanFunc) Mutate added in v0.3.3

Mutate calls f(ctx, m).

type AssessmentFunc added in v0.42.6

The AssessmentFunc type is an adapter to allow the use of ordinary function as Assessment mutator.

func (AssessmentFunc) Mutate added in v0.42.6

Mutate calls f(ctx, m).

type AssessmentResponseFunc added in v0.42.6

type AssessmentResponseFunc func(context.Context, *generated.AssessmentResponseMutation) (generated.Value, error)

The AssessmentResponseFunc type is an adapter to allow the use of ordinary function as AssessmentResponse mutator.

func (AssessmentResponseFunc) Mutate added in v0.42.6

Mutate calls f(ctx, m).

type AssetFunc added in v0.19.0

The AssetFunc type is an adapter to allow the use of ordinary function as Asset mutator.

func (AssetFunc) Mutate added in v0.19.0

Mutate calls f(ctx, m).

type Chain

type Chain struct {
	// contains filtered or unexported fields
}

Chain acts as a list of hooks and is effectively immutable. Once created, it will always hold the same set of hooks in the same order.

func NewChain

func NewChain(hooks ...generated.Hook) Chain

NewChain creates a new chain of hooks.

func (Chain) Append

func (c Chain) Append(hooks ...generated.Hook) Chain

Append extends a chain, adding the specified hook as the last ones in the mutation flow.

func (Chain) Extend

func (c Chain) Extend(chain Chain) Chain

Extend extends a chain, adding the specified chain as the last ones in the mutation flow.

func (Chain) Hook

func (c Chain) Hook() generated.Hook

Hook chains the list of hooks and returns the final hook.

type Condition

type Condition func(context.Context, generated.Mutation) bool

Condition is a hook condition function.

func And

func And(first, second Condition, rest ...Condition) Condition

And groups conditions with the AND operator.

func HasAddedFields

func HasAddedFields(field string, fields ...string) Condition

HasAddedFields is a condition validating `.AddedField` on fields.

func HasClearedFields

func HasClearedFields(field string, fields ...string) Condition

HasClearedFields is a condition validating `.FieldCleared` on fields.

func HasFields

func HasFields(field string, fields ...string) Condition

HasFields is a condition validating `.Field` on fields.

func HasOp

func HasOp(op generated.Op) Condition

HasOp is a condition testing mutation operation.

func Not

func Not(cond Condition) Condition

Not negates a given condition.

func Or

func Or(first, second Condition, rest ...Condition) Condition

Or groups conditions with the OR operator.

type ContactFunc

The ContactFunc type is an adapter to allow the use of ordinary function as Contact mutator.

func (ContactFunc) Mutate

Mutate calls f(ctx, m).

type ControlFunc added in v0.3.3

The ControlFunc type is an adapter to allow the use of ordinary function as Control mutator.

func (ControlFunc) Mutate added in v0.3.3

Mutate calls f(ctx, m).

type ControlImplementationFunc added in v0.7.3

type ControlImplementationFunc func(context.Context, *generated.ControlImplementationMutation) (generated.Value, error)

The ControlImplementationFunc type is an adapter to allow the use of ordinary function as ControlImplementation mutator.

func (ControlImplementationFunc) Mutate added in v0.7.3

Mutate calls f(ctx, m).

type ControlObjectiveFunc added in v0.3.3

type ControlObjectiveFunc func(context.Context, *generated.ControlObjectiveMutation) (generated.Value, error)

The ControlObjectiveFunc type is an adapter to allow the use of ordinary function as ControlObjective mutator.

func (ControlObjectiveFunc) Mutate added in v0.3.3

Mutate calls f(ctx, m).

type CustomDomainFunc added in v0.12.1

The CustomDomainFunc type is an adapter to allow the use of ordinary function as CustomDomain mutator.

func (CustomDomainFunc) Mutate added in v0.12.1

Mutate calls f(ctx, m).

type CustomTypeEnumFunc added in v0.43.0

type CustomTypeEnumFunc func(context.Context, *generated.CustomTypeEnumMutation) (generated.Value, error)

The CustomTypeEnumFunc type is an adapter to allow the use of ordinary function as CustomTypeEnum mutator.

func (CustomTypeEnumFunc) Mutate added in v0.43.0

Mutate calls f(ctx, m).

type DNSVerificationFunc added in v0.15.0

type DNSVerificationFunc func(context.Context, *generated.DNSVerificationMutation) (generated.Value, error)

The DNSVerificationFunc type is an adapter to allow the use of ordinary function as DNSVerification mutator.

func (DNSVerificationFunc) Mutate added in v0.15.0

Mutate calls f(ctx, m).

type DirectoryAccountFunc added in v0.46.3

type DirectoryAccountFunc func(context.Context, *generated.DirectoryAccountMutation) (generated.Value, error)

The DirectoryAccountFunc type is an adapter to allow the use of ordinary function as DirectoryAccount mutator.

func (DirectoryAccountFunc) Mutate added in v0.46.3

Mutate calls f(ctx, m).

type DirectoryGroupFunc added in v0.46.3

type DirectoryGroupFunc func(context.Context, *generated.DirectoryGroupMutation) (generated.Value, error)

The DirectoryGroupFunc type is an adapter to allow the use of ordinary function as DirectoryGroup mutator.

func (DirectoryGroupFunc) Mutate added in v0.46.3

Mutate calls f(ctx, m).

type DirectoryMembershipFunc added in v0.46.3

type DirectoryMembershipFunc func(context.Context, *generated.DirectoryMembershipMutation) (generated.Value, error)

The DirectoryMembershipFunc type is an adapter to allow the use of ordinary function as DirectoryMembership mutator.

func (DirectoryMembershipFunc) Mutate added in v0.46.3

Mutate calls f(ctx, m).

type DirectorySyncRunFunc added in v0.46.3

type DirectorySyncRunFunc func(context.Context, *generated.DirectorySyncRunMutation) (generated.Value, error)

The DirectorySyncRunFunc type is an adapter to allow the use of ordinary function as DirectorySyncRun mutator.

func (DirectorySyncRunFunc) Mutate added in v0.46.3

Mutate calls f(ctx, m).

type DiscussionFunc added in v0.49.3

The DiscussionFunc type is an adapter to allow the use of ordinary function as Discussion mutator.

func (DiscussionFunc) Mutate added in v0.49.3

Mutate calls f(ctx, m).

type DocumentDataFunc

The DocumentDataFunc type is an adapter to allow the use of ordinary function as DocumentData mutator.

func (DocumentDataFunc) Mutate

Mutate calls f(ctx, m).

type EmailVerificationTokenFunc

type EmailVerificationTokenFunc func(context.Context, *generated.EmailVerificationTokenMutation) (generated.Value, error)

The EmailVerificationTokenFunc type is an adapter to allow the use of ordinary function as EmailVerificationToken mutator.

func (EmailVerificationTokenFunc) Mutate

Mutate calls f(ctx, m).

type EntityFunc

The EntityFunc type is an adapter to allow the use of ordinary function as Entity mutator.

func (EntityFunc) Mutate

Mutate calls f(ctx, m).

type EntityTypeFunc

The EntityTypeFunc type is an adapter to allow the use of ordinary function as EntityType mutator.

func (EntityTypeFunc) Mutate

Mutate calls f(ctx, m).

type EventFunc

The EventFunc type is an adapter to allow the use of ordinary function as Event mutator.

func (EventFunc) Mutate

Mutate calls f(ctx, m).

type EvidenceFunc added in v0.6.19

The EvidenceFunc type is an adapter to allow the use of ordinary function as Evidence mutator.

func (EvidenceFunc) Mutate added in v0.6.19

Mutate calls f(ctx, m).

type ExportFunc added in v0.22.3

The ExportFunc type is an adapter to allow the use of ordinary function as Export mutator.

func (ExportFunc) Mutate added in v0.22.3

Mutate calls f(ctx, m).

type FileDownloadTokenFunc added in v0.39.2

type FileDownloadTokenFunc func(context.Context, *generated.FileDownloadTokenMutation) (generated.Value, error)

The FileDownloadTokenFunc type is an adapter to allow the use of ordinary function as FileDownloadToken mutator.

func (FileDownloadTokenFunc) Mutate added in v0.39.2

Mutate calls f(ctx, m).

type FileFunc

The FileFunc type is an adapter to allow the use of ordinary function as File mutator.

func (FileFunc) Mutate

Mutate calls f(ctx, m).

type FindingControlFunc added in v0.43.3

type FindingControlFunc func(context.Context, *generated.FindingControlMutation) (generated.Value, error)

The FindingControlFunc type is an adapter to allow the use of ordinary function as FindingControl mutator.

func (FindingControlFunc) Mutate added in v0.43.3

Mutate calls f(ctx, m).

type FindingFunc added in v0.43.3

The FindingFunc type is an adapter to allow the use of ordinary function as Finding mutator.

func (FindingFunc) Mutate added in v0.43.3

Mutate calls f(ctx, m).

type GroupFunc

The GroupFunc type is an adapter to allow the use of ordinary function as Group mutator.

func (GroupFunc) Mutate

Mutate calls f(ctx, m).

type GroupMembershipFunc

type GroupMembershipFunc func(context.Context, *generated.GroupMembershipMutation) (generated.Value, error)

The GroupMembershipFunc type is an adapter to allow the use of ordinary function as GroupMembership mutator.

func (GroupMembershipFunc) Mutate

Mutate calls f(ctx, m).

type GroupSettingFunc

The GroupSettingFunc type is an adapter to allow the use of ordinary function as GroupSetting mutator.

func (GroupSettingFunc) Mutate

Mutate calls f(ctx, m).

type HushFunc

The HushFunc type is an adapter to allow the use of ordinary function as Hush mutator.

func (HushFunc) Mutate

Mutate calls f(ctx, m).

type ImpersonationEventFunc added in v0.38.1

type ImpersonationEventFunc func(context.Context, *generated.ImpersonationEventMutation) (generated.Value, error)

The ImpersonationEventFunc type is an adapter to allow the use of ordinary function as ImpersonationEvent mutator.

func (ImpersonationEventFunc) Mutate added in v0.38.1

Mutate calls f(ctx, m).

type IntegrationFunc

The IntegrationFunc type is an adapter to allow the use of ordinary function as Integration mutator.

func (IntegrationFunc) Mutate

Mutate calls f(ctx, m).

type InternalPolicyFunc added in v0.3.3

type InternalPolicyFunc func(context.Context, *generated.InternalPolicyMutation) (generated.Value, error)

The InternalPolicyFunc type is an adapter to allow the use of ordinary function as InternalPolicy mutator.

func (InternalPolicyFunc) Mutate added in v0.3.3

Mutate calls f(ctx, m).

type InviteFunc

The InviteFunc type is an adapter to allow the use of ordinary function as Invite mutator.

func (InviteFunc) Mutate

Mutate calls f(ctx, m).

type JobResultFunc added in v0.15.0

The JobResultFunc type is an adapter to allow the use of ordinary function as JobResult mutator.

func (JobResultFunc) Mutate added in v0.15.0

Mutate calls f(ctx, m).

type JobRunnerFunc added in v0.14.1

The JobRunnerFunc type is an adapter to allow the use of ordinary function as JobRunner mutator.

func (JobRunnerFunc) Mutate added in v0.14.1

Mutate calls f(ctx, m).

type JobRunnerRegistrationTokenFunc added in v0.14.1

type JobRunnerRegistrationTokenFunc func(context.Context, *generated.JobRunnerRegistrationTokenMutation) (generated.Value, error)

The JobRunnerRegistrationTokenFunc type is an adapter to allow the use of ordinary function as JobRunnerRegistrationToken mutator.

func (JobRunnerRegistrationTokenFunc) Mutate added in v0.14.1

Mutate calls f(ctx, m).

type JobRunnerTokenFunc added in v0.14.1

type JobRunnerTokenFunc func(context.Context, *generated.JobRunnerTokenMutation) (generated.Value, error)

The JobRunnerTokenFunc type is an adapter to allow the use of ordinary function as JobRunnerToken mutator.

func (JobRunnerTokenFunc) Mutate added in v0.14.1

Mutate calls f(ctx, m).

type JobTemplateFunc added in v0.24.0

The JobTemplateFunc type is an adapter to allow the use of ordinary function as JobTemplate mutator.

func (JobTemplateFunc) Mutate added in v0.24.0

Mutate calls f(ctx, m).

type MappableDomainFunc added in v0.12.1

type MappableDomainFunc func(context.Context, *generated.MappableDomainMutation) (generated.Value, error)

The MappableDomainFunc type is an adapter to allow the use of ordinary function as MappableDomain mutator.

func (MappableDomainFunc) Mutate added in v0.12.1

Mutate calls f(ctx, m).

type MappedControlFunc added in v0.7.3

type MappedControlFunc func(context.Context, *generated.MappedControlMutation) (generated.Value, error)

The MappedControlFunc type is an adapter to allow the use of ordinary function as MappedControl mutator.

func (MappedControlFunc) Mutate added in v0.7.3

Mutate calls f(ctx, m).

type NarrativeFunc added in v0.3.3

The NarrativeFunc type is an adapter to allow the use of ordinary function as Narrative mutator.

func (NarrativeFunc) Mutate added in v0.3.3

Mutate calls f(ctx, m).

type NoteFunc

The NoteFunc type is an adapter to allow the use of ordinary function as Note mutator.

func (NoteFunc) Mutate

Mutate calls f(ctx, m).

type NotificationFunc added in v0.45.13

The NotificationFunc type is an adapter to allow the use of ordinary function as Notification mutator.

func (NotificationFunc) Mutate added in v0.45.13

Mutate calls f(ctx, m).

type OnboardingFunc added in v0.6.24

The OnboardingFunc type is an adapter to allow the use of ordinary function as Onboarding mutator.

func (OnboardingFunc) Mutate added in v0.6.24

Mutate calls f(ctx, m).

type OrgMembershipFunc

type OrgMembershipFunc func(context.Context, *generated.OrgMembershipMutation) (generated.Value, error)

The OrgMembershipFunc type is an adapter to allow the use of ordinary function as OrgMembership mutator.

func (OrgMembershipFunc) Mutate

Mutate calls f(ctx, m).

type OrgModuleFunc added in v0.18.4

The OrgModuleFunc type is an adapter to allow the use of ordinary function as OrgModule mutator.

func (OrgModuleFunc) Mutate added in v0.18.4

Mutate calls f(ctx, m).

type OrgPriceFunc added in v0.18.4

The OrgPriceFunc type is an adapter to allow the use of ordinary function as OrgPrice mutator.

func (OrgPriceFunc) Mutate added in v0.18.4

Mutate calls f(ctx, m).

type OrgProductFunc added in v0.18.4

The OrgProductFunc type is an adapter to allow the use of ordinary function as OrgProduct mutator.

func (OrgProductFunc) Mutate added in v0.18.4

Mutate calls f(ctx, m).

type OrgSubscriptionFunc added in v0.5.1

type OrgSubscriptionFunc func(context.Context, *generated.OrgSubscriptionMutation) (generated.Value, error)

The OrgSubscriptionFunc type is an adapter to allow the use of ordinary function as OrgSubscription mutator.

func (OrgSubscriptionFunc) Mutate added in v0.5.1

Mutate calls f(ctx, m).

type OrganizationFunc

The OrganizationFunc type is an adapter to allow the use of ordinary function as Organization mutator.

func (OrganizationFunc) Mutate

Mutate calls f(ctx, m).

type OrganizationSettingFunc

type OrganizationSettingFunc func(context.Context, *generated.OrganizationSettingMutation) (generated.Value, error)

The OrganizationSettingFunc type is an adapter to allow the use of ordinary function as OrganizationSetting mutator.

func (OrganizationSettingFunc) Mutate

Mutate calls f(ctx, m).

type PasswordResetTokenFunc

type PasswordResetTokenFunc func(context.Context, *generated.PasswordResetTokenMutation) (generated.Value, error)

The PasswordResetTokenFunc type is an adapter to allow the use of ordinary function as PasswordResetToken mutator.

func (PasswordResetTokenFunc) Mutate

Mutate calls f(ctx, m).

type PersonalAccessTokenFunc

type PersonalAccessTokenFunc func(context.Context, *generated.PersonalAccessTokenMutation) (generated.Value, error)

The PersonalAccessTokenFunc type is an adapter to allow the use of ordinary function as PersonalAccessToken mutator.

func (PersonalAccessTokenFunc) Mutate

Mutate calls f(ctx, m).

type ProcedureFunc added in v0.3.3

The ProcedureFunc type is an adapter to allow the use of ordinary function as Procedure mutator.

func (ProcedureFunc) Mutate added in v0.3.3

Mutate calls f(ctx, m).

type ProgramFunc added in v0.3.5

The ProgramFunc type is an adapter to allow the use of ordinary function as Program mutator.

func (ProgramFunc) Mutate added in v0.3.5

Mutate calls f(ctx, m).

type ProgramMembershipFunc added in v0.3.5

type ProgramMembershipFunc func(context.Context, *generated.ProgramMembershipMutation) (generated.Value, error)

The ProgramMembershipFunc type is an adapter to allow the use of ordinary function as ProgramMembership mutator.

func (ProgramMembershipFunc) Mutate added in v0.3.5

Mutate calls f(ctx, m).

type RemediationFunc added in v0.43.3

The RemediationFunc type is an adapter to allow the use of ordinary function as Remediation mutator.

func (RemediationFunc) Mutate added in v0.43.3

Mutate calls f(ctx, m).

type ReviewFunc added in v0.43.3

The ReviewFunc type is an adapter to allow the use of ordinary function as Review mutator.

func (ReviewFunc) Mutate added in v0.43.3

Mutate calls f(ctx, m).

type RiskFunc added in v0.3.3

The RiskFunc type is an adapter to allow the use of ordinary function as Risk mutator.

func (RiskFunc) Mutate added in v0.3.3

Mutate calls f(ctx, m).

type ScanFunc added in v0.19.0

The ScanFunc type is an adapter to allow the use of ordinary function as Scan mutator.

func (ScanFunc) Mutate added in v0.19.0

Mutate calls f(ctx, m).

type ScheduledJobFunc added in v0.15.0

The ScheduledJobFunc type is an adapter to allow the use of ordinary function as ScheduledJob mutator.

func (ScheduledJobFunc) Mutate added in v0.15.0

Mutate calls f(ctx, m).

type ScheduledJobRunFunc added in v0.15.0

type ScheduledJobRunFunc func(context.Context, *generated.ScheduledJobRunMutation) (generated.Value, error)

The ScheduledJobRunFunc type is an adapter to allow the use of ordinary function as ScheduledJobRun mutator.

func (ScheduledJobRunFunc) Mutate added in v0.15.0

Mutate calls f(ctx, m).

type StandardFunc added in v0.3.3

The StandardFunc type is an adapter to allow the use of ordinary function as Standard mutator.

func (StandardFunc) Mutate added in v0.3.3

Mutate calls f(ctx, m).

type SubcontrolFunc added in v0.3.3

The SubcontrolFunc type is an adapter to allow the use of ordinary function as Subcontrol mutator.

func (SubcontrolFunc) Mutate added in v0.3.3

Mutate calls f(ctx, m).

type SubprocessorFunc added in v0.22.2

The SubprocessorFunc type is an adapter to allow the use of ordinary function as Subprocessor mutator.

func (SubprocessorFunc) Mutate added in v0.22.2

Mutate calls f(ctx, m).

type SubscriberFunc

The SubscriberFunc type is an adapter to allow the use of ordinary function as Subscriber mutator.

func (SubscriberFunc) Mutate

Mutate calls f(ctx, m).

type TFASettingFunc

The TFASettingFunc type is an adapter to allow the use of ordinary function as TFASetting mutator.

func (TFASettingFunc) Mutate

Mutate calls f(ctx, m).

type TagDefinitionFunc added in v0.43.0

type TagDefinitionFunc func(context.Context, *generated.TagDefinitionMutation) (generated.Value, error)

The TagDefinitionFunc type is an adapter to allow the use of ordinary function as TagDefinition mutator.

func (TagDefinitionFunc) Mutate added in v0.43.0

Mutate calls f(ctx, m).

type TaskFunc added in v0.3.4

The TaskFunc type is an adapter to allow the use of ordinary function as Task mutator.

func (TaskFunc) Mutate added in v0.3.4

Mutate calls f(ctx, m).

type TemplateFunc

The TemplateFunc type is an adapter to allow the use of ordinary function as Template mutator.

func (TemplateFunc) Mutate

Mutate calls f(ctx, m).

type TrustCenterComplianceFunc added in v0.23.1

type TrustCenterComplianceFunc func(context.Context, *generated.TrustCenterComplianceMutation) (generated.Value, error)

The TrustCenterComplianceFunc type is an adapter to allow the use of ordinary function as TrustCenterCompliance mutator.

func (TrustCenterComplianceFunc) Mutate added in v0.23.1

Mutate calls f(ctx, m).

type TrustCenterDocFunc added in v0.33.6

type TrustCenterDocFunc func(context.Context, *generated.TrustCenterDocMutation) (generated.Value, error)

The TrustCenterDocFunc type is an adapter to allow the use of ordinary function as TrustCenterDoc mutator.

func (TrustCenterDocFunc) Mutate added in v0.33.6

Mutate calls f(ctx, m).

type TrustCenterFunc added in v0.19.0

The TrustCenterFunc type is an adapter to allow the use of ordinary function as TrustCenter mutator.

func (TrustCenterFunc) Mutate added in v0.19.0

Mutate calls f(ctx, m).

type TrustCenterSettingFunc added in v0.19.0

type TrustCenterSettingFunc func(context.Context, *generated.TrustCenterSettingMutation) (generated.Value, error)

The TrustCenterSettingFunc type is an adapter to allow the use of ordinary function as TrustCenterSetting mutator.

func (TrustCenterSettingFunc) Mutate added in v0.19.0

Mutate calls f(ctx, m).

type TrustCenterSubprocessorFunc added in v0.22.2

type TrustCenterSubprocessorFunc func(context.Context, *generated.TrustCenterSubprocessorMutation) (generated.Value, error)

The TrustCenterSubprocessorFunc type is an adapter to allow the use of ordinary function as TrustCenterSubprocessor mutator.

func (TrustCenterSubprocessorFunc) Mutate added in v0.22.2

Mutate calls f(ctx, m).

type TrustCenterWatermarkConfigFunc added in v0.34.5

type TrustCenterWatermarkConfigFunc func(context.Context, *generated.TrustCenterWatermarkConfigMutation) (generated.Value, error)

The TrustCenterWatermarkConfigFunc type is an adapter to allow the use of ordinary function as TrustCenterWatermarkConfig mutator.

func (TrustCenterWatermarkConfigFunc) Mutate added in v0.34.5

Mutate calls f(ctx, m).

type TrustcenterEntityFunc added in v0.47.5

type TrustcenterEntityFunc func(context.Context, *generated.TrustcenterEntityMutation) (generated.Value, error)

The TrustcenterEntityFunc type is an adapter to allow the use of ordinary function as TrustcenterEntity mutator.

func (TrustcenterEntityFunc) Mutate added in v0.47.5

Mutate calls f(ctx, m).

type UserFunc

The UserFunc type is an adapter to allow the use of ordinary function as User mutator.

func (UserFunc) Mutate

Mutate calls f(ctx, m).

type UserSettingFunc

The UserSettingFunc type is an adapter to allow the use of ordinary function as UserSetting mutator.

func (UserSettingFunc) Mutate

Mutate calls f(ctx, m).

type VulnerabilityFunc added in v0.43.3

type VulnerabilityFunc func(context.Context, *generated.VulnerabilityMutation) (generated.Value, error)

The VulnerabilityFunc type is an adapter to allow the use of ordinary function as Vulnerability mutator.

func (VulnerabilityFunc) Mutate added in v0.43.3

Mutate calls f(ctx, m).

type WebauthnFunc

The WebauthnFunc type is an adapter to allow the use of ordinary function as Webauthn mutator.

func (WebauthnFunc) Mutate

Mutate calls f(ctx, m).

type WorkflowAssignmentFunc added in v0.46.3

type WorkflowAssignmentFunc func(context.Context, *generated.WorkflowAssignmentMutation) (generated.Value, error)

The WorkflowAssignmentFunc type is an adapter to allow the use of ordinary function as WorkflowAssignment mutator.

func (WorkflowAssignmentFunc) Mutate added in v0.46.3

Mutate calls f(ctx, m).

type WorkflowAssignmentTargetFunc added in v0.46.3

type WorkflowAssignmentTargetFunc func(context.Context, *generated.WorkflowAssignmentTargetMutation) (generated.Value, error)

The WorkflowAssignmentTargetFunc type is an adapter to allow the use of ordinary function as WorkflowAssignmentTarget mutator.

func (WorkflowAssignmentTargetFunc) Mutate added in v0.46.3

Mutate calls f(ctx, m).

type WorkflowDefinitionFunc added in v0.46.3

type WorkflowDefinitionFunc func(context.Context, *generated.WorkflowDefinitionMutation) (generated.Value, error)

The WorkflowDefinitionFunc type is an adapter to allow the use of ordinary function as WorkflowDefinition mutator.

func (WorkflowDefinitionFunc) Mutate added in v0.46.3

Mutate calls f(ctx, m).

type WorkflowEventFunc added in v0.46.3

type WorkflowEventFunc func(context.Context, *generated.WorkflowEventMutation) (generated.Value, error)

The WorkflowEventFunc type is an adapter to allow the use of ordinary function as WorkflowEvent mutator.

func (WorkflowEventFunc) Mutate added in v0.46.3

Mutate calls f(ctx, m).

type WorkflowInstanceFunc added in v0.46.3

type WorkflowInstanceFunc func(context.Context, *generated.WorkflowInstanceMutation) (generated.Value, error)

The WorkflowInstanceFunc type is an adapter to allow the use of ordinary function as WorkflowInstance mutator.

func (WorkflowInstanceFunc) Mutate added in v0.46.3

Mutate calls f(ctx, m).

type WorkflowObjectRefFunc added in v0.46.3

type WorkflowObjectRefFunc func(context.Context, *generated.WorkflowObjectRefMutation) (generated.Value, error)

The WorkflowObjectRefFunc type is an adapter to allow the use of ordinary function as WorkflowObjectRef mutator.

func (WorkflowObjectRefFunc) Mutate added in v0.46.3

Mutate calls f(ctx, m).

type WorkflowProposalFunc added in v0.52.0

type WorkflowProposalFunc func(context.Context, *generated.WorkflowProposalMutation) (generated.Value, error)

The WorkflowProposalFunc type is an adapter to allow the use of ordinary function as WorkflowProposal mutator.

func (WorkflowProposalFunc) Mutate added in v0.52.0

Mutate calls f(ctx, m).

Jump to

Keyboard shortcuts

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