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 Category(v string) predicate.Risk
- func CategoryContains(v string) predicate.Risk
- func CategoryContainsFold(v string) predicate.Risk
- func CategoryEQ(v string) predicate.Risk
- func CategoryEqualFold(v string) predicate.Risk
- func CategoryGT(v string) predicate.Risk
- func CategoryGTE(v string) predicate.Risk
- func CategoryHasPrefix(v string) predicate.Risk
- func CategoryHasSuffix(v string) predicate.Risk
- func CategoryIn(vs ...string) predicate.Risk
- func CategoryIsNil() predicate.Risk
- func CategoryLT(v string) predicate.Risk
- func CategoryLTE(v string) predicate.Risk
- func CategoryNEQ(v string) predicate.Risk
- func CategoryNotIn(vs ...string) predicate.Risk
- func CategoryNotNil() 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 DelegateID(v string) predicate.Risk
- func DelegateIDContains(v string) predicate.Risk
- func DelegateIDContainsFold(v string) predicate.Risk
- func DelegateIDEQ(v string) predicate.Risk
- func DelegateIDEqualFold(v string) predicate.Risk
- func DelegateIDGT(v string) predicate.Risk
- func DelegateIDGTE(v string) predicate.Risk
- func DelegateIDHasPrefix(v string) predicate.Risk
- func DelegateIDHasSuffix(v string) predicate.Risk
- func DelegateIDIn(vs ...string) predicate.Risk
- func DelegateIDIsNil() predicate.Risk
- func DelegateIDLT(v string) predicate.Risk
- func DelegateIDLTE(v string) predicate.Risk
- func DelegateIDNEQ(v string) predicate.Risk
- func DelegateIDNotIn(vs ...string) predicate.Risk
- func DelegateIDNotNil() 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 Details(v string) predicate.Risk
- func DetailsContains(v string) predicate.Risk
- func DetailsContainsFold(v string) predicate.Risk
- func DetailsEQ(v string) predicate.Risk
- func DetailsEqualFold(v string) predicate.Risk
- func DetailsGT(v string) predicate.Risk
- func DetailsGTE(v string) predicate.Risk
- func DetailsHasPrefix(v string) predicate.Risk
- func DetailsHasSuffix(v string) predicate.Risk
- func DetailsIn(vs ...string) predicate.Risk
- func DetailsIsNil() predicate.Risk
- func DetailsLT(v string) predicate.Risk
- func DetailsLTE(v string) predicate.Risk
- func DetailsNEQ(v string) predicate.Risk
- func DetailsNotIn(vs ...string) predicate.Risk
- func DetailsNotNil() predicate.Risk
- func DisplayID(v string) predicate.Risk
- func DisplayIDContains(v string) predicate.Risk
- func DisplayIDContainsFold(v string) predicate.Risk
- func DisplayIDEQ(v string) predicate.Risk
- func DisplayIDEqualFold(v string) predicate.Risk
- func DisplayIDGT(v string) predicate.Risk
- func DisplayIDGTE(v string) predicate.Risk
- func DisplayIDHasPrefix(v string) predicate.Risk
- func DisplayIDHasSuffix(v string) predicate.Risk
- func DisplayIDIn(vs ...string) predicate.Risk
- func DisplayIDLT(v string) predicate.Risk
- func DisplayIDLTE(v string) predicate.Risk
- func DisplayIDNEQ(v string) predicate.Risk
- func DisplayIDNotIn(vs ...string) predicate.Risk
- func HasActionPlans() predicate.Risk
- func HasActionPlansWith(preds ...predicate.ActionPlan) predicate.Risk
- func HasAssets() predicate.Risk
- func HasAssetsWith(preds ...predicate.Asset) predicate.Risk
- func HasBlockedGroups() predicate.Risk
- func HasBlockedGroupsWith(preds ...predicate.Group) predicate.Risk
- func HasControls() predicate.Risk
- func HasControlsWith(preds ...predicate.Control) predicate.Risk
- func HasDelegate() predicate.Risk
- func HasDelegateWith(preds ...predicate.Group) predicate.Risk
- func HasEditors() predicate.Risk
- func HasEditorsWith(preds ...predicate.Group) predicate.Risk
- func HasEntities() predicate.Risk
- func HasEntitiesWith(preds ...predicate.Entity) predicate.Risk
- func HasInternalPolicies() predicate.Risk
- func HasInternalPoliciesWith(preds ...predicate.InternalPolicy) predicate.Risk
- func HasOwner() predicate.Risk
- func HasOwnerWith(preds ...predicate.Organization) predicate.Risk
- func HasProcedures() predicate.Risk
- func HasProceduresWith(preds ...predicate.Procedure) predicate.Risk
- func HasPrograms() predicate.Risk
- func HasProgramsWith(preds ...predicate.Program) predicate.Risk
- func HasScans() predicate.Risk
- func HasScansWith(preds ...predicate.Scan) predicate.Risk
- func HasStakeholder() predicate.Risk
- func HasStakeholderWith(preds ...predicate.Group) predicate.Risk
- func HasSubcontrols() predicate.Risk
- func HasSubcontrolsWith(preds ...predicate.Subcontrol) predicate.Risk
- func HasTasks() predicate.Risk
- func HasTasksWith(preds ...predicate.Task) predicate.Risk
- func HasViewers() predicate.Risk
- func HasViewersWith(preds ...predicate.Group) 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 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 OwnerID(v string) predicate.Risk
- func OwnerIDContains(v string) predicate.Risk
- func OwnerIDContainsFold(v string) predicate.Risk
- func OwnerIDEQ(v string) predicate.Risk
- func OwnerIDEqualFold(v string) predicate.Risk
- func OwnerIDGT(v string) predicate.Risk
- func OwnerIDGTE(v string) predicate.Risk
- func OwnerIDHasPrefix(v string) predicate.Risk
- func OwnerIDHasSuffix(v string) predicate.Risk
- func OwnerIDIn(vs ...string) predicate.Risk
- func OwnerIDIsNil() predicate.Risk
- func OwnerIDLT(v string) predicate.Risk
- func OwnerIDLTE(v string) predicate.Risk
- func OwnerIDNEQ(v string) predicate.Risk
- func OwnerIDNotIn(vs ...string) predicate.Risk
- func OwnerIDNotNil() 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 Score(v int) predicate.Risk
- func ScoreEQ(v int) predicate.Risk
- func ScoreGT(v int) predicate.Risk
- func ScoreGTE(v int) predicate.Risk
- func ScoreIn(vs ...int) predicate.Risk
- func ScoreIsNil() predicate.Risk
- func ScoreLT(v int) predicate.Risk
- func ScoreLTE(v int) predicate.Risk
- func ScoreNEQ(v int) predicate.Risk
- func ScoreNotIn(vs ...int) predicate.Risk
- func ScoreNotNil() predicate.Risk
- func StakeholderID(v string) predicate.Risk
- func StakeholderIDContains(v string) predicate.Risk
- func StakeholderIDContainsFold(v string) predicate.Risk
- func StakeholderIDEQ(v string) predicate.Risk
- func StakeholderIDEqualFold(v string) predicate.Risk
- func StakeholderIDGT(v string) predicate.Risk
- func StakeholderIDGTE(v string) predicate.Risk
- func StakeholderIDHasPrefix(v string) predicate.Risk
- func StakeholderIDHasSuffix(v string) predicate.Risk
- func StakeholderIDIn(vs ...string) predicate.Risk
- func StakeholderIDIsNil() predicate.Risk
- func StakeholderIDLT(v string) predicate.Risk
- func StakeholderIDLTE(v string) predicate.Risk
- func StakeholderIDNEQ(v string) predicate.Risk
- func StakeholderIDNotIn(vs ...string) predicate.Risk
- func StakeholderIDNotNil() predicate.Risk
- func StatusEQ(v enums.RiskStatus) predicate.Risk
- func StatusIn(vs ...enums.RiskStatus) predicate.Risk
- func StatusIsNil() predicate.Risk
- func StatusNEQ(v enums.RiskStatus) predicate.Risk
- func StatusNotIn(vs ...enums.RiskStatus) predicate.Risk
- func StatusNotNil() predicate.Risk
- func StatusValidator(s enums.RiskStatus) error
- 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 ByAssets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAssetsCount(opts ...sql.OrderTermOption) OrderOption
- func ByBlockedGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBlockedGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByBusinessCosts(opts ...sql.OrderTermOption) OrderOption
- func ByCategory(opts ...sql.OrderTermOption) OrderOption
- func ByControls(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByControlsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDelegateField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByDelegateID(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDetails(opts ...sql.OrderTermOption) OrderOption
- func ByDisplayID(opts ...sql.OrderTermOption) OrderOption
- func ByEditors(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEditorsCount(opts ...sql.OrderTermOption) OrderOption
- func ByEntities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEntitiesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByImpact(opts ...sql.OrderTermOption) OrderOption
- func ByInternalPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByInternalPoliciesCount(opts ...sql.OrderTermOption) OrderOption
- func ByLikelihood(opts ...sql.OrderTermOption) OrderOption
- func ByMitigation(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByProcedures(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProceduresCount(opts ...sql.OrderTermOption) OrderOption
- func ByPrograms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByProgramsCount(opts ...sql.OrderTermOption) OrderOption
- func ByRiskType(opts ...sql.OrderTermOption) OrderOption
- func ByScans(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByScansCount(opts ...sql.OrderTermOption) OrderOption
- func ByScore(opts ...sql.OrderTermOption) OrderOption
- func ByStakeholderField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByStakeholderID(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func BySubcontrols(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySubcontrolsCount(opts ...sql.OrderTermOption) OrderOption
- func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByTasksCount(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByViewers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByViewersCount(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" // 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" )
const DefaultImpact enums.RiskImpact = "MODERATE"
const DefaultLikelihood enums.RiskLikelihood = "LIKELY"
const DefaultStatus enums.RiskStatus = "OPEN"
Variables ¶
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"} )
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"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldDeletedAt, FieldDeletedBy, FieldDisplayID, FieldTags, FieldOwnerID, FieldName, FieldStatus, FieldRiskType, FieldCategory, FieldImpact, FieldLikelihood, FieldScore, FieldMitigation, FieldDetails, FieldBusinessCosts, FieldStakeholderID, FieldDelegateID, }
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 Category ¶ added in v0.7.5
Category applies equality check predicate on the "category" field. It's identical to CategoryEQ.
func CategoryContains ¶ added in v0.7.5
CategoryContains applies the Contains predicate on the "category" field.
func CategoryContainsFold ¶ added in v0.7.5
CategoryContainsFold applies the ContainsFold predicate on the "category" field.
func CategoryEQ ¶ added in v0.7.5
CategoryEQ applies the EQ predicate on the "category" field.
func CategoryEqualFold ¶ added in v0.7.5
CategoryEqualFold applies the EqualFold predicate on the "category" field.
func CategoryGT ¶ added in v0.7.5
CategoryGT applies the GT predicate on the "category" field.
func CategoryGTE ¶ added in v0.7.5
CategoryGTE applies the GTE predicate on the "category" field.
func CategoryHasPrefix ¶ added in v0.7.5
CategoryHasPrefix applies the HasPrefix predicate on the "category" field.
func CategoryHasSuffix ¶ added in v0.7.5
CategoryHasSuffix applies the HasSuffix predicate on the "category" field.
func CategoryIn ¶ added in v0.7.5
CategoryIn applies the In predicate on the "category" field.
func CategoryIsNil ¶ added in v0.7.5
CategoryIsNil applies the IsNil predicate on the "category" field.
func CategoryLT ¶ added in v0.7.5
CategoryLT applies the LT predicate on the "category" field.
func CategoryLTE ¶ added in v0.7.5
CategoryLTE applies the LTE predicate on the "category" field.
func CategoryNEQ ¶ added in v0.7.5
CategoryNEQ applies the NEQ predicate on the "category" field.
func CategoryNotIn ¶ added in v0.7.5
CategoryNotIn applies the NotIn predicate on the "category" field.
func CategoryNotNil ¶ added in v0.7.5
CategoryNotNil applies the NotNil predicate on the "category" 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 DelegateID ¶ added in v0.8.9
DelegateID applies equality check predicate on the "delegate_id" field. It's identical to DelegateIDEQ.
func DelegateIDContains ¶ added in v0.8.9
DelegateIDContains applies the Contains predicate on the "delegate_id" field.
func DelegateIDContainsFold ¶ added in v0.8.9
DelegateIDContainsFold applies the ContainsFold predicate on the "delegate_id" field.
func DelegateIDEQ ¶ added in v0.8.9
DelegateIDEQ applies the EQ predicate on the "delegate_id" field.
func DelegateIDEqualFold ¶ added in v0.8.9
DelegateIDEqualFold applies the EqualFold predicate on the "delegate_id" field.
func DelegateIDGT ¶ added in v0.8.9
DelegateIDGT applies the GT predicate on the "delegate_id" field.
func DelegateIDGTE ¶ added in v0.8.9
DelegateIDGTE applies the GTE predicate on the "delegate_id" field.
func DelegateIDHasPrefix ¶ added in v0.8.9
DelegateIDHasPrefix applies the HasPrefix predicate on the "delegate_id" field.
func DelegateIDHasSuffix ¶ added in v0.8.9
DelegateIDHasSuffix applies the HasSuffix predicate on the "delegate_id" field.
func DelegateIDIn ¶ added in v0.8.9
DelegateIDIn applies the In predicate on the "delegate_id" field.
func DelegateIDIsNil ¶ added in v0.8.9
DelegateIDIsNil applies the IsNil predicate on the "delegate_id" field.
func DelegateIDLT ¶ added in v0.8.9
DelegateIDLT applies the LT predicate on the "delegate_id" field.
func DelegateIDLTE ¶ added in v0.8.9
DelegateIDLTE applies the LTE predicate on the "delegate_id" field.
func DelegateIDNEQ ¶ added in v0.8.9
DelegateIDNEQ applies the NEQ predicate on the "delegate_id" field.
func DelegateIDNotIn ¶ added in v0.8.9
DelegateIDNotIn applies the NotIn predicate on the "delegate_id" field.
func DelegateIDNotNil ¶ added in v0.8.9
DelegateIDNotNil applies the NotNil predicate on the "delegate_id" 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 Details ¶ added in v0.7.5
Details applies equality check predicate on the "details" field. It's identical to DetailsEQ.
func DetailsContains ¶ added in v0.7.5
DetailsContains applies the Contains predicate on the "details" field.
func DetailsContainsFold ¶ added in v0.7.5
DetailsContainsFold applies the ContainsFold predicate on the "details" field.
func DetailsEqualFold ¶ added in v0.7.5
DetailsEqualFold applies the EqualFold predicate on the "details" field.
func DetailsGTE ¶ added in v0.7.5
DetailsGTE applies the GTE predicate on the "details" field.
func DetailsHasPrefix ¶ added in v0.7.5
DetailsHasPrefix applies the HasPrefix predicate on the "details" field.
func DetailsHasSuffix ¶ added in v0.7.5
DetailsHasSuffix applies the HasSuffix predicate on the "details" field.
func DetailsIsNil ¶
DetailsIsNil applies the IsNil predicate on the "details" field.
func DetailsLTE ¶ added in v0.7.5
DetailsLTE applies the LTE predicate on the "details" field.
func DetailsNEQ ¶ added in v0.7.5
DetailsNEQ applies the NEQ predicate on the "details" field.
func DetailsNotIn ¶ added in v0.7.5
DetailsNotIn applies the NotIn predicate on the "details" field.
func DetailsNotNil ¶
DetailsNotNil applies the NotNil predicate on the "details" field.
func DisplayID ¶ added in v0.6.11
DisplayID applies equality check predicate on the "display_id" field. It's identical to DisplayIDEQ.
func DisplayIDContains ¶ added in v0.6.11
DisplayIDContains applies the Contains predicate on the "display_id" field.
func DisplayIDContainsFold ¶ added in v0.6.11
DisplayIDContainsFold applies the ContainsFold predicate on the "display_id" field.
func DisplayIDEQ ¶ added in v0.6.11
DisplayIDEQ applies the EQ predicate on the "display_id" field.
func DisplayIDEqualFold ¶ added in v0.6.11
DisplayIDEqualFold applies the EqualFold predicate on the "display_id" field.
func DisplayIDGT ¶ added in v0.6.11
DisplayIDGT applies the GT predicate on the "display_id" field.
func DisplayIDGTE ¶ added in v0.6.11
DisplayIDGTE applies the GTE predicate on the "display_id" field.
func DisplayIDHasPrefix ¶ added in v0.6.11
DisplayIDHasPrefix applies the HasPrefix predicate on the "display_id" field.
func DisplayIDHasSuffix ¶ added in v0.6.11
DisplayIDHasSuffix applies the HasSuffix predicate on the "display_id" field.
func DisplayIDIn ¶ added in v0.6.11
DisplayIDIn applies the In predicate on the "display_id" field.
func DisplayIDLT ¶ added in v0.6.11
DisplayIDLT applies the LT predicate on the "display_id" field.
func DisplayIDLTE ¶ added in v0.6.11
DisplayIDLTE applies the LTE predicate on the "display_id" field.
func DisplayIDNEQ ¶ added in v0.6.11
DisplayIDNEQ applies the NEQ predicate on the "display_id" field.
func DisplayIDNotIn ¶ added in v0.6.11
DisplayIDNotIn applies the NotIn predicate on the "display_id" field.
func HasActionPlans ¶ added in v0.6.1
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 HasAssetsWith ¶ added in v0.19.0
HasAssetsWith applies the HasEdge predicate on the "assets" edge with a given conditions (other predicates).
func HasBlockedGroups ¶ added in v0.4.3
HasBlockedGroups applies the HasEdge predicate on the "blocked_groups" edge.
func HasBlockedGroupsWith ¶ added in v0.4.3
HasBlockedGroupsWith applies the HasEdge predicate on the "blocked_groups" edge with a given conditions (other predicates).
func HasControls ¶ added in v0.8.2
HasControls applies the HasEdge predicate on the "controls" edge.
func HasControlsWith ¶ added in v0.8.2
HasControlsWith applies the HasEdge predicate on the "controls" edge with a given conditions (other predicates).
func HasDelegate ¶ added in v0.7.5
HasDelegate applies the HasEdge predicate on the "delegate" edge.
func HasDelegateWith ¶ added in v0.7.5
HasDelegateWith applies the HasEdge predicate on the "delegate" edge with a given conditions (other predicates).
func HasEditors ¶ added in v0.4.3
HasEditors applies the HasEdge predicate on the "editors" edge.
func HasEditorsWith ¶ added in v0.4.3
HasEditorsWith applies the HasEdge predicate on the "editors" edge with a given conditions (other predicates).
func HasEntities ¶ added in v0.19.0
HasEntities applies the HasEdge predicate on the "entities" edge.
func HasEntitiesWith ¶ added in v0.19.0
HasEntitiesWith applies the HasEdge predicate on the "entities" edge with a given conditions (other predicates).
func HasInternalPolicies ¶ added in v0.10.5
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 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
HasProcedures applies the HasEdge predicate on the "procedures" edge.
func HasProceduresWith ¶ added in v0.8.2
HasProceduresWith applies the HasEdge predicate on the "procedures" edge with a given conditions (other predicates).
func HasPrograms ¶ added in v0.4.4
HasPrograms applies the HasEdge predicate on the "programs" edge.
func HasProgramsWith ¶ added in v0.4.4
HasProgramsWith applies the HasEdge predicate on the "programs" edge with a given conditions (other predicates).
func HasScansWith ¶ added in v0.19.0
HasScansWith applies the HasEdge predicate on the "scans" edge with a given conditions (other predicates).
func HasStakeholder ¶ added in v0.7.5
HasStakeholder applies the HasEdge predicate on the "stakeholder" edge.
func HasStakeholderWith ¶ added in v0.7.5
HasStakeholderWith applies the HasEdge predicate on the "stakeholder" edge with a given conditions (other predicates).
func HasSubcontrols ¶ added in v0.10.5
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 HasTasksWith ¶ added in v0.13.1
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func HasViewers ¶ added in v0.4.3
HasViewers applies the HasEdge predicate on the "viewers" edge.
func HasViewersWith ¶ added in v0.4.3
HasViewersWith applies the HasEdge predicate on the "viewers" 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 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 OwnerID ¶ added in v0.4.3
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶ added in v0.4.3
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶ added in v0.4.3
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEqualFold ¶ added in v0.4.3
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGTE ¶ added in v0.4.3
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶ added in v0.4.3
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶ added in v0.4.3
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDIsNil ¶ added in v0.7.1
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDLTE ¶ added in v0.4.3
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶ added in v0.4.3
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶ added in v0.4.3
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶ added in v0.7.1
OwnerIDNotNil applies the NotNil predicate on the "owner_id" 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 Score ¶ added in v0.7.5
Score applies equality check predicate on the "score" field. It's identical to ScoreEQ.
func ScoreIsNil ¶ added in v0.7.5
ScoreIsNil applies the IsNil predicate on the "score" field.
func ScoreNotIn ¶ added in v0.7.5
ScoreNotIn applies the NotIn predicate on the "score" field.
func ScoreNotNil ¶ added in v0.7.5
ScoreNotNil applies the NotNil predicate on the "score" field.
func StakeholderID ¶ added in v0.8.9
StakeholderID applies equality check predicate on the "stakeholder_id" field. It's identical to StakeholderIDEQ.
func StakeholderIDContains ¶ added in v0.8.9
StakeholderIDContains applies the Contains predicate on the "stakeholder_id" field.
func StakeholderIDContainsFold ¶ added in v0.8.9
StakeholderIDContainsFold applies the ContainsFold predicate on the "stakeholder_id" field.
func StakeholderIDEQ ¶ added in v0.8.9
StakeholderIDEQ applies the EQ predicate on the "stakeholder_id" field.
func StakeholderIDEqualFold ¶ added in v0.8.9
StakeholderIDEqualFold applies the EqualFold predicate on the "stakeholder_id" field.
func StakeholderIDGT ¶ added in v0.8.9
StakeholderIDGT applies the GT predicate on the "stakeholder_id" field.
func StakeholderIDGTE ¶ added in v0.8.9
StakeholderIDGTE applies the GTE predicate on the "stakeholder_id" field.
func StakeholderIDHasPrefix ¶ added in v0.8.9
StakeholderIDHasPrefix applies the HasPrefix predicate on the "stakeholder_id" field.
func StakeholderIDHasSuffix ¶ added in v0.8.9
StakeholderIDHasSuffix applies the HasSuffix predicate on the "stakeholder_id" field.
func StakeholderIDIn ¶ added in v0.8.9
StakeholderIDIn applies the In predicate on the "stakeholder_id" field.
func StakeholderIDIsNil ¶ added in v0.8.9
StakeholderIDIsNil applies the IsNil predicate on the "stakeholder_id" field.
func StakeholderIDLT ¶ added in v0.8.9
StakeholderIDLT applies the LT predicate on the "stakeholder_id" field.
func StakeholderIDLTE ¶ added in v0.8.9
StakeholderIDLTE applies the LTE predicate on the "stakeholder_id" field.
func StakeholderIDNEQ ¶ added in v0.8.9
StakeholderIDNEQ applies the NEQ predicate on the "stakeholder_id" field.
func StakeholderIDNotIn ¶ added in v0.8.9
StakeholderIDNotIn applies the NotIn predicate on the "stakeholder_id" field.
func StakeholderIDNotNil ¶ added in v0.8.9
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 ¶
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 ¶
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 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 ¶ 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.