Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Risk) predicate.Risk
- func BusinessCosts(v string) predicate.Risk
- func BusinessCostsContains(v string) predicate.Risk
- func BusinessCostsContainsFold(v string) predicate.Risk
- func BusinessCostsEQ(v string) predicate.Risk
- func BusinessCostsEqualFold(v string) predicate.Risk
- func BusinessCostsGT(v string) predicate.Risk
- func BusinessCostsGTE(v string) predicate.Risk
- func BusinessCostsHasPrefix(v string) predicate.Risk
- func BusinessCostsHasSuffix(v string) predicate.Risk
- func BusinessCostsIn(vs ...string) predicate.Risk
- func BusinessCostsIsNil() predicate.Risk
- func BusinessCostsLT(v string) predicate.Risk
- func BusinessCostsLTE(v string) predicate.Risk
- func BusinessCostsNEQ(v string) predicate.Risk
- func BusinessCostsNotIn(vs ...string) predicate.Risk
- func BusinessCostsNotNil() predicate.Risk
- func CreatedAt(v time.Time) predicate.Risk
- func CreatedAtEQ(v time.Time) predicate.Risk
- func CreatedAtGT(v time.Time) predicate.Risk
- func CreatedAtGTE(v time.Time) predicate.Risk
- func CreatedAtIn(vs ...time.Time) predicate.Risk
- func CreatedAtIsNil() predicate.Risk
- func CreatedAtLT(v time.Time) predicate.Risk
- func CreatedAtLTE(v time.Time) predicate.Risk
- func CreatedAtNEQ(v time.Time) predicate.Risk
- func CreatedAtNotIn(vs ...time.Time) predicate.Risk
- func CreatedAtNotNil() predicate.Risk
- func CreatedBy(v string) predicate.Risk
- func CreatedByContains(v string) predicate.Risk
- func CreatedByContainsFold(v string) predicate.Risk
- func CreatedByEQ(v string) predicate.Risk
- func CreatedByEqualFold(v string) predicate.Risk
- func CreatedByGT(v string) predicate.Risk
- func CreatedByGTE(v string) predicate.Risk
- func CreatedByHasPrefix(v string) predicate.Risk
- func CreatedByHasSuffix(v string) predicate.Risk
- func CreatedByIn(vs ...string) predicate.Risk
- func CreatedByIsNil() predicate.Risk
- func CreatedByLT(v string) predicate.Risk
- func CreatedByLTE(v string) predicate.Risk
- func CreatedByNEQ(v string) predicate.Risk
- func CreatedByNotIn(vs ...string) predicate.Risk
- func CreatedByNotNil() predicate.Risk
- func DeletedAt(v time.Time) predicate.Risk
- func DeletedAtEQ(v time.Time) predicate.Risk
- func DeletedAtGT(v time.Time) predicate.Risk
- func DeletedAtGTE(v time.Time) predicate.Risk
- func DeletedAtIn(vs ...time.Time) predicate.Risk
- func DeletedAtIsNil() predicate.Risk
- func DeletedAtLT(v time.Time) predicate.Risk
- func DeletedAtLTE(v time.Time) predicate.Risk
- func DeletedAtNEQ(v time.Time) predicate.Risk
- func DeletedAtNotIn(vs ...time.Time) predicate.Risk
- func DeletedAtNotNil() predicate.Risk
- func DeletedBy(v string) predicate.Risk
- func DeletedByContains(v string) predicate.Risk
- func DeletedByContainsFold(v string) predicate.Risk
- func DeletedByEQ(v string) predicate.Risk
- func DeletedByEqualFold(v string) predicate.Risk
- func DeletedByGT(v string) predicate.Risk
- func DeletedByGTE(v string) predicate.Risk
- func DeletedByHasPrefix(v string) predicate.Risk
- func DeletedByHasSuffix(v string) predicate.Risk
- func DeletedByIn(vs ...string) predicate.Risk
- func DeletedByIsNil() predicate.Risk
- func DeletedByLT(v string) predicate.Risk
- func DeletedByLTE(v string) predicate.Risk
- func DeletedByNEQ(v string) predicate.Risk
- func DeletedByNotIn(vs ...string) predicate.Risk
- func DeletedByNotNil() predicate.Risk
- func Description(v string) predicate.Risk
- func DescriptionContains(v string) predicate.Risk
- func DescriptionContainsFold(v string) predicate.Risk
- func DescriptionEQ(v string) predicate.Risk
- func DescriptionEqualFold(v string) predicate.Risk
- func DescriptionGT(v string) predicate.Risk
- func DescriptionGTE(v string) predicate.Risk
- func DescriptionHasPrefix(v string) predicate.Risk
- func DescriptionHasSuffix(v string) predicate.Risk
- func DescriptionIn(vs ...string) predicate.Risk
- func DescriptionIsNil() predicate.Risk
- func DescriptionLT(v string) predicate.Risk
- func DescriptionLTE(v string) predicate.Risk
- func DescriptionNEQ(v string) predicate.Risk
- func DescriptionNotIn(vs ...string) predicate.Risk
- func DescriptionNotNil() predicate.Risk
- func DetailsIsNil() predicate.Risk
- func DetailsNotNil() predicate.Risk
- func HasActionplans() predicate.Risk
- func HasActionplansWith(preds ...predicate.ActionPlan) predicate.Risk
- func HasControl() predicate.Risk
- func HasControlWith(preds ...predicate.Control) predicate.Risk
- func HasProcedure() predicate.Risk
- func HasProcedureWith(preds ...predicate.Procedure) predicate.Risk
- func HasProgram() predicate.Risk
- func HasProgramWith(preds ...predicate.Program) predicate.Risk
- func ID(id string) predicate.Risk
- func IDContainsFold(id string) predicate.Risk
- func IDEQ(id string) predicate.Risk
- func IDEqualFold(id string) predicate.Risk
- func IDGT(id string) predicate.Risk
- func IDGTE(id string) predicate.Risk
- func IDIn(ids ...string) predicate.Risk
- func IDLT(id string) predicate.Risk
- func IDLTE(id string) predicate.Risk
- func IDNEQ(id string) predicate.Risk
- func IDNotIn(ids ...string) predicate.Risk
- func ImpactEQ(v enums.RiskImpact) predicate.Risk
- func ImpactIn(vs ...enums.RiskImpact) predicate.Risk
- func ImpactIsNil() predicate.Risk
- func ImpactNEQ(v enums.RiskImpact) predicate.Risk
- func ImpactNotIn(vs ...enums.RiskImpact) predicate.Risk
- func ImpactNotNil() predicate.Risk
- func ImpactValidator(i enums.RiskImpact) error
- func LikelihoodEQ(v enums.RiskLikelihood) predicate.Risk
- func LikelihoodIn(vs ...enums.RiskLikelihood) predicate.Risk
- func LikelihoodIsNil() predicate.Risk
- func LikelihoodNEQ(v enums.RiskLikelihood) predicate.Risk
- func LikelihoodNotIn(vs ...enums.RiskLikelihood) predicate.Risk
- func LikelihoodNotNil() predicate.Risk
- func LikelihoodValidator(l enums.RiskLikelihood) error
- func MappingID(v string) predicate.Risk
- func MappingIDContains(v string) predicate.Risk
- func MappingIDContainsFold(v string) predicate.Risk
- func MappingIDEQ(v string) predicate.Risk
- func MappingIDEqualFold(v string) predicate.Risk
- func MappingIDGT(v string) predicate.Risk
- func MappingIDGTE(v string) predicate.Risk
- func MappingIDHasPrefix(v string) predicate.Risk
- func MappingIDHasSuffix(v string) predicate.Risk
- func MappingIDIn(vs ...string) predicate.Risk
- func MappingIDLT(v string) predicate.Risk
- func MappingIDLTE(v string) predicate.Risk
- func MappingIDNEQ(v string) predicate.Risk
- func MappingIDNotIn(vs ...string) predicate.Risk
- func Mitigation(v string) predicate.Risk
- func MitigationContains(v string) predicate.Risk
- func MitigationContainsFold(v string) predicate.Risk
- func MitigationEQ(v string) predicate.Risk
- func MitigationEqualFold(v string) predicate.Risk
- func MitigationGT(v string) predicate.Risk
- func MitigationGTE(v string) predicate.Risk
- func MitigationHasPrefix(v string) predicate.Risk
- func MitigationHasSuffix(v string) predicate.Risk
- func MitigationIn(vs ...string) predicate.Risk
- func MitigationIsNil() predicate.Risk
- func MitigationLT(v string) predicate.Risk
- func MitigationLTE(v string) predicate.Risk
- func MitigationNEQ(v string) predicate.Risk
- func MitigationNotIn(vs ...string) predicate.Risk
- func MitigationNotNil() predicate.Risk
- func Name(v string) predicate.Risk
- func NameContains(v string) predicate.Risk
- func NameContainsFold(v string) predicate.Risk
- func NameEQ(v string) predicate.Risk
- func NameEqualFold(v string) predicate.Risk
- func NameGT(v string) predicate.Risk
- func NameGTE(v string) predicate.Risk
- func NameHasPrefix(v string) predicate.Risk
- func NameHasSuffix(v string) predicate.Risk
- func NameIn(vs ...string) predicate.Risk
- func NameLT(v string) predicate.Risk
- func NameLTE(v string) predicate.Risk
- func NameNEQ(v string) predicate.Risk
- func NameNotIn(vs ...string) predicate.Risk
- func Not(p predicate.Risk) predicate.Risk
- func Or(predicates ...predicate.Risk) predicate.Risk
- func RiskType(v string) predicate.Risk
- func RiskTypeContains(v string) predicate.Risk
- func RiskTypeContainsFold(v string) predicate.Risk
- func RiskTypeEQ(v string) predicate.Risk
- func RiskTypeEqualFold(v string) predicate.Risk
- func RiskTypeGT(v string) predicate.Risk
- func RiskTypeGTE(v string) predicate.Risk
- func RiskTypeHasPrefix(v string) predicate.Risk
- func RiskTypeHasSuffix(v string) predicate.Risk
- func RiskTypeIn(vs ...string) predicate.Risk
- func RiskTypeIsNil() predicate.Risk
- func RiskTypeLT(v string) predicate.Risk
- func RiskTypeLTE(v string) predicate.Risk
- func RiskTypeNEQ(v string) predicate.Risk
- func RiskTypeNotIn(vs ...string) predicate.Risk
- func RiskTypeNotNil() predicate.Risk
- func Satisfies(v string) predicate.Risk
- func SatisfiesContains(v string) predicate.Risk
- func SatisfiesContainsFold(v string) predicate.Risk
- func SatisfiesEQ(v string) predicate.Risk
- func SatisfiesEqualFold(v string) predicate.Risk
- func SatisfiesGT(v string) predicate.Risk
- func SatisfiesGTE(v string) predicate.Risk
- func SatisfiesHasPrefix(v string) predicate.Risk
- func SatisfiesHasSuffix(v string) predicate.Risk
- func SatisfiesIn(vs ...string) predicate.Risk
- func SatisfiesIsNil() predicate.Risk
- func SatisfiesLT(v string) predicate.Risk
- func SatisfiesLTE(v string) predicate.Risk
- func SatisfiesNEQ(v string) predicate.Risk
- func SatisfiesNotIn(vs ...string) predicate.Risk
- func SatisfiesNotNil() predicate.Risk
- func Status(v string) predicate.Risk
- func StatusContains(v string) predicate.Risk
- func StatusContainsFold(v string) predicate.Risk
- func StatusEQ(v string) predicate.Risk
- func StatusEqualFold(v string) predicate.Risk
- func StatusGT(v string) predicate.Risk
- func StatusGTE(v string) predicate.Risk
- func StatusHasPrefix(v string) predicate.Risk
- func StatusHasSuffix(v string) predicate.Risk
- func StatusIn(vs ...string) predicate.Risk
- func StatusIsNil() predicate.Risk
- func StatusLT(v string) predicate.Risk
- func StatusLTE(v string) predicate.Risk
- func StatusNEQ(v string) predicate.Risk
- func StatusNotIn(vs ...string) predicate.Risk
- func StatusNotNil() predicate.Risk
- func TagsIsNil() predicate.Risk
- func TagsNotNil() predicate.Risk
- func UpdatedAt(v time.Time) predicate.Risk
- func UpdatedAtEQ(v time.Time) predicate.Risk
- func UpdatedAtGT(v time.Time) predicate.Risk
- func UpdatedAtGTE(v time.Time) predicate.Risk
- func UpdatedAtIn(vs ...time.Time) predicate.Risk
- func UpdatedAtIsNil() predicate.Risk
- func UpdatedAtLT(v time.Time) predicate.Risk
- func UpdatedAtLTE(v time.Time) predicate.Risk
- func UpdatedAtNEQ(v time.Time) predicate.Risk
- func UpdatedAtNotIn(vs ...time.Time) predicate.Risk
- func UpdatedAtNotNil() predicate.Risk
- func UpdatedBy(v string) predicate.Risk
- func UpdatedByContains(v string) predicate.Risk
- func UpdatedByContainsFold(v string) predicate.Risk
- func UpdatedByEQ(v string) predicate.Risk
- func UpdatedByEqualFold(v string) predicate.Risk
- func UpdatedByGT(v string) predicate.Risk
- func UpdatedByGTE(v string) predicate.Risk
- func UpdatedByHasPrefix(v string) predicate.Risk
- func UpdatedByHasSuffix(v string) predicate.Risk
- func UpdatedByIn(vs ...string) predicate.Risk
- func UpdatedByIsNil() predicate.Risk
- func UpdatedByLT(v string) predicate.Risk
- func UpdatedByLTE(v string) predicate.Risk
- func UpdatedByNEQ(v string) predicate.Risk
- func UpdatedByNotIn(vs ...string) predicate.Risk
- func UpdatedByNotNil() predicate.Risk
- func ValidColumn(column string) bool
- type OrderOption
- func ByActionplans(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByActionplansCount(opts ...sql.OrderTermOption) OrderOption
- func ByBusinessCosts(opts ...sql.OrderTermOption) OrderOption
- func ByControl(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByControlCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImpact(opts ...sql.OrderTermOption) OrderOption
- func ByLikelihood(opts ...sql.OrderTermOption) OrderOption
- func ByMappingID(opts ...sql.OrderTermOption) OrderOption
- func ByMitigation(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByProcedure(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProcedureCount(opts ...sql.OrderTermOption) OrderOption
- func ByProgram(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProgramCount(opts ...sql.OrderTermOption) OrderOption
- func ByRiskType(opts ...sql.OrderTermOption) OrderOption
- func BySatisfies(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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"} )
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"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldDeletedAt, FieldDeletedBy, FieldMappingID, FieldTags, FieldName, FieldDescription, FieldStatus, FieldRiskType, FieldBusinessCosts, FieldImpact, FieldLikelihood, FieldMitigation, FieldSatisfies, FieldDetails, }
Columns holds all SQL columns for risk fields.
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 BusinessCosts ¶
BusinessCosts applies equality check predicate on the "business_costs" field. It's identical to BusinessCostsEQ.
func BusinessCostsContains ¶
BusinessCostsContains applies the Contains predicate on the "business_costs" field.
func BusinessCostsContainsFold ¶
BusinessCostsContainsFold applies the ContainsFold predicate on the "business_costs" field.
func BusinessCostsEQ ¶
BusinessCostsEQ applies the EQ predicate on the "business_costs" field.
func BusinessCostsEqualFold ¶
BusinessCostsEqualFold applies the EqualFold predicate on the "business_costs" field.
func BusinessCostsGT ¶
BusinessCostsGT applies the GT predicate on the "business_costs" field.
func BusinessCostsGTE ¶
BusinessCostsGTE applies the GTE predicate on the "business_costs" field.
func BusinessCostsHasPrefix ¶
BusinessCostsHasPrefix applies the HasPrefix predicate on the "business_costs" field.
func BusinessCostsHasSuffix ¶
BusinessCostsHasSuffix applies the HasSuffix predicate on the "business_costs" field.
func BusinessCostsIn ¶
BusinessCostsIn applies the In predicate on the "business_costs" field.
func BusinessCostsIsNil ¶
BusinessCostsIsNil applies the IsNil predicate on the "business_costs" field.
func BusinessCostsLT ¶
BusinessCostsLT applies the LT predicate on the "business_costs" field.
func BusinessCostsLTE ¶
BusinessCostsLTE applies the LTE predicate on the "business_costs" field.
func BusinessCostsNEQ ¶
BusinessCostsNEQ applies the NEQ predicate on the "business_costs" field.
func BusinessCostsNotIn ¶
BusinessCostsNotIn applies the NotIn predicate on the "business_costs" field.
func BusinessCostsNotNil ¶
BusinessCostsNotNil applies the NotNil predicate on the "business_costs" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func DetailsIsNil ¶
DetailsIsNil applies the IsNil predicate on the "details" field.
func DetailsNotNil ¶
DetailsNotNil applies the NotNil predicate on the "details" field.
func HasActionplans ¶
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 ¶
HasControl applies the HasEdge predicate on the "control" edge.
func HasControlWith ¶
HasControlWith applies the HasEdge predicate on the "control" edge with a given conditions (other predicates).
func HasProcedure ¶
HasProcedure applies the HasEdge predicate on the "procedure" edge.
func HasProcedureWith ¶
HasProcedureWith applies the HasEdge predicate on the "procedure" edge with a given conditions (other predicates).
func HasProgram ¶ added in v0.3.5
HasProgram applies the HasEdge predicate on the "program" edge.
func HasProgramWith ¶ added in v0.3.5
HasProgramWith applies the HasEdge predicate on the "program" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold 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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingIDContains ¶
MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContainsFold ¶
MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDEQ ¶
MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEqualFold ¶
MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDGT ¶
MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGTE ¶
MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDHasPrefix ¶
MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasSuffix ¶
MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDIn ¶
MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDLT ¶
MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLTE ¶
MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDNEQ ¶
MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNotIn ¶
MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.
func Mitigation ¶
Mitigation applies equality check predicate on the "mitigation" field. It's identical to MitigationEQ.
func MitigationContains ¶
MitigationContains applies the Contains predicate on the "mitigation" field.
func MitigationContainsFold ¶
MitigationContainsFold applies the ContainsFold predicate on the "mitigation" field.
func MitigationEQ ¶
MitigationEQ applies the EQ predicate on the "mitigation" field.
func MitigationEqualFold ¶
MitigationEqualFold applies the EqualFold predicate on the "mitigation" field.
func MitigationGT ¶
MitigationGT applies the GT predicate on the "mitigation" field.
func MitigationGTE ¶
MitigationGTE applies the GTE predicate on the "mitigation" field.
func MitigationHasPrefix ¶
MitigationHasPrefix applies the HasPrefix predicate on the "mitigation" field.
func MitigationHasSuffix ¶
MitigationHasSuffix applies the HasSuffix predicate on the "mitigation" field.
func MitigationIn ¶
MitigationIn applies the In predicate on the "mitigation" field.
func MitigationIsNil ¶
MitigationIsNil applies the IsNil predicate on the "mitigation" field.
func MitigationLT ¶
MitigationLT applies the LT predicate on the "mitigation" field.
func MitigationLTE ¶
MitigationLTE applies the LTE predicate on the "mitigation" field.
func MitigationNEQ ¶
MitigationNEQ applies the NEQ predicate on the "mitigation" field.
func MitigationNotIn ¶
MitigationNotIn applies the NotIn predicate on the "mitigation" field.
func MitigationNotNil ¶
MitigationNotNil applies the NotNil predicate on the "mitigation" field.
func NameContains ¶
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEqualFold ¶
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameHasPrefix ¶
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func RiskType ¶
RiskType applies equality check predicate on the "risk_type" field. It's identical to RiskTypeEQ.
func RiskTypeContains ¶
RiskTypeContains applies the Contains predicate on the "risk_type" field.
func RiskTypeContainsFold ¶
RiskTypeContainsFold applies the ContainsFold predicate on the "risk_type" field.
func RiskTypeEQ ¶
RiskTypeEQ applies the EQ predicate on the "risk_type" field.
func RiskTypeEqualFold ¶
RiskTypeEqualFold applies the EqualFold predicate on the "risk_type" field.
func RiskTypeGT ¶
RiskTypeGT applies the GT predicate on the "risk_type" field.
func RiskTypeGTE ¶
RiskTypeGTE applies the GTE predicate on the "risk_type" field.
func RiskTypeHasPrefix ¶
RiskTypeHasPrefix applies the HasPrefix predicate on the "risk_type" field.
func RiskTypeHasSuffix ¶
RiskTypeHasSuffix applies the HasSuffix predicate on the "risk_type" field.
func RiskTypeIn ¶
RiskTypeIn applies the In predicate on the "risk_type" field.
func RiskTypeIsNil ¶
RiskTypeIsNil applies the IsNil predicate on the "risk_type" field.
func RiskTypeLT ¶
RiskTypeLT applies the LT predicate on the "risk_type" field.
func RiskTypeLTE ¶
RiskTypeLTE applies the LTE predicate on the "risk_type" field.
func RiskTypeNEQ ¶
RiskTypeNEQ applies the NEQ predicate on the "risk_type" field.
func RiskTypeNotIn ¶
RiskTypeNotIn applies the NotIn predicate on the "risk_type" field.
func RiskTypeNotNil ¶
RiskTypeNotNil applies the NotNil predicate on the "risk_type" field.
func Satisfies ¶
Satisfies applies equality check predicate on the "satisfies" field. It's identical to SatisfiesEQ.
func SatisfiesContains ¶
SatisfiesContains applies the Contains predicate on the "satisfies" field.
func SatisfiesContainsFold ¶
SatisfiesContainsFold applies the ContainsFold predicate on the "satisfies" field.
func SatisfiesEQ ¶
SatisfiesEQ applies the EQ predicate on the "satisfies" field.
func SatisfiesEqualFold ¶
SatisfiesEqualFold applies the EqualFold predicate on the "satisfies" field.
func SatisfiesGT ¶
SatisfiesGT applies the GT predicate on the "satisfies" field.
func SatisfiesGTE ¶
SatisfiesGTE applies the GTE predicate on the "satisfies" field.
func SatisfiesHasPrefix ¶
SatisfiesHasPrefix applies the HasPrefix predicate on the "satisfies" field.
func SatisfiesHasSuffix ¶
SatisfiesHasSuffix applies the HasSuffix predicate on the "satisfies" field.
func SatisfiesIn ¶
SatisfiesIn applies the In predicate on the "satisfies" field.
func SatisfiesIsNil ¶
SatisfiesIsNil applies the IsNil predicate on the "satisfies" field.
func SatisfiesLT ¶
SatisfiesLT applies the LT predicate on the "satisfies" field.
func SatisfiesLTE ¶
SatisfiesLTE applies the LTE predicate on the "satisfies" field.
func SatisfiesNEQ ¶
SatisfiesNEQ applies the NEQ predicate on the "satisfies" field.
func SatisfiesNotIn ¶
SatisfiesNotIn applies the NotIn predicate on the "satisfies" field.
func SatisfiesNotNil ¶
SatisfiesNotNil applies the NotNil predicate on the "satisfies" field.
func Status ¶
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEqualFold ¶
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusHasPrefix ¶
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusIsNil ¶
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
StatusNotNil applies the NotNil predicate on the "status" field.
func TagsNotNil ¶
TagsNotNil applies the NotNil predicate on the "tags" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.