subcontrol

package
v0.8.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the subcontrol type in the database.
	Label = "subcontrol"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldUpdatedAt holds the string denoting the updated_at field in the database.
	FieldUpdatedAt = "updated_at"
	// FieldCreatedBy holds the string denoting the created_by field in the database.
	FieldCreatedBy = "created_by"
	// FieldUpdatedBy holds the string denoting the updated_by field in the database.
	FieldUpdatedBy = "updated_by"
	// FieldDeletedAt holds the string denoting the deleted_at field in the database.
	FieldDeletedAt = "deleted_at"
	// FieldDeletedBy holds the string denoting the deleted_by field in the database.
	FieldDeletedBy = "deleted_by"
	// FieldDisplayID holds the string denoting the display_id field in the database.
	FieldDisplayID = "display_id"
	// FieldTags holds the string denoting the tags field in the database.
	FieldTags = "tags"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldDescription holds the string denoting the description field in the database.
	FieldDescription = "description"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldSource holds the string denoting the source field in the database.
	FieldSource = "source"
	// FieldControlType holds the string denoting the control_type field in the database.
	FieldControlType = "control_type"
	// FieldCategory holds the string denoting the category field in the database.
	FieldCategory = "category"
	// FieldCategoryID holds the string denoting the category_id field in the database.
	FieldCategoryID = "category_id"
	// FieldSubcategory holds the string denoting the subcategory field in the database.
	FieldSubcategory = "subcategory"
	// FieldMappedCategories holds the string denoting the mapped_categories field in the database.
	FieldMappedCategories = "mapped_categories"
	// FieldAssessmentObjectives holds the string denoting the assessment_objectives field in the database.
	FieldAssessmentObjectives = "assessment_objectives"
	// FieldAssessmentMethods holds the string denoting the assessment_methods field in the database.
	FieldAssessmentMethods = "assessment_methods"
	// FieldControlQuestions holds the string denoting the control_questions field in the database.
	FieldControlQuestions = "control_questions"
	// FieldImplementationGuidance holds the string denoting the implementation_guidance field in the database.
	FieldImplementationGuidance = "implementation_guidance"
	// FieldExampleEvidence holds the string denoting the example_evidence field in the database.
	FieldExampleEvidence = "example_evidence"
	// FieldReferences holds the string denoting the references field in the database.
	FieldReferences = "references"
	// FieldRefCode holds the string denoting the ref_code field in the database.
	FieldRefCode = "ref_code"
	// FieldControlID holds the string denoting the control_id field in the database.
	FieldControlID = "control_id"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeControl holds the string denoting the control edge name in mutations.
	EdgeControl = "control"
	// EdgeMappedControls holds the string denoting the mapped_controls edge name in mutations.
	EdgeMappedControls = "mapped_controls"
	// EdgeEvidence holds the string denoting the evidence edge name in mutations.
	EdgeEvidence = "evidence"
	// EdgeControlObjectives holds the string denoting the control_objectives edge name in mutations.
	EdgeControlObjectives = "control_objectives"
	// EdgeTasks holds the string denoting the tasks edge name in mutations.
	EdgeTasks = "tasks"
	// EdgeNarratives holds the string denoting the narratives edge name in mutations.
	EdgeNarratives = "narratives"
	// EdgeRisks holds the string denoting the risks edge name in mutations.
	EdgeRisks = "risks"
	// EdgeActionPlans holds the string denoting the action_plans edge name in mutations.
	EdgeActionPlans = "action_plans"
	// EdgeProcedures holds the string denoting the procedures edge name in mutations.
	EdgeProcedures = "procedures"
	// EdgeInternalPolicies holds the string denoting the internal_policies edge name in mutations.
	EdgeInternalPolicies = "internal_policies"
	// EdgeControlOwner holds the string denoting the control_owner edge name in mutations.
	EdgeControlOwner = "control_owner"
	// EdgeDelegate holds the string denoting the delegate edge name in mutations.
	EdgeDelegate = "delegate"
	// Table holds the table name of the subcontrol in the database.
	Table = "subcontrols"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "subcontrols"
	// OwnerInverseTable is the table name for the Organization entity.
	// It exists in this package in order to avoid circular dependency with the "organization" package.
	OwnerInverseTable = "organizations"
	// OwnerColumn is the table column denoting the owner relation/edge.
	OwnerColumn = "owner_id"
	// ControlTable is the table that holds the control relation/edge.
	ControlTable = "subcontrols"
	// ControlInverseTable is the table name for the Control entity.
	// It exists in this package in order to avoid circular dependency with the "control" package.
	ControlInverseTable = "controls"
	// ControlColumn is the table column denoting the control relation/edge.
	ControlColumn = "control_id"
	// MappedControlsTable is the table that holds the mapped_controls relation/edge. The primary key declared below.
	MappedControlsTable = "mapped_control_subcontrols"
	// MappedControlsInverseTable is the table name for the MappedControl entity.
	// It exists in this package in order to avoid circular dependency with the "mappedcontrol" package.
	MappedControlsInverseTable = "mapped_controls"
	// EvidenceTable is the table that holds the evidence relation/edge. The primary key declared below.
	EvidenceTable = "evidence_subcontrols"
	// EvidenceInverseTable is the table name for the Evidence entity.
	// It exists in this package in order to avoid circular dependency with the "evidence" package.
	EvidenceInverseTable = "evidences"
	// ControlObjectivesTable is the table that holds the control_objectives relation/edge. The primary key declared below.
	ControlObjectivesTable = "subcontrol_control_objectives"
	// ControlObjectivesInverseTable is the table name for the ControlObjective entity.
	// It exists in this package in order to avoid circular dependency with the "controlobjective" package.
	ControlObjectivesInverseTable = "control_objectives"
	// TasksTable is the table that holds the tasks relation/edge. The primary key declared below.
	TasksTable = "subcontrol_tasks"
	// TasksInverseTable is the table name for the Task entity.
	// It exists in this package in order to avoid circular dependency with the "task" package.
	TasksInverseTable = "tasks"
	// NarrativesTable is the table that holds the narratives relation/edge.
	NarrativesTable = "narratives"
	// NarrativesInverseTable is the table name for the Narrative entity.
	// It exists in this package in order to avoid circular dependency with the "narrative" package.
	NarrativesInverseTable = "narratives"
	// NarrativesColumn is the table column denoting the narratives relation/edge.
	NarrativesColumn = "subcontrol_narratives"
	// RisksTable is the table that holds the risks relation/edge.
	RisksTable = "risks"
	// RisksInverseTable is the table name for the Risk entity.
	// It exists in this package in order to avoid circular dependency with the "risk" package.
	RisksInverseTable = "risks"
	// RisksColumn is the table column denoting the risks relation/edge.
	RisksColumn = "subcontrol_risks"
	// ActionPlansTable is the table that holds the action_plans relation/edge.
	ActionPlansTable = "action_plans"
	// ActionPlansInverseTable is the table name for the ActionPlan entity.
	// It exists in this package in order to avoid circular dependency with the "actionplan" package.
	ActionPlansInverseTable = "action_plans"
	// ActionPlansColumn is the table column denoting the action_plans relation/edge.
	ActionPlansColumn = "subcontrol_action_plans"
	// ProceduresTable is the table that holds the procedures relation/edge.
	ProceduresTable = "procedures"
	// ProceduresInverseTable is the table name for the Procedure entity.
	// It exists in this package in order to avoid circular dependency with the "procedure" package.
	ProceduresInverseTable = "procedures"
	// ProceduresColumn is the table column denoting the procedures relation/edge.
	ProceduresColumn = "subcontrol_procedures"
	// InternalPoliciesTable is the table that holds the internal_policies relation/edge.
	InternalPoliciesTable = "internal_policies"
	// InternalPoliciesInverseTable is the table name for the InternalPolicy entity.
	// It exists in this package in order to avoid circular dependency with the "internalpolicy" package.
	InternalPoliciesInverseTable = "internal_policies"
	// InternalPoliciesColumn is the table column denoting the internal_policies relation/edge.
	InternalPoliciesColumn = "subcontrol_internal_policies"
	// ControlOwnerTable is the table that holds the control_owner relation/edge.
	ControlOwnerTable = "subcontrols"
	// ControlOwnerInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	ControlOwnerInverseTable = "groups"
	// ControlOwnerColumn is the table column denoting the control_owner relation/edge.
	ControlOwnerColumn = "subcontrol_control_owner"
	// DelegateTable is the table that holds the delegate relation/edge.
	DelegateTable = "subcontrols"
	// DelegateInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	DelegateInverseTable = "groups"
	// DelegateColumn is the table column denoting the delegate relation/edge.
	DelegateColumn = "subcontrol_delegate"
)
View Source
const DefaultControlType enums.ControlType = "PREVENTATIVE"
View Source
const DefaultSource enums.ControlSource = "USER_DEFINED"

