risk

package
v0.30.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the risk type in the database.
	Label = "risk"
	// 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"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldRiskType holds the string denoting the risk_type field in the database.
	FieldRiskType = "risk_type"
	// FieldCategory holds the string denoting the category field in the database.
	FieldCategory = "category"
	// FieldImpact holds the string denoting the impact field in the database.
	FieldImpact = "impact"
	// FieldLikelihood holds the string denoting the likelihood field in the database.
	FieldLikelihood = "likelihood"
	// FieldScore holds the string denoting the score field in the database.
	FieldScore = "score"
	// FieldMitigation holds the string denoting the mitigation field in the database.
	FieldMitigation = "mitigation"
	// FieldDetails holds the string denoting the details field in the database.
	FieldDetails = "details"
	// FieldBusinessCosts holds the string denoting the business_costs field in the database.
	FieldBusinessCosts = "business_costs"
	// FieldStakeholderID holds the string denoting the stakeholder_id field in the database.
	FieldStakeholderID = "stakeholder_id"
	// FieldDelegateID holds the string denoting the delegate_id field in the database.
	FieldDelegateID = "delegate_id"
	// EdgeOwner holds the string denoting the owner edge name in mutations.
	EdgeOwner = "owner"
	// EdgeBlockedGroups holds the string denoting the blocked_groups edge name in mutations.
	EdgeBlockedGroups = "blocked_groups"
	// EdgeEditors holds the string denoting the editors edge name in mutations.
	EdgeEditors = "editors"
	// EdgeViewers holds the string denoting the viewers edge name in mutations.
	EdgeViewers = "viewers"
	// EdgeControls holds the string denoting the controls edge name in mutations.
	EdgeControls = "controls"
	// EdgeSubcontrols holds the string denoting the subcontrols edge name in mutations.
	EdgeSubcontrols = "subcontrols"
	// 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"
	// EdgePrograms holds the string denoting the programs edge name in mutations.
	EdgePrograms = "programs"
	// EdgeActionPlans holds the string denoting the action_plans edge name in mutations.
	EdgeActionPlans = "action_plans"
	// EdgeTasks holds the string denoting the tasks edge name in mutations.
	EdgeTasks = "tasks"
	// EdgeAssets holds the string denoting the assets edge name in mutations.
	EdgeAssets = "assets"
	// EdgeEntities holds the string denoting the entities edge name in mutations.
	EdgeEntities = "entities"
	// EdgeScans holds the string denoting the scans edge name in mutations.
	EdgeScans = "scans"
	// EdgeStakeholder holds the string denoting the stakeholder edge name in mutations.
	EdgeStakeholder = "stakeholder"
	// EdgeDelegate holds the string denoting the delegate edge name in mutations.
	EdgeDelegate = "delegate"
	// Table holds the table name of the risk in the database.
	Table = "risks"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "risks"
	// 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"
	// BlockedGroupsTable is the table that holds the blocked_groups relation/edge. The primary key declared below.
	BlockedGroupsTable = "risk_blocked_groups"
	// BlockedGroupsInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	BlockedGroupsInverseTable = "groups"
	// EditorsTable is the table that holds the editors relation/edge. The primary key declared below.
	EditorsTable = "risk_editors"
	// EditorsInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	EditorsInverseTable = "groups"
	// ViewersTable is the table that holds the viewers relation/edge. The primary key declared below.
	ViewersTable = "risk_viewers"
	// ViewersInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	ViewersInverseTable = "groups"
	// ControlsTable is the table that holds the controls relation/edge. The primary key declared below.
	ControlsTable = "control_risks"
	// ControlsInverseTable is the table name for the Control entity.
	// It exists in this package in order to avoid circular dependency with the "control" package.
	ControlsInverseTable = "controls"
	// SubcontrolsTable is the table that holds the subcontrols relation/edge. The primary key declared below.
	SubcontrolsTable = "subcontrol_risks"
	// SubcontrolsInverseTable is the table name for the Subcontrol entity.
	// It exists in this package in order to avoid circular dependency with the "subcontrol" package.
	SubcontrolsInverseTable = "subcontrols"
	// ProceduresTable is the table that holds the procedures relation/edge. The primary key declared below.
	ProceduresTable = "procedure_risks"
	// 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"
	// InternalPoliciesTable is the table that holds the internal_policies relation/edge. The primary key declared below.
	InternalPoliciesTable = "internal_policy_risks"
	// 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"
	// ProgramsTable is the table that holds the programs relation/edge. The primary key declared below.
	ProgramsTable = "program_risks"
	// ProgramsInverseTable is the table name for the Program entity.
	// It exists in this package in order to avoid circular dependency with the "program" package.
	ProgramsInverseTable = "programs"
	// ActionPlansTable is the table that holds the action_plans relation/edge. The primary key declared below.
	ActionPlansTable = "risk_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"
	// TasksTable is the table that holds the tasks relation/edge. The primary key declared below.
	TasksTable = "risk_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"
	// AssetsTable is the table that holds the assets relation/edge.
	AssetsTable = "assets"
	// AssetsInverseTable is the table name for the Asset entity.
	// It exists in this package in order to avoid circular dependency with the "asset" package.
	AssetsInverseTable = "assets"
	// AssetsColumn is the table column denoting the assets relation/edge.
	AssetsColumn = "risk_assets"
	// EntitiesTable is the table that holds the entities relation/edge.
	EntitiesTable = "entities"
	// EntitiesInverseTable is the table name for the Entity entity.
	// It exists in this package in order to avoid circular dependency with the "entity" package.
	EntitiesInverseTable = "entities"
	// EntitiesColumn is the table column denoting the entities relation/edge.
	EntitiesColumn = "risk_entities"
	// ScansTable is the table that holds the scans relation/edge.
	ScansTable = "scans"
	// ScansInverseTable is the table name for the Scan entity.
	// It exists in this package in order to avoid circular dependency with the "scan" package.
	ScansInverseTable = "scans"
	// ScansColumn is the table column denoting the scans relation/edge.
	ScansColumn = "risk_scans"
	// StakeholderTable is the table that holds the stakeholder relation/edge.
	StakeholderTable = "risks"
	// StakeholderInverseTable is the table name for the Group entity.
	// It exists in this package in order to avoid circular dependency with the "group" package.
	StakeholderInverseTable = "groups"
	// StakeholderColumn is the table column denoting the stakeholder relation/edge.
	StakeholderColumn = "stakeholder_id"
	// DelegateTable is the table that holds the delegate relation/edge.
	DelegateTable = "risks"
	// 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 = "delegate_id"
)
View Source
const DefaultImpact enums.RiskImpact = "MODERATE"
View Source
const DefaultLikelihood enums.RiskLikelihood = "LIKELY"
View Source
const DefaultStatus enums.RiskStatus = "OPEN"

