hook

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 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

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

func (ActionPlanFunc) Mutate

Mutate calls f(ctx, m).

type AssessmentFunc

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

func (AssessmentFunc) Mutate

Mutate calls f(ctx, m).

type AssessmentResponseFunc

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

Mutate calls f(ctx, m).

type AssetFunc

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

func (AssetFunc) Mutate

Mutate calls f(ctx, m).

type CampaignFunc

The CampaignFunc type is an adapter to allow the use of ordinary function as Campaign mutator.

func (CampaignFunc) Mutate

Mutate calls f(ctx, m).

type CampaignTargetFunc

type CampaignTargetFunc func(context.Context, *generated.CampaignTargetMutation) (generated.Value, error)

The CampaignTargetFunc type is an adapter to allow the use of ordinary function as CampaignTarget mutator.

func (CampaignTargetFunc) Mutate

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 CheckResultFunc

The CheckResultFunc type is an adapter to allow the use of ordinary function as CheckResult mutator.

func (CheckResultFunc) Mutate

Mutate calls f(ctx, m).

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

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

func (ControlFunc) Mutate

Mutate calls f(ctx, m).

type ControlImplementationFunc

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

Mutate calls f(ctx, m).

type ControlObjectiveFunc

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

Mutate calls f(ctx, m).

type CustomDomainFunc

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

func (CustomDomainFunc) Mutate

Mutate calls f(ctx, m).

type CustomTypeEnumFunc

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

Mutate calls f(ctx, m).

type DNSVerificationFunc

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

Mutate calls f(ctx, m).

type DirectoryAccountFunc

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

Mutate calls f(ctx, m).

type DirectoryGroupFunc

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

Mutate calls f(ctx, m).

type DirectoryMembershipFunc

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

Mutate calls f(ctx, m).

type DirectorySyncRunFunc

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

Mutate calls f(ctx, m).

type DiscussionFunc

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

func (DiscussionFunc) Mutate

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 EmailTemplateFunc

type EmailTemplateFunc func(context.Context, *generated.EmailTemplateMutation) (generated.Value, error)

The EmailTemplateFunc type is an adapter to allow the use of ordinary function as EmailTemplate mutator.

func (EmailTemplateFunc) 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

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

func (EvidenceFunc) Mutate

Mutate calls f(ctx, m).

type ExportFunc

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

func (ExportFunc) Mutate

Mutate calls f(ctx, m).

type FileDownloadTokenFunc

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

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

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

Mutate calls f(ctx, m).

type FindingFunc

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

func (FindingFunc) Mutate

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 IdentityHolderFunc

type IdentityHolderFunc func(context.Context, *generated.IdentityHolderMutation) (generated.Value, error)

The IdentityHolderFunc type is an adapter to allow the use of ordinary function as IdentityHolder mutator.

func (IdentityHolderFunc) Mutate

Mutate calls f(ctx, m).

type ImpersonationEventFunc

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

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 IntegrationRunFunc

type IntegrationRunFunc func(context.Context, *generated.IntegrationRunMutation) (generated.Value, error)

The IntegrationRunFunc type is an adapter to allow the use of ordinary function as IntegrationRun mutator.

func (IntegrationRunFunc) Mutate

Mutate calls f(ctx, m).

type IntegrationWebhookFunc

type IntegrationWebhookFunc func(context.Context, *generated.IntegrationWebhookMutation) (generated.Value, error)

The IntegrationWebhookFunc type is an adapter to allow the use of ordinary function as IntegrationWebhook mutator.

func (IntegrationWebhookFunc) Mutate

Mutate calls f(ctx, m).

type InternalPolicyFunc

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

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 MappableDomainFunc

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

Mutate calls f(ctx, m).

type MappedControlFunc

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

Mutate calls f(ctx, m).

type NarrativeFunc

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

func (NarrativeFunc) Mutate

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

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

func (NotificationFunc) Mutate

Mutate calls f(ctx, m).

type NotificationPreferenceFunc

type NotificationPreferenceFunc func(context.Context, *generated.NotificationPreferenceMutation) (generated.Value, error)

The NotificationPreferenceFunc type is an adapter to allow the use of ordinary function as NotificationPreference mutator.

func (NotificationPreferenceFunc) Mutate

Mutate calls f(ctx, m).

type NotificationTemplateFunc

type NotificationTemplateFunc func(context.Context, *generated.NotificationTemplateMutation) (generated.Value, error)

The NotificationTemplateFunc type is an adapter to allow the use of ordinary function as NotificationTemplate mutator.

func (NotificationTemplateFunc) Mutate

Mutate calls f(ctx, m).

type OnboardingFunc

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

func (OnboardingFunc) Mutate

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

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