Variables

View Source
var (
	// MappedControlsPrimaryKey and MappedControlsColumn2 are the table columns denoting the
	// primary key for the mapped_controls relation (M2M).
	MappedControlsPrimaryKey = []string{"mapped_control_id", "subcontrol_id"}
	// EvidencePrimaryKey and EvidenceColumn2 are the table columns denoting the
	// primary key for the evidence relation (M2M).
	EvidencePrimaryKey = []string{"evidence_id", "subcontrol_id"}
	// ControlObjectivesPrimaryKey and ControlObjectivesColumn2 are the table columns denoting the
	// primary key for the control_objectives relation (M2M).
	ControlObjectivesPrimaryKey = []string{"subcontrol_id", "control_objective_id"}
	// TasksPrimaryKey and TasksColumn2 are the table columns denoting the
	// primary key for the tasks relation (M2M).
	TasksPrimaryKey = []string{"subcontrol_id", "task_id"}
)
View Source
var (
	Hooks        [8]ent.Hook
	Interceptors [3]ent.Interceptor
	Policy       ent.Policy
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultUpdatedAt holds the default value on creation for the "updated_at" field.
	DefaultUpdatedAt func() time.Time
	// UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field.
	UpdateDefaultUpdatedAt func() time.Time
	// DisplayIDValidator is a validator for the "display_id" field. It is called by the builders before save.
	DisplayIDValidator func(string) error
	// DefaultTags holds the default value on creation for the "tags" field.
	DefaultTags []string
	// OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save.
	OwnerIDValidator func(string) error
	// RefCodeValidator is a validator for the "ref_code" field. It is called by the builders before save.
	RefCodeValidator func(string) error
	// ControlIDValidator is a validator for the "control_id" field. It is called by the builders before save.
	ControlIDValidator func(string) error
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() string
)

Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:

import _ "github.com/theopenlane/core/internal/ent/generated/runtime"

Columns holds all SQL columns for subcontrol fields.

