risk

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 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"
	// FieldMappingID holds the string denoting the mapping_id field in the database.
	FieldMappingID = "mapping_id"
	// FieldTags holds the string denoting the tags field in the database.
	FieldTags = "tags"
	// FieldName holds the string denoting the name field in the database.
	FieldName = "name"
	// 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"
	// FieldRiskType holds the string denoting the risk_type field in the database.
	FieldRiskType = "risk_type"
	// FieldBusinessCosts holds the string denoting the business_costs field in the database.
	FieldBusinessCosts = "business_costs"
	// 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"
	// FieldMitigation holds the string denoting the mitigation field in the database.
	FieldMitigation = "mitigation"
	// FieldSatisfies holds the string denoting the satisfies field in the database.
	FieldSatisfies = "satisfies"
	// FieldDetails holds the string denoting the details field in the database.
	FieldDetails = "details"
	// EdgeControl holds the string denoting the control edge name in mutations.
	EdgeControl = "control"
	// EdgeProcedure holds the string denoting the procedure edge name in mutations.
	EdgeProcedure = "procedure"
	// EdgeActionplans holds the string denoting the actionplans edge name in mutations.
	EdgeActionplans = "actionplans"
	// EdgeProgram holds the string denoting the program edge name in mutations.
	EdgeProgram = "program"
	// Table holds the table name of the risk in the database.
	Table = "risks"
	// ControlTable is the table that holds the control relation/edge. The primary key declared below.
	ControlTable = "control_risks"
	// 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"
	// ProcedureTable is the table that holds the procedure relation/edge. The primary key declared below.
	ProcedureTable = "procedure_risks"
	// ProcedureInverseTable is the table name for the Procedure entity.
	// It exists in this package in order to avoid circular dependency with the "procedure" package.
	ProcedureInverseTable = "procedures"
	// ActionplansTable is the table that holds the actionplans relation/edge. The primary key declared below.
	ActionplansTable = "risk_actionplans"
	// 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"
	// ProgramTable is the table that holds the program relation/edge. The primary key declared below.
	ProgramTable = "program_risks"
	// ProgramInverseTable is the table name for the Program entity.
	// It exists in this package in order to avoid circular dependency with the "program" package.
	ProgramInverseTable = "programs"
)

Variables