func (OrgModuleFunc) Mutate

Mutate calls f(ctx, m).

type OrgPriceFunc

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

func (OrgPriceFunc) Mutate

Mutate calls f(ctx, m).

type OrgProductFunc

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

func (OrgProductFunc) Mutate

Mutate calls f(ctx, m).

type OrgSubscriptionFunc

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

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 PlatformFunc

The PlatformFunc type is an adapter to allow the use of ordinary function as Platform mutator.

func (PlatformFunc) Mutate

Mutate calls f(ctx, m).

type ProcedureFunc

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

func (ProcedureFunc) Mutate

Mutate calls f(ctx, m).

type ProgramFunc

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

func (ProgramFunc) Mutate

Mutate calls f(ctx, m).

type ProgramMembershipFunc

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

Mutate calls f(ctx, m).

type RemediationFunc

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

func (RemediationFunc) Mutate

Mutate calls f(ctx, m).

type ReviewFunc

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

func (ReviewFunc) Mutate

Mutate calls f(ctx, m).

type RiskFunc

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

func (RiskFunc) Mutate

Mutate calls f(ctx, m).

type SLADefinitionFunc

type SLADefinitionFunc func(context.Context, *generated.SLADefinitionMutation) (generated.Value, error)

The SLADefinitionFunc type is an adapter to allow the use of ordinary function as SLADefinition mutator.

func (SLADefinitionFunc) Mutate

Mutate calls f(ctx, m).

type ScanFunc

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

func (ScanFunc) Mutate

Mutate calls f(ctx, m).

type StandardFunc

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

func (StandardFunc) Mutate

Mutate calls f(ctx, m).

type SubcontrolFunc

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

func (SubcontrolFunc) Mutate

Mutate calls f(ctx, m).

type SubprocessorFunc

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

func (SubprocessorFunc) Mutate

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 SystemDetailFunc

The SystemDetailFunc type is an adapter to allow the use of ordinary function as SystemDetail mutator.

func (SystemDetailFunc) 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

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

Mutate calls f(ctx, m).

type TaskFunc

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

func (TaskFunc) Mutate

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

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

Mutate calls f(ctx, m).

type TrustCenterDocFunc

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

Mutate calls f(ctx, m).

type TrustCenterEntityFunc

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

Mutate calls f(ctx, m).

type TrustCenterFAQFunc

type TrustCenterFAQFunc func(context.Context, *generated.TrustCenterFAQMutation) (generated.Value, error)

The TrustCenterFAQFunc type is an adapter to allow the use of ordinary function as TrustCenterFAQ mutator.

func (TrustCenterFAQFunc) Mutate

Mutate calls f(ctx, m).

type TrustCenterFunc

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

func (TrustCenterFunc) Mutate

Mutate calls f(ctx, m).

type TrustCenterNDARequestFunc

type TrustCenterNDARequestFunc func(context.Context, *generated.TrustCenterNDARequestMutation) (generated.Value, error)

The TrustCenterNDARequestFunc type is an adapter to allow the use of ordinary function as TrustCenterNDARequest mutator.

func (TrustCenterNDARequestFunc) Mutate

Mutate calls f(ctx, m).

type TrustCenterSettingFunc

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

Mutate calls f(ctx, m).

type TrustCenterSubprocessorFunc

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

Mutate calls f(ctx, m).

type TrustCenterWatermarkConfigFunc

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

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 VendorRiskScoreFunc

type VendorRiskScoreFunc func(context.Context, *generated.VendorRiskScoreMutation) (generated.Value, error)

The VendorRiskScoreFunc type is an adapter to allow the use of ordinary function as VendorRiskScore mutator.

func (VendorRiskScoreFunc) Mutate

Mutate calls f(ctx, m).

type VendorScoringConfigFunc

type VendorScoringConfigFunc func(context.Context, *generated.VendorScoringConfigMutation) (generated.Value, error)

The VendorScoringConfigFunc type is an adapter to allow the use of ordinary function as VendorScoringConfig mutator.

func (VendorScoringConfigFunc) Mutate

Mutate calls f(ctx, m).

type VulnerabilityFunc

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

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

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

Mutate calls f(ctx, m).

type WorkflowAssignmentTargetFunc

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

Mutate calls f(ctx, m).

type WorkflowDefinitionFunc

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

Mutate calls f(ctx, m).

type WorkflowEventFunc

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

Mutate calls f(ctx, m).

type WorkflowInstanceFunc

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

Mutate calls f(ctx, m).

type WorkflowObjectRefFunc

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

Mutate calls f(ctx, m).

type WorkflowProposalFunc

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

Mutate calls f(ctx, m).

Jump to

Keyboard shortcuts

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