View Source
var ForeignKeys = []string{
	"program_subcontrols",
	"subcontrol_control_owner",
	"subcontrol_delegate",
	"user_subcontrols",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "subcontrols" table and are not defined as standalone fields in the schema.

Functions

func And

func And(predicates ...predicate.Subcontrol) predicate.Subcontrol

And groups predicates with the AND operator between them.

func AssessmentMethodsIsNil added in v0.7.3

func AssessmentMethodsIsNil() predicate.Subcontrol

AssessmentMethodsIsNil applies the IsNil predicate on the "assessment_methods" field.

func AssessmentMethodsNotNil added in v0.7.3

func AssessmentMethodsNotNil() predicate.Subcontrol

AssessmentMethodsNotNil applies the NotNil predicate on the "assessment_methods" field.

func AssessmentObjectivesIsNil added in v0.7.3

func AssessmentObjectivesIsNil() predicate.Subcontrol

AssessmentObjectivesIsNil applies the IsNil predicate on the "assessment_objectives" field.

func AssessmentObjectivesNotNil added in v0.7.3

func AssessmentObjectivesNotNil() predicate.Subcontrol

AssessmentObjectivesNotNil applies the NotNil predicate on the "assessment_objectives" field.

func Category added in v0.7.3

func Category(v string) predicate.Subcontrol

Category applies equality check predicate on the "category" field. It's identical to CategoryEQ.

func CategoryContains added in v0.7.3

func CategoryContains(v string) predicate.Subcontrol

CategoryContains applies the Contains predicate on the "category" field.

func CategoryContainsFold added in v0.7.3

func CategoryContainsFold(v string) predicate.Subcontrol

CategoryContainsFold applies the ContainsFold predicate on the "category" field.

func CategoryEQ added in v0.7.3

func CategoryEQ(v string) predicate.Subcontrol

CategoryEQ applies the EQ predicate on the "category" field.

func CategoryEqualFold added in v0.7.3

func CategoryEqualFold(v string) predicate.Subcontrol

CategoryEqualFold applies the EqualFold predicate on the "category" field.

func CategoryGT added in v0.7.3

func CategoryGT(v string) predicate.Subcontrol

CategoryGT applies the GT predicate on the "category" field.

func CategoryGTE added in v0.7.3

func CategoryGTE(v string) predicate.Subcontrol

CategoryGTE applies the GTE predicate on the "category" field.

func CategoryHasPrefix added in v0.7.3

func CategoryHasPrefix(v string) predicate.Subcontrol

CategoryHasPrefix applies the HasPrefix predicate on the "category" field.

func CategoryHasSuffix added in v0.7.3

func CategoryHasSuffix(v string) predicate.Subcontrol

CategoryHasSuffix applies the HasSuffix predicate on the "category" field.

func CategoryID added in v0.7.3

func CategoryID(v string) predicate.Subcontrol

CategoryID applies equality check predicate on the "category_id" field. It's identical to CategoryIDEQ.

func CategoryIDContains added in v0.7.3

func CategoryIDContains(v string) predicate.Subcontrol

CategoryIDContains applies the Contains predicate on the "category_id" field.

func CategoryIDContainsFold added in v0.7.3

func CategoryIDContainsFold(v string) predicate.Subcontrol

CategoryIDContainsFold applies the ContainsFold predicate on the "category_id" field.

func CategoryIDEQ added in v0.7.3

func CategoryIDEQ(v string) predicate.Subcontrol

CategoryIDEQ applies the EQ predicate on the "category_id" field.

func CategoryIDEqualFold added in v0.7.3

func CategoryIDEqualFold(v string) predicate.Subcontrol

CategoryIDEqualFold applies the EqualFold predicate on the "category_id" field.

func CategoryIDGT added in v0.7.3

func CategoryIDGT(v string) predicate.Subcontrol

CategoryIDGT applies the GT predicate on the "category_id" field.

func CategoryIDGTE added in v0.7.3

func CategoryIDGTE(v string) predicate.Subcontrol

CategoryIDGTE applies the GTE predicate on the "category_id" field.

func CategoryIDHasPrefix added in v0.7.3

func CategoryIDHasPrefix(v string) predicate.Subcontrol

CategoryIDHasPrefix applies the HasPrefix predicate on the "category_id" field.

func CategoryIDHasSuffix added in v0.7.3

func CategoryIDHasSuffix(v string) predicate.Subcontrol

CategoryIDHasSuffix applies the HasSuffix predicate on the "category_id" field.

func CategoryIDIn added in v0.7.3

func CategoryIDIn(vs ...string) predicate.Subcontrol

CategoryIDIn applies the In predicate on the "category_id" field.

func CategoryIDIsNil added in v0.7.3

func CategoryIDIsNil() predicate.Subcontrol

CategoryIDIsNil applies the IsNil predicate on the "category_id" field.

func CategoryIDLT added in v0.7.3

func CategoryIDLT(v string) predicate.Subcontrol

CategoryIDLT applies the LT predicate on the "category_id" field.

func CategoryIDLTE added in v0.7.3

func CategoryIDLTE(v string) predicate.Subcontrol

CategoryIDLTE applies the LTE predicate on the "category_id" field.

func CategoryIDNEQ added in v0.7.3

func CategoryIDNEQ(v string) predicate.Subcontrol

CategoryIDNEQ applies the NEQ predicate on the "category_id" field.

func CategoryIDNotIn added in v0.7.3

func CategoryIDNotIn(vs ...string) predicate.Subcontrol

CategoryIDNotIn applies the NotIn predicate on the "category_id" field.

func CategoryIDNotNil added in v0.7.3

func CategoryIDNotNil() predicate.Subcontrol

CategoryIDNotNil applies the NotNil predicate on the "category_id" field.

func CategoryIn added in v0.7.3

func CategoryIn(vs ...string) predicate.Subcontrol

CategoryIn applies the In predicate on the "category" field.

func CategoryIsNil added in v0.7.3

func CategoryIsNil() predicate.Subcontrol

CategoryIsNil applies the IsNil predicate on the "category" field.

func CategoryLT added in v0.7.3

func CategoryLT(v string) predicate.Subcontrol

CategoryLT applies the LT predicate on the "category" field.

func CategoryLTE added in v0.7.3

func CategoryLTE(v string) predicate.Subcontrol

CategoryLTE applies the LTE predicate on the "category" field.

func CategoryNEQ added in v0.7.3

func CategoryNEQ(v string) predicate.Subcontrol

CategoryNEQ applies the NEQ predicate on the "category" field.

func CategoryNotIn added in v0.7.3

func CategoryNotIn(vs ...string) predicate.Subcontrol

CategoryNotIn applies the NotIn predicate on the "category" field.

func CategoryNotNil added in v0.7.3

func CategoryNotNil() predicate.Subcontrol

CategoryNotNil applies the NotNil predicate on the "category" field.

func ControlID added in v0.7.3

func ControlID(v string) predicate.Subcontrol

ControlID applies equality check predicate on the "control_id" field. It's identical to ControlIDEQ.

func ControlIDContains added in v0.7.3

func ControlIDContains(v string) predicate.Subcontrol

ControlIDContains applies the Contains predicate on the "control_id" field.

func ControlIDContainsFold added in v0.7.3

func ControlIDContainsFold(v string) predicate.Subcontrol

ControlIDContainsFold applies the ContainsFold predicate on the "control_id" field.

func ControlIDEQ added in v0.7.3

func ControlIDEQ(v string) predicate.Subcontrol

ControlIDEQ applies the EQ predicate on the "control_id" field.

func ControlIDEqualFold added in v0.7.3

func ControlIDEqualFold(v string) predicate.Subcontrol

ControlIDEqualFold applies the EqualFold predicate on the "control_id" field.

func ControlIDGT added in v0.7.3

func ControlIDGT(v string) predicate.Subcontrol

ControlIDGT applies the GT predicate on the "control_id" field.

func ControlIDGTE added in v0.7.3

func ControlIDGTE(v string) predicate.Subcontrol

ControlIDGTE applies the GTE predicate on the "control_id" field.

func ControlIDHasPrefix added in v0.7.3

func ControlIDHasPrefix(v string) predicate.Subcontrol

ControlIDHasPrefix applies the HasPrefix predicate on the "control_id" field.

func ControlIDHasSuffix added in v0.7.3

func ControlIDHasSuffix(v string) predicate.Subcontrol

ControlIDHasSuffix applies the HasSuffix predicate on the "control_id" field.

func ControlIDIn added in v0.7.3

func ControlIDIn(vs ...string) predicate.Subcontrol

ControlIDIn applies the In predicate on the "control_id" field.

func ControlIDLT added in v0.7.3

func ControlIDLT(v string) predicate.Subcontrol

ControlIDLT applies the LT predicate on the "control_id" field.

func ControlIDLTE added in v0.7.3

func ControlIDLTE(v string) predicate.Subcontrol

ControlIDLTE applies the LTE predicate on the "control_id" field.

func ControlIDNEQ added in v0.7.3

func ControlIDNEQ(v string) predicate.Subcontrol

ControlIDNEQ applies the NEQ predicate on the "control_id" field.

func ControlIDNotIn added in v0.7.3

func ControlIDNotIn(vs ...string) predicate.Subcontrol

ControlIDNotIn applies the NotIn predicate on the "control_id" field.

func ControlQuestionsIsNil added in v0.7.3

func ControlQuestionsIsNil() predicate.Subcontrol

ControlQuestionsIsNil applies the IsNil predicate on the "control_questions" field.

func ControlQuestionsNotNil added in v0.7.3

func ControlQuestionsNotNil() predicate.Subcontrol

ControlQuestionsNotNil applies the NotNil predicate on the "control_questions" field.

func ControlTypeEQ added in v0.7.3

func ControlTypeEQ(v enums.ControlType) predicate.Subcontrol

ControlTypeEQ applies the EQ predicate on the "control_type" field.

func ControlTypeIn added in v0.7.3

func ControlTypeIn(vs ...enums.ControlType) predicate.Subcontrol

ControlTypeIn applies the In predicate on the "control_type" field.

func ControlTypeIsNil added in v0.7.3

func ControlTypeIsNil() predicate.Subcontrol

ControlTypeIsNil applies the IsNil predicate on the "control_type" field.

func ControlTypeNEQ added in v0.7.3

func ControlTypeNEQ(v enums.ControlType) predicate.Subcontrol

ControlTypeNEQ applies the NEQ predicate on the "control_type" field.

func ControlTypeNotIn added in v0.7.3

func ControlTypeNotIn(vs ...enums.ControlType) predicate.Subcontrol

ControlTypeNotIn applies the NotIn predicate on the "control_type" field.

func ControlTypeNotNil added in v0.7.3

func ControlTypeNotNil() predicate.Subcontrol

ControlTypeNotNil applies the NotNil predicate on the "control_type" field.

func ControlTypeValidator added in v0.7.3

func ControlTypeValidator(ct enums.ControlType) error

ControlTypeValidator is a validator for the "control_type" field enum values. It is called by the builders before save.

func CreatedAt

func CreatedAt(v time.Time) predicate.Subcontrol

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Subcontrol

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Subcontrol

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Subcontrol

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.Subcontrol

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Subcontrol

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Subcontrol

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Subcontrol

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Subcontrol

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.Subcontrol

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Subcontrol

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v string) predicate.Subcontrol

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.Subcontrol

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.Subcontrol

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.Subcontrol

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.Subcontrol

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.Subcontrol

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.Subcontrol

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.Subcontrol

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.Subcontrol

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.Subcontrol

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.Subcontrol

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.Subcontrol

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.Subcontrol

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.Subcontrol

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.Subcontrol

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.Subcontrol

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Subcontrol

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Subcontrol

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Subcontrol

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Subcontrol

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.Subcontrol

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Subcontrol

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Subcontrol

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Subcontrol

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Subcontrol

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.Subcontrol

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Subcontrol

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DeletedBy