Variables

View Source
var (
	// BlockedGroupsPrimaryKey and BlockedGroupsColumn2 are the table columns denoting the
	// primary key for the blocked_groups relation (M2M).
	BlockedGroupsPrimaryKey = []string{"risk_id", "group_id"}
	// EditorsPrimaryKey and EditorsColumn2 are the table columns denoting the
	// primary key for the editors relation (M2M).
	EditorsPrimaryKey = []string{"risk_id", "group_id"}
	// ViewersPrimaryKey and ViewersColumn2 are the table columns denoting the
	// primary key for the viewers relation (M2M).
	ViewersPrimaryKey = []string{"risk_id", "group_id"}
	// ControlsPrimaryKey and ControlsColumn2 are the table columns denoting the
	// primary key for the controls relation (M2M).
	ControlsPrimaryKey = []string{"control_id", "risk_id"}
	// SubcontrolsPrimaryKey and SubcontrolsColumn2 are the table columns denoting the
	// primary key for the subcontrols relation (M2M).
	SubcontrolsPrimaryKey = []string{"subcontrol_id", "risk_id"}
	// ProceduresPrimaryKey and ProceduresColumn2 are the table columns denoting the
	// primary key for the procedures relation (M2M).
	ProceduresPrimaryKey = []string{"procedure_id", "risk_id"}
	// InternalPoliciesPrimaryKey and InternalPoliciesColumn2 are the table columns denoting the
	// primary key for the internal_policies relation (M2M).
	InternalPoliciesPrimaryKey = []string{"internal_policy_id", "risk_id"}
	// ProgramsPrimaryKey and ProgramsColumn2 are the table columns denoting the
	// primary key for the programs relation (M2M).
	ProgramsPrimaryKey = []string{"program_id", "risk_id"}
	// ActionPlansPrimaryKey and ActionPlansColumn2 are the table columns denoting the
	// primary key for the action_plans relation (M2M).
	ActionPlansPrimaryKey = []string{"risk_id", "action_plan_id"}
	// TasksPrimaryKey and TasksColumn2 are the table columns denoting the
	// primary key for the tasks relation (M2M).
	TasksPrimaryKey = []string{"risk_id", "task_id"}
)
View Source
var (
	Hooks        [12]ent.Hook
	Interceptors [4]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
	// NameValidator is a validator for the "name" field. It is called by the builders before save.
	NameValidator 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 risk fields.

View Source
var ForeignKeys = []string{
	"control_objective_risks",
}

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

Functions

func And

func And(predicates ...predicate.Risk) predicate.Risk

And groups predicates with the AND operator between them.

func BusinessCosts

func BusinessCosts(v string) predicate.Risk

BusinessCosts applies equality check predicate on the "business_costs" field. It's identical to BusinessCostsEQ.

func BusinessCostsContains

func BusinessCostsContains(v string) predicate.Risk

BusinessCostsContains applies the Contains predicate on the "business_costs" field.

func BusinessCostsContainsFold

func BusinessCostsContainsFold(v string) predicate.Risk

BusinessCostsContainsFold applies the ContainsFold predicate on the "business_costs" field.

func BusinessCostsEQ

func BusinessCostsEQ(v string) predicate.Risk

BusinessCostsEQ applies the EQ predicate on the "business_costs" field.

func BusinessCostsEqualFold

func BusinessCostsEqualFold(v string) predicate.Risk

BusinessCostsEqualFold applies the EqualFold predicate on the "business_costs" field.

func BusinessCostsGT

func BusinessCostsGT(v string) predicate.Risk

BusinessCostsGT applies the GT predicate on the "business_costs" field.

func BusinessCostsGTE

func BusinessCostsGTE(v string) predicate.Risk

BusinessCostsGTE applies the GTE predicate on the "business_costs" field.

func BusinessCostsHasPrefix

func BusinessCostsHasPrefix(v string) predicate.Risk

BusinessCostsHasPrefix applies the HasPrefix predicate on the "business_costs" field.

func BusinessCostsHasSuffix

func BusinessCostsHasSuffix(v string) predicate.Risk

BusinessCostsHasSuffix applies the HasSuffix predicate on the "business_costs" field.

func BusinessCostsIn

func BusinessCostsIn(vs ...string) predicate.Risk

BusinessCostsIn applies the In predicate on the "business_costs" field.

func BusinessCostsIsNil

func BusinessCostsIsNil() predicate.Risk

BusinessCostsIsNil applies the IsNil predicate on the "business_costs" field.

func BusinessCostsLT

func BusinessCostsLT(v string) predicate.Risk

BusinessCostsLT applies the LT predicate on the "business_costs" field.

func BusinessCostsLTE

func BusinessCostsLTE(v string) predicate.Risk

BusinessCostsLTE applies the LTE predicate on the "business_costs" field.

func BusinessCostsNEQ

func BusinessCostsNEQ(v string) predicate.Risk

BusinessCostsNEQ applies the NEQ predicate on the "business_costs" field.

func BusinessCostsNotIn

func BusinessCostsNotIn(vs ...string) predicate.Risk

BusinessCostsNotIn applies the NotIn predicate on the "business_costs" field.

func BusinessCostsNotNil

func BusinessCostsNotNil() predicate.Risk

BusinessCostsNotNil applies the NotNil predicate on the "business_costs" field.

func Category added in v0.7.5

func Category(v string) predicate.Risk

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

func CategoryContains added in v0.7.5

func CategoryContains(v string) predicate.Risk

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

func CategoryContainsFold added in v0.7.5

func CategoryContainsFold(v string) predicate.Risk

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

func CategoryEQ added in v0.7.5

func CategoryEQ(v string) predicate.Risk

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

func CategoryEqualFold added in v0.7.5

func CategoryEqualFold(v string) predicate.Risk

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

func CategoryGT added in v0.7.5

func CategoryGT(v string) predicate.Risk

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

func CategoryGTE added in v0.7.5

func CategoryGTE(v string) predicate.Risk

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

func CategoryHasPrefix added in v0.7.5

func CategoryHasPrefix(v string) predicate.Risk

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

func CategoryHasSuffix added in v0.7.5

func CategoryHasSuffix(v string) predicate.Risk

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

func CategoryIn added in v0.7.5

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

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

func CategoryIsNil added in v0.7.5

func CategoryIsNil() predicate.Risk

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

func CategoryLT added in v0.7.5

func CategoryLT(v string) predicate.Risk

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

func CategoryLTE added in v0.7.5

func CategoryLTE(v string) predicate.Risk

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

func CategoryNEQ added in v0.7.5

func CategoryNEQ(v string) predicate.Risk

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

func CategoryNotIn added in v0.7.5

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

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

func CategoryNotNil added in v0.7.5

func CategoryNotNil() predicate.Risk

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

func CreatedAt

func CreatedAt(v time.Time) predicate.Risk

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

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.Risk

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

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.Risk

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

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.Risk

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

func CreatedAtIn

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

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

func CreatedAtIsNil

func CreatedAtIsNil() predicate.Risk

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

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.Risk

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

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.Risk

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

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.Risk

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

func CreatedAtNotIn

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

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

func CreatedAtNotNil

func CreatedAtNotNil() predicate.Risk

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

func CreatedBy

func CreatedBy(v string) predicate.Risk

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

func CreatedByContains

func CreatedByContains(v string) predicate.Risk

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

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.Risk

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

func CreatedByEQ

func CreatedByEQ(v string) predicate.Risk

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

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.Risk

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

func CreatedByGT

func CreatedByGT(v string) predicate.Risk

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

func CreatedByGTE

func CreatedByGTE(v string) predicate.Risk

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

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.Risk

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

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.Risk

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

func CreatedByIn

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

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

func CreatedByIsNil

func CreatedByIsNil() predicate.Risk

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

func CreatedByLT

func CreatedByLT(v string) predicate.Risk

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

func CreatedByLTE

func CreatedByLTE(v string) predicate.Risk

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

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.Risk

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

func CreatedByNotIn

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

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

func CreatedByNotNil

func CreatedByNotNil() predicate.Risk

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

func DelegateID added in v0.8.9

func DelegateID(v string) predicate.Risk

DelegateID applies equality check predicate on the "delegate_id" field. It's identical to DelegateIDEQ.

func DelegateIDContains added in v0.8.9

func DelegateIDContains(v string) predicate.Risk

DelegateIDContains applies the Contains predicate on the "delegate_id" field.

func DelegateIDContainsFold added in v0.8.9

func DelegateIDContainsFold(v string) predicate.Risk

DelegateIDContainsFold applies the ContainsFold predicate on the "delegate_id" field.

func DelegateIDEQ added in v0.8.9

func DelegateIDEQ(v string) predicate.Risk

DelegateIDEQ applies the EQ predicate on the "delegate_id" field.

func DelegateIDEqualFold added in v0.8.9

func DelegateIDEqualFold(v string) predicate.Risk

DelegateIDEqualFold applies the EqualFold predicate on the "delegate_id" field.

func DelegateIDGT added in v0.8.9

func DelegateIDGT(v string) predicate.Risk

DelegateIDGT applies the GT predicate on the "delegate_id" field.

func DelegateIDGTE added in v0.8.9

func DelegateIDGTE(v string) predicate.Risk

DelegateIDGTE applies the GTE predicate on the "delegate_id" field.

func DelegateIDHasPrefix added in v0.8.9

func DelegateIDHasPrefix(v string) predicate.Risk

DelegateIDHasPrefix applies the HasPrefix predicate on the "delegate_id" field.

func DelegateIDHasSuffix added in v0.8.9

func DelegateIDHasSuffix(v string) predicate.Risk

DelegateIDHasSuffix applies the HasSuffix predicate on the "delegate_id" field.

func DelegateIDIn added in v0.8.9

func DelegateIDIn(vs ...string) predicate.Risk

DelegateIDIn applies the In predicate on the "delegate_id" field.

func DelegateIDIsNil added in v0.8.9

func DelegateIDIsNil() predicate.Risk

DelegateIDIsNil applies the IsNil predicate on the "delegate_id" field.

func DelegateIDLT added in v0.8.9

func DelegateIDLT(v string) predicate.Risk

DelegateIDLT applies the LT predicate on the "delegate_id" field.

func DelegateIDLTE added in v0.8.9

func DelegateIDLTE(v string) predicate.Risk

DelegateIDLTE applies the LTE predicate on the "delegate_id" field.

func DelegateIDNEQ added in v0.8.9

func DelegateIDNEQ(v string) predicate.Risk

DelegateIDNEQ applies the NEQ predicate on the "delegate_id" field.

func DelegateIDNotIn added in v0.8.9

func DelegateIDNotIn(vs ...string) predicate.Risk

DelegateIDNotIn applies the NotIn predicate on the "delegate_id" field.

func DelegateIDNotNil added in v0.8.9

func DelegateIDNotNil() predicate.Risk

DelegateIDNotNil applies the NotNil predicate on the "delegate_id" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.Risk

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

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.Risk

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

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.Risk

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

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.Risk

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

func DeletedAtIn

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

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

func DeletedAtIsNil

func DeletedAtIsNil() predicate.Risk

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

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.Risk

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

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.Risk

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

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.Risk

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

func DeletedAtNotIn

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

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

func DeletedAtNotNil

func DeletedAtNotNil() predicate.Risk

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

func DeletedBy

func DeletedBy(v string) predicate.Risk

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

func DeletedByContains

func DeletedByContains(v string) predicate.Risk

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

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.Risk

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

func DeletedByEQ

func DeletedByEQ(v string) predicate.Risk

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

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.Risk

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

func DeletedByGT

func DeletedByGT(v string) predicate.Risk

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

func DeletedByGTE

func DeletedByGTE(v string) predicate.Risk

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

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.Risk

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

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.Risk

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

func DeletedByIn

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

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

func DeletedByIsNil

func DeletedByIsNil() predicate.Risk

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

func DeletedByLT

func DeletedByLT(v string) predicate.Risk

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

func DeletedByLTE

func DeletedByLTE(v string) predicate.Risk

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

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.Risk

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

func DeletedByNotIn

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

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

func DeletedByNotNil

func DeletedByNotNil() predicate.Risk

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

func Details added in v0.7.5

func Details(v string) predicate.Risk

Details applies equality check predicate on the "details" field. It's identical to DetailsEQ.

func DetailsContains added in v0.7.5

func DetailsContains(v string) predicate.Risk

DetailsContains applies the Contains predicate on the "details" field.

func DetailsContainsFold added in v0.7.5

func DetailsContainsFold(v string) predicate.Risk

DetailsContainsFold applies the ContainsFold predicate on the "details" field.

func DetailsEQ added in v0.7.5

func DetailsEQ(v string) predicate.Risk

DetailsEQ applies the EQ predicate on the "details" field.

func DetailsEqualFold added in v0.7.5

func DetailsEqualFold(v string) predicate.Risk

DetailsEqualFold applies the EqualFold predicate on the "details" field.

func DetailsGT added in v0.7.5

func DetailsGT(v string) predicate.Risk

DetailsGT applies the GT predicate on the "details" field.

func DetailsGTE added in v0.7.5

func DetailsGTE(v string) predicate.Risk

DetailsGTE applies the GTE predicate on the "details" field.

func DetailsHasPrefix added in v0.7.5

func DetailsHasPrefix(v string) predicate.Risk

DetailsHasPrefix applies the HasPrefix predicate on the "details" field.

func DetailsHasSuffix added in v0.7.5

func DetailsHasSuffix(v string) predicate.Risk

DetailsHasSuffix applies the HasSuffix predicate on the "details" field.

func DetailsIn added in v0.7.5

func DetailsIn(vs ...string) predicate.Risk

DetailsIn applies the In predicate on the "details" field.

func DetailsIsNil

func DetailsIsNil() predicate.Risk

DetailsIsNil applies the IsNil predicate on the "details" field.

func DetailsLT added in v0.7.5

func DetailsLT(v string) predicate.Risk

DetailsLT applies the LT predicate on the "details" field.

func DetailsLTE added in v0.7.5

func DetailsLTE(v string) predicate.Risk

DetailsLTE applies the LTE predicate on the "details" field.

func DetailsNEQ added in v0.7.5

func DetailsNEQ(v string) predicate.Risk

DetailsNEQ applies the NEQ predicate on the "details" field.

func DetailsNotIn added in v0.7.5

func DetailsNotIn(vs ...string) predicate.Risk

DetailsNotIn applies the NotIn predicate on the "details" field.

func DetailsNotNil

func DetailsNotNil() predicate.Risk

DetailsNotNil applies the NotNil predicate on the "details" field.

func DisplayID added in v0.6.11

func DisplayID(v string) predicate.Risk

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.Risk

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

func DisplayIDContainsFold added in v0.6.11

func DisplayIDContainsFold(v string) predicate.Risk

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

func DisplayIDEQ added in v0.6.11

func DisplayIDEQ(v string) predicate.Risk

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

func DisplayIDEqualFold added in v0.6.11

func DisplayIDEqualFold(v string) predicate.Risk

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

func DisplayIDGT added in v0.6.11

func DisplayIDGT(v string) predicate.Risk

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

func DisplayIDGTE added in v0.6.11

func DisplayIDGTE(v string) predicate.Risk

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

func DisplayIDHasPrefix added in v0.6.11

func DisplayIDHasPrefix(v string) predicate.Risk

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

func DisplayIDHasSuffix added in v0.6.11

func DisplayIDHasSuffix(v string) predicate.Risk

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

func DisplayIDIn added in v0.6.11

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

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

func DisplayIDLT added in v0.6.11

func DisplayIDLT(v string) predicate.Risk

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

func DisplayIDLTE added in v0.6.11

func DisplayIDLTE(v string) predicate.Risk

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

func DisplayIDNEQ added in v0.6.11

func DisplayIDNEQ(v string) predicate.Risk

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

func DisplayIDNotIn added in v0.6.11

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

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

func HasActionPlans added in v0.6.1

func HasActionPlans() predicate.Risk

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

func HasActionPlansWith added in v0.6.1

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

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

func HasAssets added in v0.19.0

func HasAssets() predicate.Risk

HasAssets applies the HasEdge predicate on the "assets" edge.

func HasAssetsWith added in v0.19.0

func HasAssetsWith(preds ...predicate.Asset) predicate.Risk

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

func HasBlockedGroups added in v0.4.3

func HasBlockedGroups() predicate.Risk

HasBlockedGroups applies the HasEdge predicate on the "blocked_groups" edge.

func HasBlockedGroupsWith added in v0.4.3

func HasBlockedGroupsWith(preds ...predicate.Group) predicate.Risk

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

func HasControls added in v0.8.2

func HasControls() predicate.Risk

HasControls applies the HasEdge predicate on the "controls" edge.

func HasControlsWith added in v0.8.2

func HasControlsWith(preds ...predicate.Control) predicate.Risk

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

func HasDelegate added in v0.7.5

func HasDelegate() predicate.Risk

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

func HasDelegateWith added in v0.7.5

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

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

func HasEditors added in v0.4.3

func HasEditors() predicate.Risk

HasEditors applies the HasEdge predicate on the "editors" edge.

func HasEditorsWith added in v0.4.3

func HasEditorsWith(preds ...predicate.Group) predicate.Risk

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

func HasEntities added in v0.19.0

func HasEntities() predicate.Risk

HasEntities applies the HasEdge predicate on the "entities" edge.

func HasEntitiesWith added in v0.19.0

func HasEntitiesWith(preds ...predicate.Entity) predicate.Risk

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

func HasInternalPolicies added in v0.10.5

func HasInternalPolicies() predicate.Risk

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

func HasInternalPoliciesWith added in v0.10.5

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

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

func HasOwner added in v0.4.3

func HasOwner() predicate.Risk

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

func HasOwnerWith added in v0.4.3

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

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

func HasProcedures added in v0.8.2

func HasProcedures() predicate.Risk

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

func HasProceduresWith added in v0.8.2

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

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

func HasPrograms added in v0.4.4

func HasPrograms() predicate.Risk

HasPrograms applies the HasEdge predicate on the "programs" edge.

func HasProgramsWith added in v0.4.4

func HasProgramsWith(preds ...predicate.Program) predicate.Risk

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

func HasScans added in v0.19.0

func HasScans() predicate.Risk

HasScans applies the HasEdge predicate on the "scans" edge.

func HasScansWith added in v0.19.0

func HasScansWith(preds ...predicate.Scan) predicate.Risk

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

func HasStakeholder added in v0.7.5

func HasStakeholder() predicate.Risk

HasStakeholder applies the HasEdge predicate on the "stakeholder" edge.

func HasStakeholderWith added in v0.7.5

func HasStakeholderWith(preds ...predicate.Group) predicate.Risk

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

func HasSubcontrols added in v0.10.5

func HasSubcontrols() predicate.Risk

HasSubcontrols applies the HasEdge predicate on the "subcontrols" edge.

func HasSubcontrolsWith added in v0.10.5

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

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

func HasTasks added in v0.13.1

func HasTasks() predicate.Risk

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

func HasTasksWith added in v0.13.1

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

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

func HasViewers added in v0.4.3

func HasViewers() predicate.Risk

HasViewers applies the HasEdge predicate on the "viewers" edge.

func HasViewersWith added in v0.4.3

func HasViewersWith(preds ...predicate.Group) predicate.Risk

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

func ID

func ID(id string) predicate.Risk

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.Risk

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

func IDEQ(id string) predicate.Risk

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.Risk

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

func IDGT(id string) predicate.Risk

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.Risk

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id string) predicate.Risk

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.Risk

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.Risk

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func ImpactEQ

