Documentation
¶
Index ¶
- func FixedError(err error) historygenerated.Hook
- func If(hk historygenerated.Hook, cond Condition) historygenerated.Hook
- func On(hk historygenerated.Hook, op historygenerated.Op) historygenerated.Hook
- func Reject(op historygenerated.Op) historygenerated.Hook
- func Unless(hk historygenerated.Hook, op historygenerated.Op) historygenerated.Hook
- type ActionPlanHistoryFunc
- type AssessmentHistoryFunc
- type AssessmentResponseHistoryFunc
- type AssetHistoryFunc
- type CampaignHistoryFunc
- type CampaignTargetHistoryFunc
- type Chain
- type Condition
- 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 historygenerated.Op) Condition
- func Not(cond Condition) Condition
- func Or(first, second Condition, rest ...Condition) Condition
- type ContactHistoryFunc
- type ControlHistoryFunc
- type ControlImplementationHistoryFunc
- type ControlObjectiveHistoryFunc
- type CustomDomainHistoryFunc
- type DNSVerificationHistoryFunc
- type DirectoryAccountHistoryFunc
- type DirectoryGroupHistoryFunc
- type DirectoryMembershipHistoryFunc
- type DiscussionHistoryFunc
- type DocumentDataHistoryFunc
- type EmailBrandingHistoryFunc
- type EmailTemplateHistoryFunc
- type EntityHistoryFunc
- type EntityTypeHistoryFunc
- type EvidenceHistoryFunc
- type FileHistoryFunc
- type FindingControlHistoryFunc
- type FindingHistoryFunc
- type GroupHistoryFunc
- type GroupMembershipHistoryFunc
- type GroupSettingHistoryFunc
- type HushHistoryFunc
- type IdentityHolderHistoryFunc
- type IntegrationHistoryFunc
- type InternalPolicyHistoryFunc
- type JobTemplateHistoryFunc
- type MappableDomainHistoryFunc
- type MappedControlHistoryFunc
- type NarrativeHistoryFunc
- type NoteHistoryFunc
- type NotificationPreferenceHistoryFunc
- type NotificationTemplateHistoryFunc
- type OrgMembershipHistoryFunc
- type OrgSubscriptionHistoryFunc
- type OrganizationHistoryFunc
- type OrganizationSettingHistoryFunc
- type PlatformHistoryFunc
- type ProcedureHistoryFunc
- type ProgramHistoryFunc
- type ProgramMembershipHistoryFunc
- type RemediationHistoryFunc
- type ReviewHistoryFunc
- type RiskHistoryFunc
- type ScanHistoryFunc
- type ScheduledJobHistoryFunc
- type StandardHistoryFunc
- type SubcontrolHistoryFunc
- type SubprocessorHistoryFunc
- type SystemDetailHistoryFunc
- type TaskHistoryFunc
- type TemplateHistoryFunc
- type TrustCenterComplianceHistoryFunc
- type TrustCenterDocHistoryFunc
- type TrustCenterEntityHistoryFunc
- type TrustCenterFAQHistoryFunc
- type TrustCenterHistoryFunc
- type TrustCenterNDARequestHistoryFunc
- type TrustCenterSettingHistoryFunc
- type TrustCenterSubprocessorHistoryFunc
- type TrustCenterWatermarkConfigHistoryFunc
- type UserHistoryFunc
- type UserSettingHistoryFunc
- type VulnerabilityHistoryFunc
- type WorkflowAssignmentHistoryFunc
- type WorkflowAssignmentTargetHistoryFunc
- type WorkflowDefinitionHistoryFunc
- type WorkflowEventHistoryFunc
- type WorkflowInstanceHistoryFunc
- type WorkflowObjectRefHistoryFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixedError ¶
func FixedError(err error) historygenerated.Hook
FixedError is a hook returning a fixed error.
func If ¶
func If(hk historygenerated.Hook, cond Condition) historygenerated.Hook
If executes the given hook under condition.
hook.If(ComputeAverage, And(HasFields(...), HasAddedFields(...)))
func On ¶
func On(hk historygenerated.Hook, op historygenerated.Op) historygenerated.Hook
On executes the given hook only for the given operation.
hook.On(Log, historygenerated.Delete|historygenerated.Create)
func Reject ¶
func Reject(op historygenerated.Op) historygenerated.Hook
Reject returns a hook that rejects all operations that match op.
func (T) Hooks() []historygenerated.Hook {
return []historygenerated.Hook{
Reject(historygenerated.Delete|historygenerated.Update),
}
}
func Unless ¶
func Unless(hk historygenerated.Hook, op historygenerated.Op) historygenerated.Hook
Unless skips the given hook only for the given operation.
hook.Unless(Log, historygenerated.Update|historygenerated.UpdateOne)
Types ¶
type ActionPlanHistoryFunc ¶
type ActionPlanHistoryFunc func(context.Context, *historygenerated.ActionPlanHistoryMutation) (historygenerated.Value, error)
The ActionPlanHistoryFunc type is an adapter to allow the use of ordinary function as ActionPlanHistory mutator.
func (ActionPlanHistoryFunc) Mutate ¶
func (f ActionPlanHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type AssessmentHistoryFunc ¶
type AssessmentHistoryFunc func(context.Context, *historygenerated.AssessmentHistoryMutation) (historygenerated.Value, error)
The AssessmentHistoryFunc type is an adapter to allow the use of ordinary function as AssessmentHistory mutator.
func (AssessmentHistoryFunc) Mutate ¶
func (f AssessmentHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type AssessmentResponseHistoryFunc ¶
type AssessmentResponseHistoryFunc func(context.Context, *historygenerated.AssessmentResponseHistoryMutation) (historygenerated.Value, error)
The AssessmentResponseHistoryFunc type is an adapter to allow the use of ordinary function as AssessmentResponseHistory mutator.
func (AssessmentResponseHistoryFunc) Mutate ¶
func (f AssessmentResponseHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type AssetHistoryFunc ¶
type AssetHistoryFunc func(context.Context, *historygenerated.AssetHistoryMutation) (historygenerated.Value, error)
The AssetHistoryFunc type is an adapter to allow the use of ordinary function as AssetHistory mutator.
func (AssetHistoryFunc) Mutate ¶
func (f AssetHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type CampaignHistoryFunc ¶ added in v1.5.0
type CampaignHistoryFunc func(context.Context, *historygenerated.CampaignHistoryMutation) (historygenerated.Value, error)
The CampaignHistoryFunc type is an adapter to allow the use of ordinary function as CampaignHistory mutator.
func (CampaignHistoryFunc) Mutate ¶ added in v1.5.0
func (f CampaignHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type CampaignTargetHistoryFunc ¶ added in v1.5.0
type CampaignTargetHistoryFunc func(context.Context, *historygenerated.CampaignTargetHistoryMutation) (historygenerated.Value, error)
The CampaignTargetHistoryFunc type is an adapter to allow the use of ordinary function as CampaignTargetHistory mutator.
func (CampaignTargetHistoryFunc) Mutate ¶ added in v1.5.0
func (f CampaignTargetHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
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 ...historygenerated.Hook) Chain
NewChain creates a new chain of hooks.
func (Chain) Append ¶
func (c Chain) Append(hooks ...historygenerated.Hook) Chain
Append extends a chain, adding the specified hook as the last ones in the mutation flow.
func (Chain) Extend ¶
Extend extends a chain, adding the specified chain as the last ones in the mutation flow.
func (Chain) Hook ¶
func (c Chain) Hook() historygenerated.Hook
Hook chains the list of hooks and returns the final hook.
type Condition ¶
type Condition func(context.Context, historygenerated.Mutation) bool
Condition is a hook condition function.
func HasAddedFields ¶
HasAddedFields is a condition validating `.AddedField` on fields.
func HasClearedFields ¶
HasClearedFields is a condition validating `.FieldCleared` on fields.
func HasOp ¶
func HasOp(op historygenerated.Op) Condition
HasOp is a condition testing mutation operation.
type ContactHistoryFunc ¶
type ContactHistoryFunc func(context.Context, *historygenerated.ContactHistoryMutation) (historygenerated.Value, error)
The ContactHistoryFunc type is an adapter to allow the use of ordinary function as ContactHistory mutator.
func (ContactHistoryFunc) Mutate ¶
func (f ContactHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type ControlHistoryFunc ¶
type ControlHistoryFunc func(context.Context, *historygenerated.ControlHistoryMutation) (historygenerated.Value, error)
The ControlHistoryFunc type is an adapter to allow the use of ordinary function as ControlHistory mutator.
func (ControlHistoryFunc) Mutate ¶
func (f ControlHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type ControlImplementationHistoryFunc ¶
type ControlImplementationHistoryFunc func(context.Context, *historygenerated.ControlImplementationHistoryMutation) (historygenerated.Value, error)
The ControlImplementationHistoryFunc type is an adapter to allow the use of ordinary function as ControlImplementationHistory mutator.
func (ControlImplementationHistoryFunc) Mutate ¶
func (f ControlImplementationHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type ControlObjectiveHistoryFunc ¶
type ControlObjectiveHistoryFunc func(context.Context, *historygenerated.ControlObjectiveHistoryMutation) (historygenerated.Value, error)
The ControlObjectiveHistoryFunc type is an adapter to allow the use of ordinary function as ControlObjectiveHistory mutator.
func (ControlObjectiveHistoryFunc) Mutate ¶
func (f ControlObjectiveHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type CustomDomainHistoryFunc ¶
type CustomDomainHistoryFunc func(context.Context, *historygenerated.CustomDomainHistoryMutation) (historygenerated.Value, error)
The CustomDomainHistoryFunc type is an adapter to allow the use of ordinary function as CustomDomainHistory mutator.
func (CustomDomainHistoryFunc) Mutate ¶
func (f CustomDomainHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type DNSVerificationHistoryFunc ¶
type DNSVerificationHistoryFunc func(context.Context, *historygenerated.DNSVerificationHistoryMutation) (historygenerated.Value, error)
The DNSVerificationHistoryFunc type is an adapter to allow the use of ordinary function as DNSVerificationHistory mutator.
func (DNSVerificationHistoryFunc) Mutate ¶
func (f DNSVerificationHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type DirectoryAccountHistoryFunc ¶
type DirectoryAccountHistoryFunc func(context.Context, *historygenerated.DirectoryAccountHistoryMutation) (historygenerated.Value, error)
The DirectoryAccountHistoryFunc type is an adapter to allow the use of ordinary function as DirectoryAccountHistory mutator.
func (DirectoryAccountHistoryFunc) Mutate ¶
func (f DirectoryAccountHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type DirectoryGroupHistoryFunc ¶
type DirectoryGroupHistoryFunc func(context.Context, *historygenerated.DirectoryGroupHistoryMutation) (historygenerated.Value, error)
The DirectoryGroupHistoryFunc type is an adapter to allow the use of ordinary function as DirectoryGroupHistory mutator.
func (DirectoryGroupHistoryFunc) Mutate ¶
func (f DirectoryGroupHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type DirectoryMembershipHistoryFunc ¶
type DirectoryMembershipHistoryFunc func(context.Context, *historygenerated.DirectoryMembershipHistoryMutation) (historygenerated.Value, error)
The DirectoryMembershipHistoryFunc type is an adapter to allow the use of ordinary function as DirectoryMembershipHistory mutator.
func (DirectoryMembershipHistoryFunc) Mutate ¶
func (f DirectoryMembershipHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type DiscussionHistoryFunc ¶
type DiscussionHistoryFunc func(context.Context, *historygenerated.DiscussionHistoryMutation) (historygenerated.Value, error)
The DiscussionHistoryFunc type is an adapter to allow the use of ordinary function as DiscussionHistory mutator.
func (DiscussionHistoryFunc) Mutate ¶
func (f DiscussionHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type DocumentDataHistoryFunc ¶
type DocumentDataHistoryFunc func(context.Context, *historygenerated.DocumentDataHistoryMutation) (historygenerated.Value, error)
The DocumentDataHistoryFunc type is an adapter to allow the use of ordinary function as DocumentDataHistory mutator.
func (DocumentDataHistoryFunc) Mutate ¶
func (f DocumentDataHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type EmailBrandingHistoryFunc ¶ added in v1.7.0
type EmailBrandingHistoryFunc func(context.Context, *historygenerated.EmailBrandingHistoryMutation) (historygenerated.Value, error)
The EmailBrandingHistoryFunc type is an adapter to allow the use of ordinary function as EmailBrandingHistory mutator.
func (EmailBrandingHistoryFunc) Mutate ¶ added in v1.7.0
func (f EmailBrandingHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type EmailTemplateHistoryFunc ¶ added in v1.7.0
type EmailTemplateHistoryFunc func(context.Context, *historygenerated.EmailTemplateHistoryMutation) (historygenerated.Value, error)
The EmailTemplateHistoryFunc type is an adapter to allow the use of ordinary function as EmailTemplateHistory mutator.
func (EmailTemplateHistoryFunc) Mutate ¶ added in v1.7.0
func (f EmailTemplateHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type EntityHistoryFunc ¶
type EntityHistoryFunc func(context.Context, *historygenerated.EntityHistoryMutation) (historygenerated.Value, error)
The EntityHistoryFunc type is an adapter to allow the use of ordinary function as EntityHistory mutator.
func (EntityHistoryFunc) Mutate ¶
func (f EntityHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type EntityTypeHistoryFunc ¶
type EntityTypeHistoryFunc func(context.Context, *historygenerated.EntityTypeHistoryMutation) (historygenerated.Value, error)
The EntityTypeHistoryFunc type is an adapter to allow the use of ordinary function as EntityTypeHistory mutator.
func (EntityTypeHistoryFunc) Mutate ¶
func (f EntityTypeHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type EvidenceHistoryFunc ¶
type EvidenceHistoryFunc func(context.Context, *historygenerated.EvidenceHistoryMutation) (historygenerated.Value, error)
The EvidenceHistoryFunc type is an adapter to allow the use of ordinary function as EvidenceHistory mutator.
func (EvidenceHistoryFunc) Mutate ¶
func (f EvidenceHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type FileHistoryFunc ¶
type FileHistoryFunc func(context.Context, *historygenerated.FileHistoryMutation) (historygenerated.Value, error)
The FileHistoryFunc type is an adapter to allow the use of ordinary function as FileHistory mutator.
func (FileHistoryFunc) Mutate ¶
func (f FileHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type FindingControlHistoryFunc ¶
type FindingControlHistoryFunc func(context.Context, *historygenerated.FindingControlHistoryMutation) (historygenerated.Value, error)
The FindingControlHistoryFunc type is an adapter to allow the use of ordinary function as FindingControlHistory mutator.
func (FindingControlHistoryFunc) Mutate ¶
func (f FindingControlHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type FindingHistoryFunc ¶
type FindingHistoryFunc func(context.Context, *historygenerated.FindingHistoryMutation) (historygenerated.Value, error)
The FindingHistoryFunc type is an adapter to allow the use of ordinary function as FindingHistory mutator.
func (FindingHistoryFunc) Mutate ¶
func (f FindingHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type GroupHistoryFunc ¶
type GroupHistoryFunc func(context.Context, *historygenerated.GroupHistoryMutation) (historygenerated.Value, error)
The GroupHistoryFunc type is an adapter to allow the use of ordinary function as GroupHistory mutator.
func (GroupHistoryFunc) Mutate ¶
func (f GroupHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type GroupMembershipHistoryFunc ¶
type GroupMembershipHistoryFunc func(context.Context, *historygenerated.GroupMembershipHistoryMutation) (historygenerated.Value, error)
The GroupMembershipHistoryFunc type is an adapter to allow the use of ordinary function as GroupMembershipHistory mutator.
func (GroupMembershipHistoryFunc) Mutate ¶
func (f GroupMembershipHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type GroupSettingHistoryFunc ¶
type GroupSettingHistoryFunc func(context.Context, *historygenerated.GroupSettingHistoryMutation) (historygenerated.Value, error)
The GroupSettingHistoryFunc type is an adapter to allow the use of ordinary function as GroupSettingHistory mutator.
func (GroupSettingHistoryFunc) Mutate ¶
func (f GroupSettingHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type HushHistoryFunc ¶
type HushHistoryFunc func(context.Context, *historygenerated.HushHistoryMutation) (historygenerated.Value, error)
The HushHistoryFunc type is an adapter to allow the use of ordinary function as HushHistory mutator.
func (HushHistoryFunc) Mutate ¶
func (f HushHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type IdentityHolderHistoryFunc ¶ added in v1.5.0
type IdentityHolderHistoryFunc func(context.Context, *historygenerated.IdentityHolderHistoryMutation) (historygenerated.Value, error)
The IdentityHolderHistoryFunc type is an adapter to allow the use of ordinary function as IdentityHolderHistory mutator.
func (IdentityHolderHistoryFunc) Mutate ¶ added in v1.5.0
func (f IdentityHolderHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type IntegrationHistoryFunc ¶
type IntegrationHistoryFunc func(context.Context, *historygenerated.IntegrationHistoryMutation) (historygenerated.Value, error)
The IntegrationHistoryFunc type is an adapter to allow the use of ordinary function as IntegrationHistory mutator.
func (IntegrationHistoryFunc) Mutate ¶
func (f IntegrationHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type InternalPolicyHistoryFunc ¶
type InternalPolicyHistoryFunc func(context.Context, *historygenerated.InternalPolicyHistoryMutation) (historygenerated.Value, error)
The InternalPolicyHistoryFunc type is an adapter to allow the use of ordinary function as InternalPolicyHistory mutator.
func (InternalPolicyHistoryFunc) Mutate ¶
func (f InternalPolicyHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type JobTemplateHistoryFunc ¶
type JobTemplateHistoryFunc func(context.Context, *historygenerated.JobTemplateHistoryMutation) (historygenerated.Value, error)
The JobTemplateHistoryFunc type is an adapter to allow the use of ordinary function as JobTemplateHistory mutator.
func (JobTemplateHistoryFunc) Mutate ¶
func (f JobTemplateHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type MappableDomainHistoryFunc ¶
type MappableDomainHistoryFunc func(context.Context, *historygenerated.MappableDomainHistoryMutation) (historygenerated.Value, error)
The MappableDomainHistoryFunc type is an adapter to allow the use of ordinary function as MappableDomainHistory mutator.
func (MappableDomainHistoryFunc) Mutate ¶
func (f MappableDomainHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type MappedControlHistoryFunc ¶
type MappedControlHistoryFunc func(context.Context, *historygenerated.MappedControlHistoryMutation) (historygenerated.Value, error)
The MappedControlHistoryFunc type is an adapter to allow the use of ordinary function as MappedControlHistory mutator.
func (MappedControlHistoryFunc) Mutate ¶
func (f MappedControlHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type NarrativeHistoryFunc ¶
type NarrativeHistoryFunc func(context.Context, *historygenerated.NarrativeHistoryMutation) (historygenerated.Value, error)
The NarrativeHistoryFunc type is an adapter to allow the use of ordinary function as NarrativeHistory mutator.
func (NarrativeHistoryFunc) Mutate ¶
func (f NarrativeHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type NoteHistoryFunc ¶
type NoteHistoryFunc func(context.Context, *historygenerated.NoteHistoryMutation) (historygenerated.Value, error)
The NoteHistoryFunc type is an adapter to allow the use of ordinary function as NoteHistory mutator.
func (NoteHistoryFunc) Mutate ¶
func (f NoteHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type NotificationPreferenceHistoryFunc ¶ added in v1.7.0
type NotificationPreferenceHistoryFunc func(context.Context, *historygenerated.NotificationPreferenceHistoryMutation) (historygenerated.Value, error)
The NotificationPreferenceHistoryFunc type is an adapter to allow the use of ordinary function as NotificationPreferenceHistory mutator.
func (NotificationPreferenceHistoryFunc) Mutate ¶ added in v1.7.0
func (f NotificationPreferenceHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type NotificationTemplateHistoryFunc ¶ added in v1.7.0
type NotificationTemplateHistoryFunc func(context.Context, *historygenerated.NotificationTemplateHistoryMutation) (historygenerated.Value, error)
The NotificationTemplateHistoryFunc type is an adapter to allow the use of ordinary function as NotificationTemplateHistory mutator.
func (NotificationTemplateHistoryFunc) Mutate ¶ added in v1.7.0
func (f NotificationTemplateHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type OrgMembershipHistoryFunc ¶
type OrgMembershipHistoryFunc func(context.Context, *historygenerated.OrgMembershipHistoryMutation) (historygenerated.Value, error)
The OrgMembershipHistoryFunc type is an adapter to allow the use of ordinary function as OrgMembershipHistory mutator.
func (OrgMembershipHistoryFunc) Mutate ¶
func (f OrgMembershipHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type OrgSubscriptionHistoryFunc ¶
type OrgSubscriptionHistoryFunc func(context.Context, *historygenerated.OrgSubscriptionHistoryMutation) (historygenerated.Value, error)
The OrgSubscriptionHistoryFunc type is an adapter to allow the use of ordinary function as OrgSubscriptionHistory mutator.
func (OrgSubscriptionHistoryFunc) Mutate ¶
func (f OrgSubscriptionHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type OrganizationHistoryFunc ¶
type OrganizationHistoryFunc func(context.Context, *historygenerated.OrganizationHistoryMutation) (historygenerated.Value, error)
The OrganizationHistoryFunc type is an adapter to allow the use of ordinary function as OrganizationHistory mutator.
func (OrganizationHistoryFunc) Mutate ¶
func (f OrganizationHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type OrganizationSettingHistoryFunc ¶
type OrganizationSettingHistoryFunc func(context.Context, *historygenerated.OrganizationSettingHistoryMutation) (historygenerated.Value, error)
The OrganizationSettingHistoryFunc type is an adapter to allow the use of ordinary function as OrganizationSettingHistory mutator.
func (OrganizationSettingHistoryFunc) Mutate ¶
func (f OrganizationSettingHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type PlatformHistoryFunc ¶ added in v1.5.0
type PlatformHistoryFunc func(context.Context, *historygenerated.PlatformHistoryMutation) (historygenerated.Value, error)
The PlatformHistoryFunc type is an adapter to allow the use of ordinary function as PlatformHistory mutator.
func (PlatformHistoryFunc) Mutate ¶ added in v1.5.0
func (f PlatformHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type ProcedureHistoryFunc ¶
type ProcedureHistoryFunc func(context.Context, *historygenerated.ProcedureHistoryMutation) (historygenerated.Value, error)
The ProcedureHistoryFunc type is an adapter to allow the use of ordinary function as ProcedureHistory mutator.
func (ProcedureHistoryFunc) Mutate ¶
func (f ProcedureHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type ProgramHistoryFunc ¶
type ProgramHistoryFunc func(context.Context, *historygenerated.ProgramHistoryMutation) (historygenerated.Value, error)
The ProgramHistoryFunc type is an adapter to allow the use of ordinary function as ProgramHistory mutator.
func (ProgramHistoryFunc) Mutate ¶
func (f ProgramHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type ProgramMembershipHistoryFunc ¶
type ProgramMembershipHistoryFunc func(context.Context, *historygenerated.ProgramMembershipHistoryMutation) (historygenerated.Value, error)
The ProgramMembershipHistoryFunc type is an adapter to allow the use of ordinary function as ProgramMembershipHistory mutator.
func (ProgramMembershipHistoryFunc) Mutate ¶
func (f ProgramMembershipHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type RemediationHistoryFunc ¶
type RemediationHistoryFunc func(context.Context, *historygenerated.RemediationHistoryMutation) (historygenerated.Value, error)
The RemediationHistoryFunc type is an adapter to allow the use of ordinary function as RemediationHistory mutator.
func (RemediationHistoryFunc) Mutate ¶
func (f RemediationHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type ReviewHistoryFunc ¶
type ReviewHistoryFunc func(context.Context, *historygenerated.ReviewHistoryMutation) (historygenerated.Value, error)
The ReviewHistoryFunc type is an adapter to allow the use of ordinary function as ReviewHistory mutator.
func (ReviewHistoryFunc) Mutate ¶
func (f ReviewHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type RiskHistoryFunc ¶
type RiskHistoryFunc func(context.Context, *historygenerated.RiskHistoryMutation) (historygenerated.Value, error)
The RiskHistoryFunc type is an adapter to allow the use of ordinary function as RiskHistory mutator.
func (RiskHistoryFunc) Mutate ¶
func (f RiskHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type ScanHistoryFunc ¶
type ScanHistoryFunc func(context.Context, *historygenerated.ScanHistoryMutation) (historygenerated.Value, error)
The ScanHistoryFunc type is an adapter to allow the use of ordinary function as ScanHistory mutator.
func (ScanHistoryFunc) Mutate ¶
func (f ScanHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type ScheduledJobHistoryFunc ¶
type ScheduledJobHistoryFunc func(context.Context, *historygenerated.ScheduledJobHistoryMutation) (historygenerated.Value, error)
The ScheduledJobHistoryFunc type is an adapter to allow the use of ordinary function as ScheduledJobHistory mutator.
func (ScheduledJobHistoryFunc) Mutate ¶
func (f ScheduledJobHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type StandardHistoryFunc ¶
type StandardHistoryFunc func(context.Context, *historygenerated.StandardHistoryMutation) (historygenerated.Value, error)
The StandardHistoryFunc type is an adapter to allow the use of ordinary function as StandardHistory mutator.
func (StandardHistoryFunc) Mutate ¶
func (f StandardHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type SubcontrolHistoryFunc ¶
type SubcontrolHistoryFunc func(context.Context, *historygenerated.SubcontrolHistoryMutation) (historygenerated.Value, error)
The SubcontrolHistoryFunc type is an adapter to allow the use of ordinary function as SubcontrolHistory mutator.
func (SubcontrolHistoryFunc) Mutate ¶
func (f SubcontrolHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type SubprocessorHistoryFunc ¶
type SubprocessorHistoryFunc func(context.Context, *historygenerated.SubprocessorHistoryMutation) (historygenerated.Value, error)
The SubprocessorHistoryFunc type is an adapter to allow the use of ordinary function as SubprocessorHistory mutator.
func (SubprocessorHistoryFunc) Mutate ¶
func (f SubprocessorHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type SystemDetailHistoryFunc ¶ added in v1.11.6
type SystemDetailHistoryFunc func(context.Context, *historygenerated.SystemDetailHistoryMutation) (historygenerated.Value, error)
The SystemDetailHistoryFunc type is an adapter to allow the use of ordinary function as SystemDetailHistory mutator.
func (SystemDetailHistoryFunc) Mutate ¶ added in v1.11.6
func (f SystemDetailHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type TaskHistoryFunc ¶
type TaskHistoryFunc func(context.Context, *historygenerated.TaskHistoryMutation) (historygenerated.Value, error)
The TaskHistoryFunc type is an adapter to allow the use of ordinary function as TaskHistory mutator.
func (TaskHistoryFunc) Mutate ¶
func (f TaskHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type TemplateHistoryFunc ¶
type TemplateHistoryFunc func(context.Context, *historygenerated.TemplateHistoryMutation) (historygenerated.Value, error)
The TemplateHistoryFunc type is an adapter to allow the use of ordinary function as TemplateHistory mutator.
func (TemplateHistoryFunc) Mutate ¶
func (f TemplateHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type TrustCenterComplianceHistoryFunc ¶
type TrustCenterComplianceHistoryFunc func(context.Context, *historygenerated.TrustCenterComplianceHistoryMutation) (historygenerated.Value, error)
The TrustCenterComplianceHistoryFunc type is an adapter to allow the use of ordinary function as TrustCenterComplianceHistory mutator.
func (TrustCenterComplianceHistoryFunc) Mutate ¶
func (f TrustCenterComplianceHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type TrustCenterDocHistoryFunc ¶
type TrustCenterDocHistoryFunc func(context.Context, *historygenerated.TrustCenterDocHistoryMutation) (historygenerated.Value, error)
The TrustCenterDocHistoryFunc type is an adapter to allow the use of ordinary function as TrustCenterDocHistory mutator.
func (TrustCenterDocHistoryFunc) Mutate ¶
func (f TrustCenterDocHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type TrustCenterEntityHistoryFunc ¶ added in v1.3.0
type TrustCenterEntityHistoryFunc func(context.Context, *historygenerated.TrustCenterEntityHistoryMutation) (historygenerated.Value, error)
The TrustCenterEntityHistoryFunc type is an adapter to allow the use of ordinary function as TrustCenterEntityHistory mutator.
func (TrustCenterEntityHistoryFunc) Mutate ¶ added in v1.3.0
func (f TrustCenterEntityHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type TrustCenterFAQHistoryFunc ¶ added in v1.9.11
type TrustCenterFAQHistoryFunc func(context.Context, *historygenerated.TrustCenterFAQHistoryMutation) (historygenerated.Value, error)
The TrustCenterFAQHistoryFunc type is an adapter to allow the use of ordinary function as TrustCenterFAQHistory mutator.
func (TrustCenterFAQHistoryFunc) Mutate ¶ added in v1.9.11
func (f TrustCenterFAQHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type TrustCenterHistoryFunc ¶
type TrustCenterHistoryFunc func(context.Context, *historygenerated.TrustCenterHistoryMutation) (historygenerated.Value, error)
The TrustCenterHistoryFunc type is an adapter to allow the use of ordinary function as TrustCenterHistory mutator.
func (TrustCenterHistoryFunc) Mutate ¶
func (f TrustCenterHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type TrustCenterNDARequestHistoryFunc ¶ added in v1.3.5
type TrustCenterNDARequestHistoryFunc func(context.Context, *historygenerated.TrustCenterNDARequestHistoryMutation) (historygenerated.Value, error)
The TrustCenterNDARequestHistoryFunc type is an adapter to allow the use of ordinary function as TrustCenterNDARequestHistory mutator.
func (TrustCenterNDARequestHistoryFunc) Mutate ¶ added in v1.3.5
func (f TrustCenterNDARequestHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type TrustCenterSettingHistoryFunc ¶
type TrustCenterSettingHistoryFunc func(context.Context, *historygenerated.TrustCenterSettingHistoryMutation) (historygenerated.Value, error)
The TrustCenterSettingHistoryFunc type is an adapter to allow the use of ordinary function as TrustCenterSettingHistory mutator.
func (TrustCenterSettingHistoryFunc) Mutate ¶
func (f TrustCenterSettingHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type TrustCenterSubprocessorHistoryFunc ¶
type TrustCenterSubprocessorHistoryFunc func(context.Context, *historygenerated.TrustCenterSubprocessorHistoryMutation) (historygenerated.Value, error)
The TrustCenterSubprocessorHistoryFunc type is an adapter to allow the use of ordinary function as TrustCenterSubprocessorHistory mutator.
func (TrustCenterSubprocessorHistoryFunc) Mutate ¶
func (f TrustCenterSubprocessorHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type TrustCenterWatermarkConfigHistoryFunc ¶
type TrustCenterWatermarkConfigHistoryFunc func(context.Context, *historygenerated.TrustCenterWatermarkConfigHistoryMutation) (historygenerated.Value, error)
The TrustCenterWatermarkConfigHistoryFunc type is an adapter to allow the use of ordinary function as TrustCenterWatermarkConfigHistory mutator.
func (TrustCenterWatermarkConfigHistoryFunc) Mutate ¶
func (f TrustCenterWatermarkConfigHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type UserHistoryFunc ¶
type UserHistoryFunc func(context.Context, *historygenerated.UserHistoryMutation) (historygenerated.Value, error)
The UserHistoryFunc type is an adapter to allow the use of ordinary function as UserHistory mutator.
func (UserHistoryFunc) Mutate ¶
func (f UserHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type UserSettingHistoryFunc ¶
type UserSettingHistoryFunc func(context.Context, *historygenerated.UserSettingHistoryMutation) (historygenerated.Value, error)
The UserSettingHistoryFunc type is an adapter to allow the use of ordinary function as UserSettingHistory mutator.
func (UserSettingHistoryFunc) Mutate ¶
func (f UserSettingHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type VulnerabilityHistoryFunc ¶
type VulnerabilityHistoryFunc func(context.Context, *historygenerated.VulnerabilityHistoryMutation) (historygenerated.Value, error)
The VulnerabilityHistoryFunc type is an adapter to allow the use of ordinary function as VulnerabilityHistory mutator.
func (VulnerabilityHistoryFunc) Mutate ¶
func (f VulnerabilityHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type WorkflowAssignmentHistoryFunc ¶
type WorkflowAssignmentHistoryFunc func(context.Context, *historygenerated.WorkflowAssignmentHistoryMutation) (historygenerated.Value, error)
The WorkflowAssignmentHistoryFunc type is an adapter to allow the use of ordinary function as WorkflowAssignmentHistory mutator.
func (WorkflowAssignmentHistoryFunc) Mutate ¶
func (f WorkflowAssignmentHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type WorkflowAssignmentTargetHistoryFunc ¶
type WorkflowAssignmentTargetHistoryFunc func(context.Context, *historygenerated.WorkflowAssignmentTargetHistoryMutation) (historygenerated.Value, error)
The WorkflowAssignmentTargetHistoryFunc type is an adapter to allow the use of ordinary function as WorkflowAssignmentTargetHistory mutator.
func (WorkflowAssignmentTargetHistoryFunc) Mutate ¶
func (f WorkflowAssignmentTargetHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type WorkflowDefinitionHistoryFunc ¶
type WorkflowDefinitionHistoryFunc func(context.Context, *historygenerated.WorkflowDefinitionHistoryMutation) (historygenerated.Value, error)
The WorkflowDefinitionHistoryFunc type is an adapter to allow the use of ordinary function as WorkflowDefinitionHistory mutator.
func (WorkflowDefinitionHistoryFunc) Mutate ¶
func (f WorkflowDefinitionHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type WorkflowEventHistoryFunc ¶
type WorkflowEventHistoryFunc func(context.Context, *historygenerated.WorkflowEventHistoryMutation) (historygenerated.Value, error)
The WorkflowEventHistoryFunc type is an adapter to allow the use of ordinary function as WorkflowEventHistory mutator.
func (WorkflowEventHistoryFunc) Mutate ¶
func (f WorkflowEventHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type WorkflowInstanceHistoryFunc ¶
type WorkflowInstanceHistoryFunc func(context.Context, *historygenerated.WorkflowInstanceHistoryMutation) (historygenerated.Value, error)
The WorkflowInstanceHistoryFunc type is an adapter to allow the use of ordinary function as WorkflowInstanceHistory mutator.
func (WorkflowInstanceHistoryFunc) Mutate ¶
func (f WorkflowInstanceHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).
type WorkflowObjectRefHistoryFunc ¶
type WorkflowObjectRefHistoryFunc func(context.Context, *historygenerated.WorkflowObjectRefHistoryMutation) (historygenerated.Value, error)
The WorkflowObjectRefHistoryFunc type is an adapter to allow the use of ordinary function as WorkflowObjectRefHistory mutator.
func (WorkflowObjectRefHistoryFunc) Mutate ¶
func (f WorkflowObjectRefHistoryFunc) Mutate(ctx context.Context, m historygenerated.Mutation) (historygenerated.Value, error)
Mutate calls f(ctx, m).