func DeletedBy(v string) predicate.Subcontrol

DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.

func DeletedByContains

func DeletedByContains(v string) predicate.Subcontrol

DeletedByContains applies the Contains predicate on the "deleted_by" field.

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.Subcontrol

DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.

func DeletedByEQ

func DeletedByEQ(v string) predicate.Subcontrol

DeletedByEQ applies the EQ predicate on the "deleted_by" field.

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.Subcontrol

DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.

func DeletedByGT

func DeletedByGT(v string) predicate.Subcontrol

DeletedByGT applies the GT predicate on the "deleted_by" field.

func DeletedByGTE

func DeletedByGTE(v string) predicate.Subcontrol

DeletedByGTE applies the GTE predicate on the "deleted_by" field.

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.Subcontrol

DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.Subcontrol

DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.

func DeletedByIn

func DeletedByIn(vs ...string) predicate.Subcontrol

DeletedByIn applies the In predicate on the "deleted_by" field.

func DeletedByIsNil

func DeletedByIsNil() predicate.Subcontrol

DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.

func DeletedByLT

func DeletedByLT(v string) predicate.Subcontrol

DeletedByLT applies the LT predicate on the "deleted_by" field.

func DeletedByLTE

func DeletedByLTE(v string) predicate.Subcontrol

DeletedByLTE applies the LTE predicate on the "deleted_by" field.

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.Subcontrol

DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.

func DeletedByNotIn

func DeletedByNotIn(vs ...string) predicate.Subcontrol

DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.

func DeletedByNotNil

func DeletedByNotNil() predicate.Subcontrol

DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.

func Description

func Description(v string) predicate.Subcontrol

Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.

func DescriptionContains

func DescriptionContains(v string) predicate.Subcontrol

DescriptionContains applies the Contains predicate on the "description" field.

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Subcontrol

DescriptionContainsFold applies the ContainsFold predicate on the "description" field.

func DescriptionEQ

func DescriptionEQ(v string) predicate.Subcontrol

DescriptionEQ applies the EQ predicate on the "description" field.

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Subcontrol

DescriptionEqualFold applies the EqualFold predicate on the "description" field.

func DescriptionGT

func DescriptionGT(v string) predicate.Subcontrol

DescriptionGT applies the GT predicate on the "description" field.

func DescriptionGTE

func DescriptionGTE(v string) predicate.Subcontrol

DescriptionGTE applies the GTE predicate on the "description" field.

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Subcontrol

DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Subcontrol

DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.

func DescriptionIn

func DescriptionIn(vs ...string) predicate.Subcontrol

DescriptionIn applies the In predicate on the "description" field.

func DescriptionIsNil

func DescriptionIsNil() predicate.Subcontrol

DescriptionIsNil applies the IsNil predicate on the "description" field.

func DescriptionLT

func DescriptionLT(v string) predicate.Subcontrol

DescriptionLT applies the LT predicate on the "description" field.

func DescriptionLTE

func DescriptionLTE(v string) predicate.Subcontrol

DescriptionLTE applies the LTE predicate on the "description" field.

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Subcontrol

DescriptionNEQ applies the NEQ predicate on the "description" field.

func DescriptionNotIn

func DescriptionNotIn(vs ...string) predicate.Subcontrol