func ImpactEQ(v enums.RiskImpact) predicate.Risk

ImpactEQ applies the EQ predicate on the "impact" field.

func ImpactIn

func ImpactIn(vs ...enums.RiskImpact) predicate.Risk

ImpactIn applies the In predicate on the "impact" field.

func ImpactIsNil

func ImpactIsNil() predicate.Risk

ImpactIsNil applies the IsNil predicate on the "impact" field.

func ImpactNEQ

func ImpactNEQ(v enums.RiskImpact) predicate.Risk

ImpactNEQ applies the NEQ predicate on the "impact" field.

func ImpactNotIn

func ImpactNotIn(vs ...enums.RiskImpact) predicate.Risk

ImpactNotIn applies the NotIn predicate on the "impact" field.

func ImpactNotNil

func ImpactNotNil() predicate.Risk

ImpactNotNil applies the NotNil predicate on the "impact" field.

func ImpactValidator

func ImpactValidator(i enums.RiskImpact) error

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

func LikelihoodEQ

func LikelihoodEQ(v enums.RiskLikelihood) predicate.Risk

LikelihoodEQ applies the EQ predicate on the "likelihood" field.

func LikelihoodIn

func LikelihoodIn(vs ...enums.RiskLikelihood) predicate.Risk

LikelihoodIn applies the In predicate on the "likelihood" field.