View Source
var (
	// ControlPrimaryKey and ControlColumn2 are the table columns denoting the
	// primary key for the control relation (M2M).
	ControlPrimaryKey = []string{"control_id", "risk_id"}
	// ProcedurePrimaryKey and ProcedureColumn2 are the table columns denoting the
	// primary key for the procedure relation (M2M).
	ProcedurePrimaryKey = []string{"procedure_id", "risk_id"}
	// ActionplansPrimaryKey and ActionplansColumn2 are the table columns denoting the
	// primary key for the actionplans relation (M2M).
	ActionplansPrimaryKey = []string{"risk_id", "action_plan_id"}
	// ProgramPrimaryKey and ProgramColumn2 are the table columns denoting the
	// primary key for the program relation (M2M).
	ProgramPrimaryKey = []string{"program_id", "risk_id"}
)
View Source
var (
	Hooks        [2]ent.Hook
	Interceptors [1]ent.Interceptor
	// 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
	// DefaultMappingID holds the default value on creation for the "mapping_id" field.
	DefaultMappingID func() string
	// DefaultTags holds the default value on creation for the "tags" field.
	DefaultTags []string
	// 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 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 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 Description

func Description(v string) predicate.Risk

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

func DescriptionContains

func DescriptionContains(v string) predicate.Risk

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

func DescriptionContainsFold

func DescriptionContainsFold(v string) predicate.Risk

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

func DescriptionEQ

func DescriptionEQ(v string) predicate.Risk

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

func DescriptionEqualFold

func DescriptionEqualFold(v string) predicate.Risk

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

func DescriptionGT

func DescriptionGT(v string) predicate.Risk

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

func DescriptionGTE

func DescriptionGTE(v string) predicate.Risk

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

func DescriptionHasPrefix

func DescriptionHasPrefix(v string) predicate.Risk

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

func DescriptionHasSuffix

func DescriptionHasSuffix(v string) predicate.Risk

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

func DescriptionIn

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

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

func DescriptionIsNil

func DescriptionIsNil() predicate.Risk

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

func DescriptionLT

func DescriptionLT(v string) predicate.Risk

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

func DescriptionLTE

func DescriptionLTE(v string) predicate.Risk

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

func DescriptionNEQ

func DescriptionNEQ(v string) predicate.Risk

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

func DescriptionNotIn

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

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

func DescriptionNotNil

func DescriptionNotNil() predicate.Risk

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

func DetailsIsNil

func DetailsIsNil() predicate.Risk

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

func DetailsNotNil

func DetailsNotNil() predicate.Risk

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

func HasActionplans

func HasActionplans() predicate.Risk

HasActionplans applies the HasEdge predicate on the "actionplans" edge.

func HasActionplansWith

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

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

func HasControl

func HasControl() predicate.Risk

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

func HasControlWith

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

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

func HasProcedure

func HasProcedure() predicate.Risk

HasProcedure applies the HasEdge predicate on the "procedure" edge.

func HasProcedureWith

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

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

func HasProgram added in v0.3.5

func HasProgram() predicate.Risk

HasProgram applies the HasEdge predicate on the "program" edge.

func HasProgramWith added in v0.3.5

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

HasProgramWith applies the HasEdge predicate on the "program" 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 MappingID

func MappingID(v string) predicate.Risk

MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.

func MappingIDContains

func MappingIDContains(v string) predicate.Risk

MappingIDContains applies the Contains predicate on the "mapping_id" field.

func MappingIDContainsFold

func MappingIDContainsFold(v string) predicate.Risk

MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.

func MappingIDEQ

func MappingIDEQ(v string) predicate.Risk

MappingIDEQ applies the EQ predicate on the "mapping_id" field.

func MappingIDEqualFold

func MappingIDEqualFold(v string) predicate.Risk

MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.

func MappingIDGT

func MappingIDGT(v string) predicate.Risk

MappingIDGT applies the GT predicate on the "mapping_id" field.

func MappingIDGTE

func MappingIDGTE(v string) predicate.Risk

MappingIDGTE applies the GTE predicate on the "mapping_id" field.

func MappingIDHasPrefix

func MappingIDHasPrefix(v string) predicate.Risk

MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.

func MappingIDHasSuffix

func MappingIDHasSuffix(v string) predicate.Risk

MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.

func MappingIDIn

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

MappingIDIn applies the In predicate on the "mapping_id" field.

func MappingIDLT

func MappingIDLT(v string) predicate.Risk

MappingIDLT applies the LT predicate on the "mapping_id" field.

func MappingIDLTE

func MappingIDLTE(v string) predicate.Risk

MappingIDLTE applies the LTE predicate on the "mapping_id" field.

func MappingIDNEQ

func MappingIDNEQ(v string) predicate.Risk

MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.

func MappingIDNotIn

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

MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.

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 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 Satisfies

func Satisfies(v string) predicate.Risk

Satisfies applies equality check predicate on the "satisfies" field. It's identical to SatisfiesEQ.

func SatisfiesContains

func SatisfiesContains(v string) predicate.Risk

SatisfiesContains applies the Contains predicate on the "satisfies" field.

func SatisfiesContainsFold

func SatisfiesContainsFold(v string) predicate.Risk

SatisfiesContainsFold applies the ContainsFold predicate on the "satisfies" field.

func SatisfiesEQ

func SatisfiesEQ(v string) predicate.Risk

SatisfiesEQ applies the EQ predicate on the "satisfies" field.

func SatisfiesEqualFold

func SatisfiesEqualFold(v string) predicate.Risk

SatisfiesEqualFold applies the EqualFold predicate on the "satisfies" field.

func SatisfiesGT

func SatisfiesGT(v string) predicate.Risk

SatisfiesGT applies the GT predicate on the "satisfies" field.

func SatisfiesGTE

func SatisfiesGTE(v string) predicate.Risk

SatisfiesGTE applies the GTE predicate on the "satisfies" field.

func SatisfiesHasPrefix

func SatisfiesHasPrefix(v string) predicate.Risk

SatisfiesHasPrefix applies the HasPrefix predicate on the "satisfies" field.

func SatisfiesHasSuffix

func SatisfiesHasSuffix(v string) predicate.Risk

SatisfiesHasSuffix applies the HasSuffix predicate on the "satisfies" field.

func SatisfiesIn

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

SatisfiesIn applies the In predicate on the "satisfies" field.

func SatisfiesIsNil

func SatisfiesIsNil() predicate.Risk

SatisfiesIsNil applies the IsNil predicate on the "satisfies" field.

func SatisfiesLT

func SatisfiesLT(v string) predicate.Risk

SatisfiesLT applies the LT predicate on the "satisfies" field.

func SatisfiesLTE

func SatisfiesLTE(v string) predicate.Risk

SatisfiesLTE applies the LTE predicate on the "satisfies" field.

func SatisfiesNEQ

func SatisfiesNEQ(v string) predicate.Risk

SatisfiesNEQ applies the NEQ predicate on the "satisfies" field.

func SatisfiesNotIn

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

SatisfiesNotIn applies the NotIn predicate on the "satisfies" field.

func SatisfiesNotNil

func SatisfiesNotNil() predicate.Risk

SatisfiesNotNil applies the NotNil predicate on the "satisfies" field.

func Status

func Status(v string) predicate.Risk

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

func StatusContains

func StatusContains(v string) predicate.Risk

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

func StatusContainsFold

func StatusContainsFold(v string) predicate.Risk

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

func StatusEQ

func StatusEQ(v string) predicate.Risk

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

func StatusEqualFold

func StatusEqualFold(v string) predicate.Risk

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

func StatusGT

func StatusGT(v string) predicate.Risk

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

func StatusGTE

func StatusGTE(v string) predicate.Risk

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

func StatusHasPrefix

func StatusHasPrefix(v string) predicate.Risk

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

func StatusHasSuffix

func StatusHasSuffix(v string) predicate.Risk

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

func StatusIn

func StatusIn(vs ...string) 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 StatusLT

func StatusLT(v string) predicate.Risk

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

func StatusLTE

func StatusLTE(v string) predicate.Risk

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

func StatusNEQ

func StatusNEQ(v string) predicate.Risk

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

func StatusNotIn

func StatusNotIn(vs ...string) 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 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

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

ByActionplans orders the results by actionplans terms.

func ByActionplansCount

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

ByActionplansCount orders the results by actionplans count.

func ByBusinessCosts

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

ByBusinessCosts orders the results by the business_costs field.

func ByControl

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

ByControl orders the results by control terms.

func ByControlCount

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

ByControlCount orders the results by control 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 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 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 ByLikelihood

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

ByLikelihood orders the results by the likelihood field.

func ByMappingID

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

ByMappingID orders the results by the mapping_id 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 ByProcedure

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

ByProcedure orders the results by procedure terms.

func ByProcedureCount

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

ByProcedureCount orders the results by procedure count.

func ByProgram added in v0.3.5

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

ByProgram orders the results by program terms.

func ByProgramCount added in v0.3.5

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

ByProgramCount orders the results by program count.

func ByRiskType

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

ByRiskType orders the results by the risk_type field.

func BySatisfies

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

BySatisfies orders the results by the satisfies field.

func ByStatus

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

ByStatus orders the results by the status field.

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