DescriptionNotIn applies the NotIn predicate on the "description" field.

func DescriptionNotNil

func DescriptionNotNil() predicate.Subcontrol

DescriptionNotNil applies the NotNil predicate on the "description" field.

func DisplayID added in v0.6.11

func DisplayID(v string) predicate.Subcontrol

DisplayID applies equality check predicate on the "display_id" field. It's identical to DisplayIDEQ.

func DisplayIDContains added in v0.6.11

func DisplayIDContains(v string) predicate.Subcontrol

DisplayIDContains applies the Contains predicate on the "display_id" field.

func DisplayIDContainsFold added in v0.6.11

func DisplayIDContainsFold(v string) predicate.Subcontrol

DisplayIDContainsFold applies the ContainsFold predicate on the "display_id" field.

func DisplayIDEQ added in v0.6.11

func DisplayIDEQ(v string) predicate.Subcontrol

DisplayIDEQ applies the EQ predicate on the "display_id" field.

func DisplayIDEqualFold added in v0.6.11

func DisplayIDEqualFold(v string) predicate.Subcontrol

DisplayIDEqualFold applies the EqualFold predicate on the "display_id" field.

func DisplayIDGT added in v0.6.11

func DisplayIDGT(v string) predicate.Subcontrol

DisplayIDGT applies the GT predicate on the "display_id" field.

func DisplayIDGTE added in v0.6.11

func DisplayIDGTE(v string) predicate.Subcontrol

DisplayIDGTE applies the GTE predicate on the "display_id" field.

func DisplayIDHasPrefix added in v0.6.11

func DisplayIDHasPrefix(v string) predicate.Subcontrol

DisplayIDHasPrefix applies the HasPrefix predicate on the "display_id" field.

func DisplayIDHasSuffix added in v0.6.11

func DisplayIDHasSuffix(v string) predicate.Subcontrol

DisplayIDHasSuffix applies the HasSuffix predicate on the "display_id" field.

func DisplayIDIn added in v0.6.11

func DisplayIDIn(vs ...string) predicate.Subcontrol

DisplayIDIn applies the In predicate on the "display_id" field.

func DisplayIDLT added in v0.6.11

func DisplayIDLT(v string) predicate.Subcontrol

DisplayIDLT applies the LT predicate on the "display_id" field.

func DisplayIDLTE added in v0.6.11

func DisplayIDLTE(v string) predicate.Subcontrol

DisplayIDLTE applies the LTE predicate on the "display_id" field.

func DisplayIDNEQ added in v0.6.11

func DisplayIDNEQ(v string) predicate.Subcontrol

DisplayIDNEQ applies the NEQ predicate on the "display_id" field.

func DisplayIDNotIn added in v0.6.11

func DisplayIDNotIn(vs ...string) predicate.Subcontrol

DisplayIDNotIn applies the NotIn predicate on the "display_id" field.

func ExampleEvidenceIsNil added in v0.6.19

func ExampleEvidenceIsNil() predicate.Subcontrol

ExampleEvidenceIsNil applies the IsNil predicate on the "example_evidence" field.

func ExampleEvidenceNotNil added in v0.6.19

func ExampleEvidenceNotNil() predicate.Subcontrol

ExampleEvidenceNotNil applies the NotNil predicate on the "example_evidence" field.

func HasActionPlans added in v0.7.3

func HasActionPlans() predicate.Subcontrol

HasActionPlans applies the HasEdge predicate on the "action_plans" edge.

func HasActionPlansWith added in v0.7.3

func HasActionPlansWith(preds ...predicate.ActionPlan) predicate.Subcontrol

HasActionPlansWith applies the HasEdge predicate on the "action_plans" edge with a given conditions (other predicates).

func HasControl

func HasControl() predicate.Subcontrol

HasControl applies the HasEdge predicate on the "control" edge.

func HasControlObjectives added in v0.7.3

func HasControlObjectives() predicate.Subcontrol

HasControlObjectives applies the HasEdge predicate on the "control_objectives" edge.

func HasControlObjectivesWith added in v0.7.3

func HasControlObjectivesWith(preds ...predicate.ControlObjective) predicate.Subcontrol

HasControlObjectivesWith applies the HasEdge predicate on the "control_objectives" edge with a given conditions (other predicates).

func HasControlOwner added in v0.7.3

func HasControlOwner() predicate.Subcontrol

HasControlOwner applies the HasEdge predicate on the "control_owner" edge.

func HasControlOwnerWith added in v0.7.3

func HasControlOwnerWith(preds ...predicate.Group) predicate.Subcontrol

HasControlOwnerWith applies the HasEdge predicate on the "control_owner" edge with a given conditions (other predicates).

func HasControlWith

func HasControlWith(preds ...predicate.Control) predicate.Subcontrol

HasControlWith applies the HasEdge predicate on the "control" edge with a given conditions (other predicates).

func HasDelegate added in v0.7.3

func HasDelegate() predicate.Subcontrol

HasDelegate applies the HasEdge predicate on the "delegate" edge.

func HasDelegateWith added in v0.7.3

func HasDelegateWith(preds ...predicate.Group) predicate.Subcontrol

HasDelegateWith applies the HasEdge predicate on the "delegate" edge with a given conditions (other predicates).

func HasEvidence added in v0.6.19

func HasEvidence() predicate.Subcontrol

HasEvidence applies the HasEdge predicate on the "evidence" edge.

func HasEvidenceWith added in v0.6.19

func HasEvidenceWith(preds ...predicate.Evidence) predicate.Subcontrol

HasEvidenceWith applies the HasEdge predicate on the "evidence" edge with a given conditions (other predicates).

func HasInternalPolicies added in v0.7.3

func HasInternalPolicies() predicate.Subcontrol

HasInternalPolicies applies the HasEdge predicate on the "internal_policies" edge.

func HasInternalPoliciesWith added in v0.7.3

func HasInternalPoliciesWith(preds ...predicate.InternalPolicy) predicate.Subcontrol

HasInternalPoliciesWith applies the HasEdge predicate on the "internal_policies" edge with a given conditions (other predicates).

func HasMappedControls added in v0.7.3

func HasMappedControls() predicate.Subcontrol

HasMappedControls applies the HasEdge predicate on the "mapped_controls" edge.

func HasMappedControlsWith added in v0.7.3

func HasMappedControlsWith(preds ...predicate.MappedControl) predicate.Subcontrol

HasMappedControlsWith applies the HasEdge predicate on the "mapped_controls" edge with a given conditions (other predicates).

func HasNarratives added in v0.7.3