func LikelihoodIsNil

func LikelihoodIsNil() predicate.Risk

LikelihoodIsNil applies the IsNil predicate on the "likelihood" field.

func LikelihoodNEQ

func LikelihoodNEQ(v enums.RiskLikelihood) predicate.Risk

LikelihoodNEQ applies the NEQ predicate on the "likelihood" field.

func LikelihoodNotIn

func LikelihoodNotIn(vs ...enums.RiskLikelihood) predicate.Risk

LikelihoodNotIn applies the NotIn predicate on the "likelihood" field.

func LikelihoodNotNil

func LikelihoodNotNil() predicate.Risk

LikelihoodNotNil applies the NotNil predicate on the "likelihood" field.

func LikelihoodValidator

func LikelihoodValidator(l enums.RiskLikelihood) error

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

func Mitigation

func Mitigation(v string) predicate.Risk

Mitigation applies equality check predicate on the "mitigation" field. It's identical to MitigationEQ.

func MitigationContains

func MitigationContains(v string) predicate.Risk

MitigationContains applies the Contains predicate on the "mitigation" field.

func MitigationContainsFold

func MitigationContainsFold(v string) predicate.Risk

MitigationContainsFold applies the ContainsFold predicate on the "mitigation" field.

func MitigationEQ

func MitigationEQ(v string) predicate.Risk

MitigationEQ applies the EQ predicate on the "mitigation" field.

func MitigationEqualFold

func MitigationEqualFold(v string) predicate.Risk

MitigationEqualFold applies the EqualFold predicate on the "mitigation" field.

func MitigationGT

func MitigationGT(v string) predicate.Risk

MitigationGT applies the GT predicate on the "mitigation" field.

func MitigationGTE

func MitigationGTE(v string) predicate.Risk

MitigationGTE applies the GTE predicate on the "mitigation" field.

func MitigationHasPrefix

func MitigationHasPrefix(v string) predicate.Risk

MitigationHasPrefix applies the HasPrefix predicate on the "mitigation" field.

func MitigationHasSuffix

func MitigationHasSuffix(v string) predicate.Risk

MitigationHasSuffix applies the HasSuffix predicate on the "mitigation" field.

func MitigationIn

func MitigationIn(vs ...string) predicate.Risk

MitigationIn applies the In predicate on the "mitigation" field.

func MitigationIsNil

func MitigationIsNil() predicate.Risk

MitigationIsNil applies the IsNil predicate on the "mitigation" field.

func MitigationLT

func MitigationLT(v string) predicate.Risk

MitigationLT applies the LT predicate on the "mitigation" field.

func MitigationLTE

func MitigationLTE(v string) predicate.Risk