func HasNarratives() predicate.Subcontrol

HasNarratives applies the HasEdge predicate on the "narratives" edge.

func HasNarrativesWith added in v0.7.3

func HasNarrativesWith(preds ...predicate.Narrative) predicate.Subcontrol

HasNarrativesWith applies the HasEdge predicate on the "narratives" edge with a given conditions (other predicates).

func HasOwner added in v0.5.0

func HasOwner() predicate.Subcontrol

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith added in v0.5.0

func HasOwnerWith(preds ...predicate.Organization) predicate.Subcontrol

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func HasProcedures added in v0.7.3

func HasProcedures() predicate.Subcontrol

HasProcedures applies the HasEdge predicate on the "procedures" edge.

func HasProceduresWith added in v0.7.3

func HasProceduresWith(preds ...predicate.Procedure) predicate.Subcontrol

HasProceduresWith applies the HasEdge predicate on the "procedures" edge with a given conditions (other predicates).

func HasRisks added in v0.7.3

func HasRisks() predicate.Subcontrol

HasRisks applies the HasEdge predicate on the "risks" edge.

func HasRisksWith added in v0.7.3

func HasRisksWith(preds ...predicate.Risk) predicate.Subcontrol

HasRisksWith applies the HasEdge predicate on the "risks" edge with a given conditions (other predicates).

func HasTasks added in v0.3.4

func HasTasks() predicate.Subcontrol

HasTasks applies the HasEdge predicate on the "tasks" edge.

func HasTasksWith added in v0.3.4

func HasTasksWith(preds ...predicate.Task) predicate.Subcontrol

HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Subcontrol

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Subcontrol

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Subcontrol

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Subcontrol

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Subcontrol

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.Subcontrol

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Subcontrol

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Subcontrol

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Subcontrol

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.Subcontrol

IDNotIn applies the NotIn predicate on the ID field.

func ImplementationGuidanceIsNil added in v0.7.3

func ImplementationGuidanceIsNil() predicate.Subcontrol

ImplementationGuidanceIsNil applies the IsNil predicate on the "implementation_guidance" field.

func ImplementationGuidanceNotNil added in v0.7.3

func ImplementationGuidanceNotNil() predicate.Subcontrol

ImplementationGuidanceNotNil applies the NotNil predicate on the "implementation_guidance" field.

func MappedCategoriesIsNil added in v0.7.3

func MappedCategoriesIsNil() predicate.Subcontrol

MappedCategoriesIsNil applies the IsNil predicate on the "mapped_categories" field.

func MappedCategoriesNotNil added in v0.7.3

func MappedCategoriesNotNil() predicate.Subcontrol

MappedCategoriesNotNil applies the NotNil predicate on the "mapped_categories" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Subcontrol) predicate.Subcontrol

Or groups predicates with the OR operator between them.

func OwnerID added in v0.5.0

func OwnerID(v string) predicate.Subcontrol

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDContains added in v0.5.0

func OwnerIDContains(v string) predicate.Subcontrol

OwnerIDContains applies the Contains predicate on the "owner_id" field.

func OwnerIDContainsFold added in v0.5.0

func OwnerIDContainsFold(v string) predicate.Subcontrol

OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.

func OwnerIDEQ added in v0.5.0

func OwnerIDEQ(v string) predicate.Subcontrol

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDEqualFold added in v0.5.0

func OwnerIDEqualFold(v string) predicate.Subcontrol

OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.

func OwnerIDGT added in v0.5.0

func OwnerIDGT(v string) predicate.Subcontrol

OwnerIDGT applies the GT predicate on the "owner_id" field.

func OwnerIDGTE added in v0.5.0

func OwnerIDGTE(v string) predicate.Subcontrol

OwnerIDGTE applies the GTE predicate on the "owner_id" field.

func OwnerIDHasPrefix added in v0.5.0

func OwnerIDHasPrefix(v string) predicate.Subcontrol

OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.

func OwnerIDHasSuffix added in v0.5.0

func OwnerIDHasSuffix(v string) predicate.Subcontrol

OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.

func OwnerIDIn added in v0.5.0

func OwnerIDIn(vs ...string) predicate.Subcontrol

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDIsNil added in v0.7.1

func OwnerIDIsNil() predicate.Subcontrol

OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.

func OwnerIDLT added in v0.5.0

func OwnerIDLT(v string) predicate.Subcontrol

OwnerIDLT applies the LT predicate on the "owner_id" field.

func OwnerIDLTE added in v0.5.0

func OwnerIDLTE(v string) predicate.Subcontrol

OwnerIDLTE applies the LTE predicate on the "owner_id" field.

func OwnerIDNEQ added in v0.5.0

func OwnerIDNEQ(v string) predicate.Subcontrol

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn added in v0.5.0

func OwnerIDNotIn(vs ...string) predicate.Subcontrol

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func OwnerIDNotNil added in v0.7.1

func OwnerIDNotNil() predicate.Subcontrol

OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.

func RefCode added in v0.7.3

func RefCode(v string) predicate.Subcontrol

RefCode applies equality check predicate on the "ref_code" field. It's identical to RefCodeEQ.

func RefCodeContains added in v0.7.3

func RefCodeContains(v string) predicate.Subcontrol

RefCodeContains applies the Contains predicate on the "ref_code" field.

func RefCodeContainsFold added in v0.7.3

func RefCodeContainsFold(v string) predicate.Subcontrol

RefCodeContainsFold applies the ContainsFold predicate on the "ref_code" field.

func RefCodeEQ added in v0.7.3

func RefCodeEQ(v string) predicate.Subcontrol

RefCodeEQ applies the EQ predicate on the "ref_code" field.

func RefCodeEqualFold added in v0.7.3

func RefCodeEqualFold(v string) predicate.Subcontrol

RefCodeEqualFold applies the EqualFold predicate on the "ref_code" field.

func RefCodeGT added in v0.7.3

func RefCodeGT(v string) predicate.Subcontrol

RefCodeGT applies the GT predicate on the "ref_code" field.

func RefCodeGTE added in v0.7.3

func RefCodeGTE(v string) predicate.Subcontrol

RefCodeGTE applies the GTE predicate on the "ref_code" field.

func RefCodeHasPrefix added in v0.7.3

func RefCodeHasPrefix(v string) predicate.Subcontrol

RefCodeHasPrefix applies the HasPrefix predicate on the "ref_code" field.

func RefCodeHasSuffix added in v0.7.3

func RefCodeHasSuffix(v string) predicate.Subcontrol

RefCodeHasSuffix applies the HasSuffix predicate on the "ref_code" field.