MitigationLTE applies the LTE predicate on the "mitigation" field.

func MitigationNEQ

func MitigationNEQ(v string) predicate.Risk

MitigationNEQ applies the NEQ predicate on the "mitigation" field.

func MitigationNotIn

func MitigationNotIn(vs ...string) predicate.Risk

MitigationNotIn applies the NotIn predicate on the "mitigation" field.

func MitigationNotNil

func MitigationNotNil() predicate.Risk

MitigationNotNil applies the NotNil predicate on the "mitigation" field.

func Name

func Name(v string) predicate.Risk

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

func NameContains(v string) predicate.Risk

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

func NameContainsFold(v string) predicate.Risk

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

func NameEQ(v string) predicate.Risk

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

func NameEqualFold(v string) predicate.Risk

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

func NameGT(v string) predicate.Risk

NameGT applies the GT predicate on the "name" field.

func NameGTE

func NameGTE(v string) predicate.Risk

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

func NameHasPrefix(v string) predicate.Risk

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

func NameHasSuffix(v string) predicate.Risk

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

func NameIn(vs ...string) predicate.Risk

NameIn applies the In predicate on the "name" field.

func NameLT

func NameLT(v string) predicate.Risk

NameLT applies the LT predicate on the "name" field.

func NameLTE

func NameLTE(v string) predicate.Risk

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

func NameNEQ(v string) predicate.Risk

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

func NameNotIn(vs ...string) predicate.Risk

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Risk) predicate.Risk

Or groups predicates with the OR operator between them.

func OwnerID added in v0.4.3

func OwnerID(v string) predicate.Risk

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

func OwnerIDContains added in v0.4.3

func OwnerIDContains(v string) predicate.Risk

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

func OwnerIDContainsFold added in v0.4.3

func OwnerIDContainsFold(v string) predicate.Risk

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

func OwnerIDEQ added in v0.4.3

func OwnerIDEQ(v string) predicate.Risk

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

func OwnerIDEqualFold added in v0.4.3

func OwnerIDEqualFold(v string) predicate.Risk

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

func OwnerIDGT added in v0.4.3

func OwnerIDGT(v string) predicate.Risk

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

func OwnerIDGTE added in v0.4.3

func OwnerIDGTE(v string) predicate.Risk

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

func OwnerIDHasPrefix added in v0.4.3

func OwnerIDHasPrefix(v string) predicate.Risk

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

func OwnerIDHasSuffix added in v0.4.3

func OwnerIDHasSuffix(v string) predicate.Risk

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

func OwnerIDIn added in v0.4.3

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

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

func OwnerIDIsNil added in v0.7.1

func OwnerIDIsNil() predicate.Risk

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

func OwnerIDLT added in v0.4.3

func OwnerIDLT(v string) predicate.Risk

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

func OwnerIDLTE added in v0.4.3

func OwnerIDLTE(v string) predicate.Risk

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

func OwnerIDNEQ added in v0.4.3

func OwnerIDNEQ(v string) predicate.Risk

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

func OwnerIDNotIn added in v0.4.3

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

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

func OwnerIDNotNil added in v0.7.1

func OwnerIDNotNil() predicate.Risk

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

func RiskType

func RiskType(v string) predicate.Risk

RiskType applies equality check predicate on the "risk_type" field. It's identical to RiskTypeEQ.

func RiskTypeContains

func RiskTypeContains(v string) predicate.Risk

RiskTypeContains applies the Contains predicate on the "risk_type" field.

func RiskTypeContainsFold

func RiskTypeContainsFold(v string) predicate.Risk

RiskTypeContainsFold applies the ContainsFold predicate on the "risk_type" field.

func RiskTypeEQ

func RiskTypeEQ(v string) predicate.Risk

RiskTypeEQ applies the EQ predicate on the "risk_type" field.

func RiskTypeEqualFold

func RiskTypeEqualFold(v string) predicate.Risk

RiskTypeEqualFold applies the EqualFold predicate on the "risk_type" field.

func RiskTypeGT

func RiskTypeGT(v string) predicate.Risk

RiskTypeGT applies the GT predicate on the "risk_type" field.

func RiskTypeGTE

func RiskTypeGTE(v string) predicate.Risk

RiskTypeGTE applies the GTE predicate on the "risk_type" field.

func RiskTypeHasPrefix

func RiskTypeHasPrefix(v string) predicate.Risk

RiskTypeHasPrefix applies the HasPrefix predicate on the "risk_type" field.

func RiskTypeHasSuffix

func RiskTypeHasSuffix(v string) predicate.Risk

RiskTypeHasSuffix applies the HasSuffix predicate on the "risk_type" field.

func RiskTypeIn

func RiskTypeIn(vs ...string) predicate.Risk

RiskTypeIn applies the In predicate on the "risk_type" field.

func RiskTypeIsNil

func RiskTypeIsNil() predicate.Risk

RiskTypeIsNil applies the IsNil predicate on the "risk_type" field.

func RiskTypeLT

func RiskTypeLT(v string) predicate.Risk

RiskTypeLT applies the LT predicate on the "risk_type" field.

func RiskTypeLTE

func RiskTypeLTE(v string) predicate.Risk

RiskTypeLTE applies the LTE predicate on the "risk_type" field.

func RiskTypeNEQ

func RiskTypeNEQ(v string) predicate.Risk

RiskTypeNEQ applies the NEQ predicate on the "risk_type" field.

func RiskTypeNotIn

func RiskTypeNotIn(vs ...string) predicate.Risk

RiskTypeNotIn applies the NotIn predicate on the "risk_type" field.

func RiskTypeNotNil

func RiskTypeNotNil() predicate.Risk

RiskTypeNotNil applies the NotNil predicate on the "risk_type" field.

func Score added in v0.7.5

func Score(v int) predicate.Risk

Score applies equality check predicate on the "score" field. It's identical to ScoreEQ.

func ScoreEQ added in v0.7.5

func ScoreEQ(v int) predicate.Risk

ScoreEQ applies the EQ predicate on the "score" field.

func ScoreGT added in v0.7.5

func ScoreGT(v int) predicate.Risk

ScoreGT applies the GT predicate on the "score" field.

func ScoreGTE added in v0.7.5

func ScoreGTE(v int) predicate.Risk

ScoreGTE applies the GTE predicate on the "score" field.

func ScoreIn added in v0.7.5

func ScoreIn(vs ...int) predicate.Risk

ScoreIn applies the In predicate on the "score" field.

func ScoreIsNil added in v0.7.5

func ScoreIsNil() predicate.Risk

ScoreIsNil applies the IsNil predicate on the "score" field.

func ScoreLT added in v0.7.5

func ScoreLT(v int) predicate.Risk

ScoreLT applies the LT predicate on the "score" field.

func ScoreLTE added in v0.7.5

func ScoreLTE(v int) predicate.Risk

ScoreLTE applies the LTE predicate on the "score" field.

func ScoreNEQ added in v0.7.5

func ScoreNEQ(v int) predicate.Risk

ScoreNEQ applies the NEQ predicate on the "score" field.

func ScoreNotIn added in v0.7.5

func ScoreNotIn(vs ...int) predicate.Risk

ScoreNotIn applies the NotIn predicate on the "score" field.

func ScoreNotNil added in v0.7.5

func ScoreNotNil() predicate.Risk

ScoreNotNil applies the NotNil predicate on the "score" field.

func StakeholderID added in v0.8.9

func StakeholderID(v string) predicate.Risk

StakeholderID applies equality check predicate on the "stakeholder_id" field. It's identical to StakeholderIDEQ.

func StakeholderIDContains added in v0.8.9

func StakeholderIDContains(v string) predicate.Risk

StakeholderIDContains applies the Contains predicate on the "stakeholder_id" field.

func StakeholderIDContainsFold added in v0.8.9

func StakeholderIDContainsFold(v string) predicate.Risk

StakeholderIDContainsFold applies the ContainsFold predicate on the "stakeholder_id" field.

func StakeholderIDEQ added in v0.8.9

func StakeholderIDEQ(v string) predicate.Risk

StakeholderIDEQ applies the EQ predicate on the "stakeholder_id" field.

func StakeholderIDEqualFold added in v0.8.9

func StakeholderIDEqualFold(v string) predicate.Risk

StakeholderIDEqualFold applies the EqualFold predicate on the "stakeholder_id" field.

func StakeholderIDGT added in v0.8.9

func StakeholderIDGT(v string) predicate.Risk

StakeholderIDGT applies the GT predicate on the "stakeholder_id" field.

func StakeholderIDGTE added in v0.8.9

func StakeholderIDGTE(v string) predicate.Risk

StakeholderIDGTE applies the GTE predicate on the "stakeholder_id" field.

func StakeholderIDHasPrefix added in v0.8.9

func StakeholderIDHasPrefix(v string) predicate.Risk

StakeholderIDHasPrefix applies the HasPrefix predicate on the "stakeholder_id" field.

func StakeholderIDHasSuffix added in v0.8.9

func StakeholderIDHasSuffix(v string) predicate.Risk

StakeholderIDHasSuffix applies the HasSuffix predicate on the "stakeholder_id" field.

func StakeholderIDIn added in v0.8.9

func StakeholderIDIn(vs ...string) predicate.Risk

StakeholderIDIn applies the In predicate on the "stakeholder_id" field.

func StakeholderIDIsNil added in v0.8.9

func StakeholderIDIsNil() predicate.Risk

StakeholderIDIsNil applies the IsNil predicate on the "stakeholder_id" field.

func StakeholderIDLT added in v0.8.9

func StakeholderIDLT(v string) predicate.Risk

StakeholderIDLT applies the LT predicate on the "stakeholder_id" field.

func StakeholderIDLTE added in v0.8.9

func StakeholderIDLTE(v string) predicate.Risk

StakeholderIDLTE applies the LTE predicate on the "stakeholder_id" field.

func StakeholderIDNEQ added in v0.8.9

func StakeholderIDNEQ(v string) predicate.Risk

StakeholderIDNEQ applies the NEQ predicate on the "stakeholder_id" field.

func StakeholderIDNotIn added in v0.8.9

func StakeholderIDNotIn(vs ...string) predicate.Risk

StakeholderIDNotIn applies the NotIn predicate on the "stakeholder_id" field.

func StakeholderIDNotNil added in v0.8.9