func RefCodeIn added in v0.7.3

func RefCodeIn(vs ...string) predicate.Subcontrol

RefCodeIn applies the In predicate on the "ref_code" field.

func RefCodeLT added in v0.7.3

func RefCodeLT(v string) predicate.Subcontrol

RefCodeLT applies the LT predicate on the "ref_code" field.

func RefCodeLTE added in v0.7.3

func RefCodeLTE(v string) predicate.Subcontrol

RefCodeLTE applies the LTE predicate on the "ref_code" field.

func RefCodeNEQ added in v0.7.3

func RefCodeNEQ(v string) predicate.Subcontrol

RefCodeNEQ applies the NEQ predicate on the "ref_code" field.

func RefCodeNotIn added in v0.7.3

func RefCodeNotIn(vs ...string) predicate.Subcontrol

RefCodeNotIn applies the NotIn predicate on the "ref_code" field.

func ReferencesIsNil added in v0.7.3

func ReferencesIsNil() predicate.Subcontrol

ReferencesIsNil applies the IsNil predicate on the "references" field.

func ReferencesNotNil added in v0.7.3

func ReferencesNotNil() predicate.Subcontrol

ReferencesNotNil applies the NotNil predicate on the "references" field.

func SourceEQ

SourceEQ applies the EQ predicate on the "source" field.

func SourceIn

func SourceIn(vs ...enums.ControlSource) predicate.Subcontrol

SourceIn applies the In predicate on the "source" field.

func SourceIsNil

func SourceIsNil() predicate.Subcontrol

SourceIsNil applies the IsNil predicate on the "source" field.

func SourceNEQ

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

func SourceNotIn(vs ...enums.ControlSource) predicate.Subcontrol

SourceNotIn applies the NotIn predicate on the "source" field.

func SourceNotNil

func SourceNotNil() predicate.Subcontrol

SourceNotNil applies the NotNil predicate on the "source" field.

func SourceValidator added in v0.7.3

func SourceValidator(s enums.ControlSource) error

SourceValidator is a validator for the "source" field enum values. It is called by the builders before save.

func Status

func Status(v string) predicate.Subcontrol

Status applies equality check predicate on the "status" field. It's identical to StatusEQ.

func StatusContains

func StatusContains(v string) predicate.Subcontrol

StatusContains applies the Contains predicate on the "status" field.

func StatusContainsFold

func StatusContainsFold(v string) predicate.Subcontrol

StatusContainsFold applies the ContainsFold predicate on the "status" field.

func StatusEQ

func StatusEQ(v string) predicate.Subcontrol

StatusEQ applies the EQ predicate on the "status" field.

func StatusEqualFold

func StatusEqualFold(v string) predicate.Subcontrol

StatusEqualFold applies the EqualFold predicate on the "status" field.

func StatusGT

func StatusGT(v string) predicate.Subcontrol

StatusGT applies the GT predicate on the "status" field.

func StatusGTE

func StatusGTE(v string) predicate.Subcontrol

StatusGTE applies the GTE predicate on the "status" field.

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Subcontrol

StatusHasPrefix applies the HasPrefix predicate on the "status" field.

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Subcontrol

StatusHasSuffix applies the HasSuffix predicate on the "status" field.

func StatusIn

func StatusIn(vs ...string) predicate.Subcontrol

StatusIn applies the In predicate on the "status" field.

func StatusIsNil

func StatusIsNil() predicate.Subcontrol

StatusIsNil applies the IsNil predicate on the "status" field.

func StatusLT

func StatusLT(v string) predicate.Subcontrol

StatusLT applies the LT predicate on the "status" field.

func StatusLTE

func StatusLTE(v string) predicate.Subcontrol

StatusLTE applies the LTE predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v string) predicate.Subcontrol

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...string) predicate.Subcontrol

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusNotNil

func StatusNotNil() predicate.Subcontrol

StatusNotNil applies the NotNil predicate on the "status" field.

func Subcategory added in v0.7.3

func Subcategory(v string) predicate.Subcontrol

Subcategory applies equality check predicate on the "subcategory" field. It's identical to SubcategoryEQ.

func SubcategoryContains added in v0.7.3

func SubcategoryContains(v string) predicate.Subcontrol

SubcategoryContains applies the Contains predicate on the "subcategory" field.

func SubcategoryContainsFold added in v0.7.3

func SubcategoryContainsFold(v string) predicate.Subcontrol

SubcategoryContainsFold applies the ContainsFold predicate on the "subcategory" field.

func SubcategoryEQ added in v0.7.3

func SubcategoryEQ(v string) predicate.Subcontrol

SubcategoryEQ applies the EQ predicate on the "subcategory" field.

func SubcategoryEqualFold added in v0.7.3

func SubcategoryEqualFold(v string) predicate.Subcontrol

SubcategoryEqualFold applies the EqualFold predicate on the "subcategory" field.

func SubcategoryGT added in v0.7.3

func SubcategoryGT(v string) predicate.Subcontrol

SubcategoryGT applies the GT predicate on the "subcategory" field.

func SubcategoryGTE added in v0.7.3

func SubcategoryGTE(v string) predicate.Subcontrol

SubcategoryGTE applies the GTE predicate on the "subcategory" field.

func SubcategoryHasPrefix added in v0.7.3

func SubcategoryHasPrefix(v string) predicate.Subcontrol

SubcategoryHasPrefix applies the HasPrefix predicate on the "subcategory" field.

func SubcategoryHasSuffix added in v0.7.3

func SubcategoryHasSuffix(v string) predicate.Subcontrol

SubcategoryHasSuffix applies the HasSuffix predicate on the "subcategory" field.

func SubcategoryIn added in v0.7.3

func SubcategoryIn(vs ...string) predicate.Subcontrol

SubcategoryIn applies the In predicate on the "subcategory" field.

func SubcategoryIsNil added in v0.7.3

func SubcategoryIsNil() predicate.Subcontrol

SubcategoryIsNil applies the IsNil predicate on the "subcategory" field.

func SubcategoryLT added in v0.7.3

func SubcategoryLT(v string) predicate.Subcontrol

SubcategoryLT applies the LT predicate on the "subcategory" field.

func SubcategoryLTE added in v0.7.3

func SubcategoryLTE(v string) predicate.Subcontrol

SubcategoryLTE applies the LTE predicate on the "subcategory" field.

func SubcategoryNEQ added in v0.7.3

func SubcategoryNEQ(v string) predicate.Subcontrol

SubcategoryNEQ applies the NEQ predicate on the "subcategory" field.