func StakeholderIDNotNil() predicate.Risk

StakeholderIDNotNil applies the NotNil predicate on the "stakeholder_id" field.

func StatusEQ

func StatusEQ(v enums.RiskStatus) predicate.Risk

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

func StatusIn

func StatusIn(vs ...enums.RiskStatus) predicate.Risk

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

func StatusIsNil

func StatusIsNil() predicate.Risk

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

func StatusNEQ

func StatusNEQ(v enums.RiskStatus) predicate.Risk

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

func StatusNotIn

func StatusNotIn(vs ...enums.RiskStatus) predicate.Risk

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

func StatusNotNil

func StatusNotNil() predicate.Risk

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

func StatusValidator added in v0.7.5

func StatusValidator(s enums.RiskStatus) error

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

func TagsIsNil

func TagsIsNil() predicate.Risk

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

func TagsNotNil

func TagsNotNil() predicate.Risk

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

func UpdatedAt

func UpdatedAt(v time.Time) predicate.Risk

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

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.Risk

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

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.Risk

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

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.Risk

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

func UpdatedAtIn

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

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

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.Risk

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

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.Risk

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

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.Risk

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

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.Risk

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

func UpdatedAtNotIn

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

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

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.Risk

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

func UpdatedBy

func UpdatedBy(v string) predicate.Risk

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

func UpdatedByContains

func UpdatedByContains(v string) predicate.Risk

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

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.Risk

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

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.Risk

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

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.Risk

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

func UpdatedByGT

func UpdatedByGT(v string) predicate.Risk

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

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.Risk

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

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.Risk

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

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.Risk

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

func UpdatedByIn

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

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

func UpdatedByIsNil

func UpdatedByIsNil() predicate.Risk

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

func UpdatedByLT

func UpdatedByLT(v string) predicate.Risk

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

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.Risk

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

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.Risk

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

func UpdatedByNotIn

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

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

func UpdatedByNotNil

func UpdatedByNotNil() predicate.Risk

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 Risk queries.

func ByActionPlans added in v0.6.1

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

ByActionPlans orders the results by action_plans terms.

func ByActionPlansCount added in v0.6.1

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

ByActionPlansCount orders the results by action_plans count.

func ByAssets added in v0.19.0

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

ByAssets orders the results by assets terms.

func ByAssetsCount added in v0.19.0

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

ByAssetsCount orders the results by assets count.

func ByBlockedGroups added in v0.4.3

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

ByBlockedGroups orders the results by blocked_groups terms.

func ByBlockedGroupsCount added in v0.4.3

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

ByBlockedGroupsCount orders the results by blocked_groups count.

func ByBusinessCosts

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

ByBusinessCosts orders the results by the business_costs field.

func ByCategory added in v0.7.5

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

ByCategory orders the results by the category field.

func ByControls added in v0.8.2

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

ByControls orders the results by controls terms.

func ByControlsCount added in v0.8.2

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

ByControlsCount orders the results by controls count.

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.5

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

ByDelegateField orders the results by delegate field.

func ByDelegateID added in v0.8.9

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

ByDelegateID orders the results by the delegate_id 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 ByDetails added in v0.7.5

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

ByDetails orders the results by the details field.

func ByDisplayID added in v0.6.11

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

ByDisplayID orders the results by the display_id field.

func ByEditors added in v0.4.3

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

ByEditors orders the results by editors terms.

func ByEditorsCount added in v0.4.3

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

ByEditorsCount orders the results by editors count.

func ByEntities added in v0.19.0

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

ByEntities orders the results by entities terms.

func ByEntitiesCount added in v0.19.0

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

ByEntitiesCount orders the results by entities count.

func ByID

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

ByID orders the results by the id field.

func ByImpact

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

ByImpact orders the results by the impact field.

func ByInternalPolicies added in v0.10.5

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

ByInternalPolicies orders the results by internal_policies terms.

func ByInternalPoliciesCount added in v0.10.5

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

ByInternalPoliciesCount orders the results by internal_policies count.

func ByLikelihood

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

ByLikelihood orders the results by the likelihood field.

func ByMitigation

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

ByMitigation orders the results by the mitigation field.

func ByName

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

ByName orders the results by the name field.

func ByOwnerField added in v0.4.3

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

ByOwnerField orders the results by owner field.

func ByOwnerID added in v0.4.3

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

ByOwnerID orders the results by the owner_id field.

func ByProcedures added in v0.8.2

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

ByProcedures orders the results by procedures terms.

func ByProceduresCount added in v0.8.2

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

ByProceduresCount orders the results by procedures count.

func ByPrograms added in v0.4.4

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

ByPrograms orders the results by programs terms.

func ByProgramsCount added in v0.4.4

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

ByProgramsCount orders the results by programs count.

func ByRiskType

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

ByRiskType orders the results by the risk_type field.

func ByScans added in v0.19.0

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

ByScans orders the results by scans terms.

func ByScansCount added in v0.19.0

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

ByScansCount orders the results by scans count.

func ByScore added in v0.7.5

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

ByScore orders the results by the score field.

func ByStakeholderField added in v0.7.5

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

ByStakeholderField orders the results by stakeholder field.

func ByStakeholderID added in v0.8.9

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

ByStakeholderID orders the results by the stakeholder_id field.

func ByStatus

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

ByStatus orders the results by the status field.

func BySubcontrols added in v0.10.5

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

BySubcontrols orders the results by subcontrols terms.

func BySubcontrolsCount added in v0.10.5

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

BySubcontrolsCount orders the results by subcontrols count.

func ByTasks added in v0.13.1

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

ByTasks orders the results by tasks terms.

func ByTasksCount added in v0.13.1

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.

func ByViewers added in v0.4.3

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

ByViewers orders the results by viewers terms.

func ByViewersCount added in v0.4.3

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

ByViewersCount orders the results by viewers count.

Jump to

Keyboard shortcuts

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