func SubcategoryNotIn added in v0.7.3

func SubcategoryNotIn(vs ...string) predicate.Subcontrol

SubcategoryNotIn applies the NotIn predicate on the "subcategory" field.

func SubcategoryNotNil added in v0.7.3

func SubcategoryNotNil() predicate.Subcontrol

SubcategoryNotNil applies the NotNil predicate on the "subcategory" field.

func TagsIsNil

func TagsIsNil() predicate.Subcontrol

TagsIsNil applies the IsNil predicate on the "tags" field.

func TagsNotNil

func TagsNotNil() predicate.Subcontrol

TagsNotNil applies the NotNil predicate on the "tags" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Subcontrol

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Subcontrol

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Subcontrol

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Subcontrol

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.Subcontrol

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Subcontrol

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Subcontrol

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Subcontrol

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Subcontrol

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.Subcontrol

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Subcontrol

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v string) predicate.Subcontrol

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.Subcontrol

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.Subcontrol

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.Subcontrol

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.Subcontrol

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v string) predicate.Subcontrol

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.Subcontrol

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.Subcontrol

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.Subcontrol

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByIn

func UpdatedByIn(vs ...string) predicate.Subcontrol

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Subcontrol

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v string) predicate.Subcontrol

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.Subcontrol

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.Subcontrol

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...string) predicate.Subcontrol

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Subcontrol

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the Subcontrol queries.

func ByActionPlans added in v0.7.3

func ByActionPlans(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByActionPlans orders the results by action_plans terms.

func ByActionPlansCount added in v0.7.3

func ByActionPlansCount(opts ...sql.OrderTermOption) OrderOption

ByActionPlansCount orders the results by action_plans count.

func ByCategory added in v0.7.3

func ByCategory(opts ...sql.OrderTermOption) OrderOption

ByCategory orders the results by the category field.

func ByCategoryID added in v0.7.3

func ByCategoryID(opts ...sql.OrderTermOption) OrderOption

ByCategoryID orders the results by the category_id field.

func ByControlField added in v0.7.3

func ByControlField(field string, opts ...sql.OrderTermOption) OrderOption

ByControlField orders the results by control field.

func ByControlID added in v0.7.3

func ByControlID(opts ...sql.OrderTermOption) OrderOption

ByControlID orders the results by the control_id field.

func ByControlObjectives added in v0.7.3

func ByControlObjectives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByControlObjectives orders the results by control_objectives terms.

func ByControlObjectivesCount added in v0.7.3

func ByControlObjectivesCount(opts ...sql.OrderTermOption) OrderOption

ByControlObjectivesCount orders the results by control_objectives count.

func ByControlOwnerField added in v0.7.3

func ByControlOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByControlOwnerField orders the results by control_owner field.

func ByControlType added in v0.7.3

func ByControlType(opts ...sql.OrderTermOption) OrderOption

ByControlType orders the results by the control_type field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByCreatedBy

func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption

ByCreatedBy orders the results by the created_by field.

func ByDelegateField added in v0.7.3

func ByDelegateField(field string, opts ...sql.OrderTermOption) OrderOption

ByDelegateField orders the results by delegate field.

func ByDeletedAt

func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption

ByDeletedAt orders the results by the deleted_at field.

func ByDeletedBy

func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption

ByDeletedBy orders the results by the deleted_by field.

func ByDescription

func ByDescription(opts ...sql.OrderTermOption) OrderOption

ByDescription orders the results by the description field.

func ByDisplayID added in v0.6.11

func ByDisplayID(opts ...sql.OrderTermOption) OrderOption

ByDisplayID orders the results by the display_id field.

func ByEvidence added in v0.6.19

func ByEvidence(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByEvidence orders the results by evidence terms.

func ByEvidenceCount added in v0.6.19

func ByEvidenceCount(opts ...sql.OrderTermOption) OrderOption

ByEvidenceCount orders the results by evidence count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByInternalPolicies added in v0.7.3

func ByInternalPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByInternalPolicies orders the results by internal_policies terms.

func ByInternalPoliciesCount added in v0.7.3

func ByInternalPoliciesCount(opts ...sql.OrderTermOption) OrderOption

ByInternalPoliciesCount orders the results by internal_policies count.

func ByMappedControls added in v0.7.3

func ByMappedControls(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByMappedControls orders the results by mapped_controls terms.

func ByMappedControlsCount added in v0.7.3

func ByMappedControlsCount(opts ...sql.OrderTermOption) OrderOption

ByMappedControlsCount orders the results by mapped_controls count.

func ByNarratives added in v0.7.3

func ByNarratives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByNarratives orders the results by narratives terms.

func ByNarrativesCount added in v0.7.3

func ByNarrativesCount(opts ...sql.OrderTermOption) OrderOption

ByNarrativesCount orders the results by narratives count.

func ByOwnerField added in v0.5.0

func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption

ByOwnerField orders the results by owner field.

func ByOwnerID added in v0.5.0

func ByOwnerID(opts ...sql.OrderTermOption) OrderOption

ByOwnerID orders the results by the owner_id field.

func ByProcedures added in v0.7.3

func ByProcedures(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByProcedures orders the results by procedures terms.

func ByProceduresCount added in v0.7.3

func ByProceduresCount(opts ...sql.OrderTermOption) OrderOption

ByProceduresCount orders the results by procedures count.

func ByRefCode added in v0.7.3

func ByRefCode(opts ...sql.OrderTermOption) OrderOption

ByRefCode orders the results by the ref_code field.

func ByRisks added in v0.7.3

func ByRisks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByRisks orders the results by risks terms.

func ByRisksCount added in v0.7.3

func ByRisksCount(opts ...sql.OrderTermOption) OrderOption

ByRisksCount orders the results by risks count.

func BySource

func BySource(opts ...sql.OrderTermOption) OrderOption

BySource orders the results by the source field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func BySubcategory added in v0.7.3

func BySubcategory(opts ...sql.OrderTermOption) OrderOption

BySubcategory orders the results by the subcategory field.

func ByTasks added in v0.3.4

func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByTasks orders the results by tasks terms.

func ByTasksCount added in v0.3.4

func ByTasksCount(opts ...sql.OrderTermOption) OrderOption

ByTasksCount orders the results by tasks count.

func ByUpdatedAt

func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption

ByUpdatedAt orders the results by the updated_at field.

func ByUpdatedBy

func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption

ByUpdatedBy orders the results by the updated_by field.

Jump to

Keyboard shortcuts

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