Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ControlObjective) predicate.ControlObjective
- func Category(v string) predicate.ControlObjective
- func CategoryContains(v string) predicate.ControlObjective
- func CategoryContainsFold(v string) predicate.ControlObjective
- func CategoryEQ(v string) predicate.ControlObjective
- func CategoryEqualFold(v string) predicate.ControlObjective
- func CategoryGT(v string) predicate.ControlObjective
- func CategoryGTE(v string) predicate.ControlObjective
- func CategoryHasPrefix(v string) predicate.ControlObjective
- func CategoryHasSuffix(v string) predicate.ControlObjective
- func CategoryIn(vs ...string) predicate.ControlObjective
- func CategoryIsNil() predicate.ControlObjective
- func CategoryLT(v string) predicate.ControlObjective
- func CategoryLTE(v string) predicate.ControlObjective
- func CategoryNEQ(v string) predicate.ControlObjective
- func CategoryNotIn(vs ...string) predicate.ControlObjective
- func CategoryNotNil() predicate.ControlObjective
- func ControlObjectiveType(v string) predicate.ControlObjective
- func ControlObjectiveTypeContains(v string) predicate.ControlObjective
- func ControlObjectiveTypeContainsFold(v string) predicate.ControlObjective
- func ControlObjectiveTypeEQ(v string) predicate.ControlObjective
- func ControlObjectiveTypeEqualFold(v string) predicate.ControlObjective
- func ControlObjectiveTypeGT(v string) predicate.ControlObjective
- func ControlObjectiveTypeGTE(v string) predicate.ControlObjective
- func ControlObjectiveTypeHasPrefix(v string) predicate.ControlObjective
- func ControlObjectiveTypeHasSuffix(v string) predicate.ControlObjective
- func ControlObjectiveTypeIn(vs ...string) predicate.ControlObjective
- func ControlObjectiveTypeIsNil() predicate.ControlObjective
- func ControlObjectiveTypeLT(v string) predicate.ControlObjective
- func ControlObjectiveTypeLTE(v string) predicate.ControlObjective
- func ControlObjectiveTypeNEQ(v string) predicate.ControlObjective
- func ControlObjectiveTypeNotIn(vs ...string) predicate.ControlObjective
- func ControlObjectiveTypeNotNil() predicate.ControlObjective
- func CreatedAt(v time.Time) predicate.ControlObjective
- func CreatedAtEQ(v time.Time) predicate.ControlObjective
- func CreatedAtGT(v time.Time) predicate.ControlObjective
- func CreatedAtGTE(v time.Time) predicate.ControlObjective
- func CreatedAtIn(vs ...time.Time) predicate.ControlObjective
- func CreatedAtIsNil() predicate.ControlObjective
- func CreatedAtLT(v time.Time) predicate.ControlObjective
- func CreatedAtLTE(v time.Time) predicate.ControlObjective
- func CreatedAtNEQ(v time.Time) predicate.ControlObjective
- func CreatedAtNotIn(vs ...time.Time) predicate.ControlObjective
- func CreatedAtNotNil() predicate.ControlObjective
- func CreatedBy(v string) predicate.ControlObjective
- func CreatedByContains(v string) predicate.ControlObjective
- func CreatedByContainsFold(v string) predicate.ControlObjective
- func CreatedByEQ(v string) predicate.ControlObjective
- func CreatedByEqualFold(v string) predicate.ControlObjective
- func CreatedByGT(v string) predicate.ControlObjective
- func CreatedByGTE(v string) predicate.ControlObjective
- func CreatedByHasPrefix(v string) predicate.ControlObjective
- func CreatedByHasSuffix(v string) predicate.ControlObjective
- func CreatedByIn(vs ...string) predicate.ControlObjective
- func CreatedByIsNil() predicate.ControlObjective
- func CreatedByLT(v string) predicate.ControlObjective
- func CreatedByLTE(v string) predicate.ControlObjective
- func CreatedByNEQ(v string) predicate.ControlObjective
- func CreatedByNotIn(vs ...string) predicate.ControlObjective
- func CreatedByNotNil() predicate.ControlObjective
- func DeletedAt(v time.Time) predicate.ControlObjective
- func DeletedAtEQ(v time.Time) predicate.ControlObjective
- func DeletedAtGT(v time.Time) predicate.ControlObjective
- func DeletedAtGTE(v time.Time) predicate.ControlObjective
- func DeletedAtIn(vs ...time.Time) predicate.ControlObjective
- func DeletedAtIsNil() predicate.ControlObjective
- func DeletedAtLT(v time.Time) predicate.ControlObjective
- func DeletedAtLTE(v time.Time) predicate.ControlObjective
- func DeletedAtNEQ(v time.Time) predicate.ControlObjective
- func DeletedAtNotIn(vs ...time.Time) predicate.ControlObjective
- func DeletedAtNotNil() predicate.ControlObjective
- func DeletedBy(v string) predicate.ControlObjective
- func DeletedByContains(v string) predicate.ControlObjective
- func DeletedByContainsFold(v string) predicate.ControlObjective
- func DeletedByEQ(v string) predicate.ControlObjective
- func DeletedByEqualFold(v string) predicate.ControlObjective
- func DeletedByGT(v string) predicate.ControlObjective
- func DeletedByGTE(v string) predicate.ControlObjective
- func DeletedByHasPrefix(v string) predicate.ControlObjective
- func DeletedByHasSuffix(v string) predicate.ControlObjective
- func DeletedByIn(vs ...string) predicate.ControlObjective
- func DeletedByIsNil() predicate.ControlObjective
- func DeletedByLT(v string) predicate.ControlObjective
- func DeletedByLTE(v string) predicate.ControlObjective
- func DeletedByNEQ(v string) predicate.ControlObjective
- func DeletedByNotIn(vs ...string) predicate.ControlObjective
- func DeletedByNotNil() predicate.ControlObjective
- func DesiredOutcome(v string) predicate.ControlObjective
- func DesiredOutcomeContains(v string) predicate.ControlObjective
- func DesiredOutcomeContainsFold(v string) predicate.ControlObjective
- func DesiredOutcomeEQ(v string) predicate.ControlObjective
- func DesiredOutcomeEqualFold(v string) predicate.ControlObjective
- func DesiredOutcomeGT(v string) predicate.ControlObjective
- func DesiredOutcomeGTE(v string) predicate.ControlObjective
- func DesiredOutcomeHasPrefix(v string) predicate.ControlObjective
- func DesiredOutcomeHasSuffix(v string) predicate.ControlObjective
- func DesiredOutcomeIn(vs ...string) predicate.ControlObjective
- func DesiredOutcomeIsNil() predicate.ControlObjective
- func DesiredOutcomeLT(v string) predicate.ControlObjective
- func DesiredOutcomeLTE(v string) predicate.ControlObjective
- func DesiredOutcomeNEQ(v string) predicate.ControlObjective
- func DesiredOutcomeNotIn(vs ...string) predicate.ControlObjective
- func DesiredOutcomeNotNil() predicate.ControlObjective
- func DisplayID(v string) predicate.ControlObjective
- func DisplayIDContains(v string) predicate.ControlObjective
- func DisplayIDContainsFold(v string) predicate.ControlObjective
- func DisplayIDEQ(v string) predicate.ControlObjective
- func DisplayIDEqualFold(v string) predicate.ControlObjective
- func DisplayIDGT(v string) predicate.ControlObjective
- func DisplayIDGTE(v string) predicate.ControlObjective
- func DisplayIDHasPrefix(v string) predicate.ControlObjective
- func DisplayIDHasSuffix(v string) predicate.ControlObjective
- func DisplayIDIn(vs ...string) predicate.ControlObjective
- func DisplayIDLT(v string) predicate.ControlObjective
- func DisplayIDLTE(v string) predicate.ControlObjective
- func DisplayIDNEQ(v string) predicate.ControlObjective
- func DisplayIDNotIn(vs ...string) predicate.ControlObjective
- func HasBlockedGroups() predicate.ControlObjective
- func HasBlockedGroupsWith(preds ...predicate.Group) predicate.ControlObjective
- func HasControls() predicate.ControlObjective
- func HasControlsWith(preds ...predicate.Control) predicate.ControlObjective
- func HasEditors() predicate.ControlObjective
- func HasEditorsWith(preds ...predicate.Group) predicate.ControlObjective
- func HasEvidence() predicate.ControlObjective
- func HasEvidenceWith(preds ...predicate.Evidence) predicate.ControlObjective
- func HasInternalPolicies() predicate.ControlObjective
- func HasInternalPoliciesWith(preds ...predicate.InternalPolicy) predicate.ControlObjective
- func HasNarratives() predicate.ControlObjective
- func HasNarrativesWith(preds ...predicate.Narrative) predicate.ControlObjective
- func HasOwner() predicate.ControlObjective
- func HasOwnerWith(preds ...predicate.Organization) predicate.ControlObjective
- func HasProcedures() predicate.ControlObjective
- func HasProceduresWith(preds ...predicate.Procedure) predicate.ControlObjective
- func HasPrograms() predicate.ControlObjective
- func HasProgramsWith(preds ...predicate.Program) predicate.ControlObjective
- func HasRisks() predicate.ControlObjective
- func HasRisksWith(preds ...predicate.Risk) predicate.ControlObjective
- func HasSubcontrols() predicate.ControlObjective
- func HasSubcontrolsWith(preds ...predicate.Subcontrol) predicate.ControlObjective
- func HasTasks() predicate.ControlObjective
- func HasTasksWith(preds ...predicate.Task) predicate.ControlObjective
- func HasViewers() predicate.ControlObjective
- func HasViewersWith(preds ...predicate.Group) predicate.ControlObjective
- func ID(id string) predicate.ControlObjective
- func IDContainsFold(id string) predicate.ControlObjective
- func IDEQ(id string) predicate.ControlObjective
- func IDEqualFold(id string) predicate.ControlObjective
- func IDGT(id string) predicate.ControlObjective
- func IDGTE(id string) predicate.ControlObjective
- func IDIn(ids ...string) predicate.ControlObjective
- func IDLT(id string) predicate.ControlObjective
- func IDLTE(id string) predicate.ControlObjective
- func IDNEQ(id string) predicate.ControlObjective
- func IDNotIn(ids ...string) predicate.ControlObjective
- func InternalNotes(v string) predicate.ControlObjective
- func InternalNotesContains(v string) predicate.ControlObjective
- func InternalNotesContainsFold(v string) predicate.ControlObjective
- func InternalNotesEQ(v string) predicate.ControlObjective
- func InternalNotesEqualFold(v string) predicate.ControlObjective
- func InternalNotesGT(v string) predicate.ControlObjective
- func InternalNotesGTE(v string) predicate.ControlObjective
- func InternalNotesHasPrefix(v string) predicate.ControlObjective
- func InternalNotesHasSuffix(v string) predicate.ControlObjective
- func InternalNotesIn(vs ...string) predicate.ControlObjective
- func InternalNotesIsNil() predicate.ControlObjective
- func InternalNotesLT(v string) predicate.ControlObjective
- func InternalNotesLTE(v string) predicate.ControlObjective
- func InternalNotesNEQ(v string) predicate.ControlObjective
- func InternalNotesNotIn(vs ...string) predicate.ControlObjective
- func InternalNotesNotNil() predicate.ControlObjective
- func Name(v string) predicate.ControlObjective
- func NameContains(v string) predicate.ControlObjective
- func NameContainsFold(v string) predicate.ControlObjective
- func NameEQ(v string) predicate.ControlObjective
- func NameEqualFold(v string) predicate.ControlObjective
- func NameGT(v string) predicate.ControlObjective
- func NameGTE(v string) predicate.ControlObjective
- func NameHasPrefix(v string) predicate.ControlObjective
- func NameHasSuffix(v string) predicate.ControlObjective
- func NameIn(vs ...string) predicate.ControlObjective
- func NameLT(v string) predicate.ControlObjective
- func NameLTE(v string) predicate.ControlObjective
- func NameNEQ(v string) predicate.ControlObjective
- func NameNotIn(vs ...string) predicate.ControlObjective
- func Not(p predicate.ControlObjective) predicate.ControlObjective
- func Or(predicates ...predicate.ControlObjective) predicate.ControlObjective
- func OwnerID(v string) predicate.ControlObjective
- func OwnerIDContains(v string) predicate.ControlObjective
- func OwnerIDContainsFold(v string) predicate.ControlObjective
- func OwnerIDEQ(v string) predicate.ControlObjective
- func OwnerIDEqualFold(v string) predicate.ControlObjective
- func OwnerIDGT(v string) predicate.ControlObjective
- func OwnerIDGTE(v string) predicate.ControlObjective
- func OwnerIDHasPrefix(v string) predicate.ControlObjective
- func OwnerIDHasSuffix(v string) predicate.ControlObjective
- func OwnerIDIn(vs ...string) predicate.ControlObjective
- func OwnerIDIsNil() predicate.ControlObjective
- func OwnerIDLT(v string) predicate.ControlObjective
- func OwnerIDLTE(v string) predicate.ControlObjective
- func OwnerIDNEQ(v string) predicate.ControlObjective
- func OwnerIDNotIn(vs ...string) predicate.ControlObjective
- func OwnerIDNotNil() predicate.ControlObjective
- func Revision(v string) predicate.ControlObjective
- func RevisionContains(v string) predicate.ControlObjective
- func RevisionContainsFold(v string) predicate.ControlObjective
- func RevisionEQ(v string) predicate.ControlObjective
- func RevisionEqualFold(v string) predicate.ControlObjective
- func RevisionGT(v string) predicate.ControlObjective
- func RevisionGTE(v string) predicate.ControlObjective
- func RevisionHasPrefix(v string) predicate.ControlObjective
- func RevisionHasSuffix(v string) predicate.ControlObjective
- func RevisionIn(vs ...string) predicate.ControlObjective
- func RevisionIsNil() predicate.ControlObjective
- func RevisionLT(v string) predicate.ControlObjective
- func RevisionLTE(v string) predicate.ControlObjective
- func RevisionNEQ(v string) predicate.ControlObjective
- func RevisionNotIn(vs ...string) predicate.ControlObjective
- func RevisionNotNil() predicate.ControlObjective
- func SourceEQ(v enums.ControlSource) predicate.ControlObjective
- func SourceIn(vs ...enums.ControlSource) predicate.ControlObjective
- func SourceIsNil() predicate.ControlObjective
- func SourceNEQ(v enums.ControlSource) predicate.ControlObjective
- func SourceNotIn(vs ...enums.ControlSource) predicate.ControlObjective
- func SourceNotNil() predicate.ControlObjective
- func SourceValidator(s enums.ControlSource) error
- func StatusEQ(v enums.ObjectiveStatus) predicate.ControlObjective
- func StatusIn(vs ...enums.ObjectiveStatus) predicate.ControlObjective
- func StatusIsNil() predicate.ControlObjective
- func StatusNEQ(v enums.ObjectiveStatus) predicate.ControlObjective
- func StatusNotIn(vs ...enums.ObjectiveStatus) predicate.ControlObjective
- func StatusNotNil() predicate.ControlObjective
- func StatusValidator(s enums.ObjectiveStatus) error
- func Subcategory(v string) predicate.ControlObjective
- func SubcategoryContains(v string) predicate.ControlObjective
- func SubcategoryContainsFold(v string) predicate.ControlObjective
- func SubcategoryEQ(v string) predicate.ControlObjective
- func SubcategoryEqualFold(v string) predicate.ControlObjective
- func SubcategoryGT(v string) predicate.ControlObjective
- func SubcategoryGTE(v string) predicate.ControlObjective
- func SubcategoryHasPrefix(v string) predicate.ControlObjective
- func SubcategoryHasSuffix(v string) predicate.ControlObjective
- func SubcategoryIn(vs ...string) predicate.ControlObjective
- func SubcategoryIsNil() predicate.ControlObjective
- func SubcategoryLT(v string) predicate.ControlObjective
- func SubcategoryLTE(v string) predicate.ControlObjective
- func SubcategoryNEQ(v string) predicate.ControlObjective
- func SubcategoryNotIn(vs ...string) predicate.ControlObjective
- func SubcategoryNotNil() predicate.ControlObjective
- func SystemInternalID(v string) predicate.ControlObjective
- func SystemInternalIDContains(v string) predicate.ControlObjective
- func SystemInternalIDContainsFold(v string) predicate.ControlObjective
- func SystemInternalIDEQ(v string) predicate.ControlObjective
- func SystemInternalIDEqualFold(v string) predicate.ControlObjective
- func SystemInternalIDGT(v string) predicate.ControlObjective
- func SystemInternalIDGTE(v string) predicate.ControlObjective
- func SystemInternalIDHasPrefix(v string) predicate.ControlObjective
- func SystemInternalIDHasSuffix(v string) predicate.ControlObjective
- func SystemInternalIDIn(vs ...string) predicate.ControlObjective
- func SystemInternalIDIsNil() predicate.ControlObjective
- func SystemInternalIDLT(v string) predicate.ControlObjective
- func SystemInternalIDLTE(v string) predicate.ControlObjective
- func SystemInternalIDNEQ(v string) predicate.ControlObjective
- func SystemInternalIDNotIn(vs ...string) predicate.ControlObjective
- func SystemInternalIDNotNil() predicate.ControlObjective
- func SystemOwned(v bool) predicate.ControlObjective
- func SystemOwnedEQ(v bool) predicate.ControlObjective
- func SystemOwnedIsNil() predicate.ControlObjective
- func SystemOwnedNEQ(v bool) predicate.ControlObjective
- func SystemOwnedNotNil() predicate.ControlObjective
- func TagsIsNil() predicate.ControlObjective
- func TagsNotNil() predicate.ControlObjective
- func UpdatedAt(v time.Time) predicate.ControlObjective
- func UpdatedAtEQ(v time.Time) predicate.ControlObjective
- func UpdatedAtGT(v time.Time) predicate.ControlObjective
- func UpdatedAtGTE(v time.Time) predicate.ControlObjective
- func UpdatedAtIn(vs ...time.Time) predicate.ControlObjective
- func UpdatedAtIsNil() predicate.ControlObjective
- func UpdatedAtLT(v time.Time) predicate.ControlObjective
- func UpdatedAtLTE(v time.Time) predicate.ControlObjective
- func UpdatedAtNEQ(v time.Time) predicate.ControlObjective
- func UpdatedAtNotIn(vs ...time.Time) predicate.ControlObjective
- func UpdatedAtNotNil() predicate.ControlObjective
- func UpdatedBy(v string) predicate.ControlObjective
- func UpdatedByContains(v string) predicate.ControlObjective
- func UpdatedByContainsFold(v string) predicate.ControlObjective
- func UpdatedByEQ(v string) predicate.ControlObjective
- func UpdatedByEqualFold(v string) predicate.ControlObjective
- func UpdatedByGT(v string) predicate.ControlObjective
- func UpdatedByGTE(v string) predicate.ControlObjective
- func UpdatedByHasPrefix(v string) predicate.ControlObjective
- func UpdatedByHasSuffix(v string) predicate.ControlObjective
- func UpdatedByIn(vs ...string) predicate.ControlObjective
- func UpdatedByIsNil() predicate.ControlObjective
- func UpdatedByLT(v string) predicate.ControlObjective
- func UpdatedByLTE(v string) predicate.ControlObjective
- func UpdatedByNEQ(v string) predicate.ControlObjective
- func UpdatedByNotIn(vs ...string) predicate.ControlObjective
- func UpdatedByNotNil() predicate.ControlObjective
- func ValidColumn(column string) bool
- type OrderOption
- func ByBlockedGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBlockedGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCategory(opts ...sql.OrderTermOption) OrderOption
- func ByControlObjectiveType(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 ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDesiredOutcome(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 ByEvidence(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEvidenceCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInternalNotes(opts ...sql.OrderTermOption) OrderOption
- func ByInternalPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByInternalPoliciesCount(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByNarratives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNarrativesCount(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 ByRevision(opts ...sql.OrderTermOption) OrderOption
- func ByRisks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRisksCount(opts ...sql.OrderTermOption) OrderOption
- func BySource(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func BySubcategory(opts ...sql.OrderTermOption) OrderOption
- func BySubcontrols(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func BySubcontrolsCount(opts ...sql.OrderTermOption) OrderOption
- func BySystemInternalID(opts ...sql.OrderTermOption) OrderOption
- func BySystemOwned(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 controlobjective type in the database. Label = "control_objective" // 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" // FieldRevision holds the string denoting the revision field in the database. FieldRevision = "revision" // FieldOwnerID holds the string denoting the owner_id field in the database. FieldOwnerID = "owner_id" // FieldSystemOwned holds the string denoting the system_owned field in the database. FieldSystemOwned = "system_owned" // FieldInternalNotes holds the string denoting the internal_notes field in the database. FieldInternalNotes = "internal_notes" // FieldSystemInternalID holds the string denoting the system_internal_id field in the database. FieldSystemInternalID = "system_internal_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldDesiredOutcome holds the string denoting the desired_outcome field in the database. FieldDesiredOutcome = "desired_outcome" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldSource holds the string denoting the source field in the database. FieldSource = "source" // FieldControlObjectiveType holds the string denoting the control_objective_type field in the database. FieldControlObjectiveType = "control_objective_type" // FieldCategory holds the string denoting the category field in the database. FieldCategory = "category" // FieldSubcategory holds the string denoting the subcategory field in the database. FieldSubcategory = "subcategory" // 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" // EdgePrograms holds the string denoting the programs edge name in mutations. EdgePrograms = "programs" // EdgeEvidence holds the string denoting the evidence edge name in mutations. EdgeEvidence = "evidence" // 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" // EdgeInternalPolicies holds the string denoting the internal_policies edge name in mutations. EdgeInternalPolicies = "internal_policies" // EdgeProcedures holds the string denoting the procedures edge name in mutations. EdgeProcedures = "procedures" // EdgeRisks holds the string denoting the risks edge name in mutations. EdgeRisks = "risks" // EdgeNarratives holds the string denoting the narratives edge name in mutations. EdgeNarratives = "narratives" // EdgeTasks holds the string denoting the tasks edge name in mutations. EdgeTasks = "tasks" // Table holds the table name of the controlobjective in the database. Table = "control_objectives" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "control_objectives" // 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 = "control_objective_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 = "control_objective_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 = "control_objective_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" // ProgramsTable is the table that holds the programs relation/edge. The primary key declared below. ProgramsTable = "program_control_objectives" // 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" // EvidenceTable is the table that holds the evidence relation/edge. The primary key declared below. EvidenceTable = "evidence_control_objectives" // EvidenceInverseTable is the table name for the Evidence entity. // It exists in this package in order to avoid circular dependency with the "evidence" package. EvidenceInverseTable = "evidences" // ControlsTable is the table that holds the controls relation/edge. The primary key declared below. ControlsTable = "control_control_objectives" // 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_control_objectives" // 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" // InternalPoliciesTable is the table that holds the internal_policies relation/edge. The primary key declared below. InternalPoliciesTable = "internal_policy_control_objectives" // 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" // ProceduresTable is the table that holds the procedures relation/edge. ProceduresTable = "procedures" // ProceduresInverseTable is the table name for the Procedure entity. // It exists in this package in order to avoid circular dependency with the "procedure" package. ProceduresInverseTable = "procedures" // ProceduresColumn is the table column denoting the procedures relation/edge. ProceduresColumn = "control_objective_procedures" // RisksTable is the table that holds the risks relation/edge. RisksTable = "risks" // RisksInverseTable is the table name for the Risk entity. // It exists in this package in order to avoid circular dependency with the "risk" package. RisksInverseTable = "risks" // RisksColumn is the table column denoting the risks relation/edge. RisksColumn = "control_objective_risks" // NarrativesTable is the table that holds the narratives relation/edge. NarrativesTable = "narratives" // NarrativesInverseTable is the table name for the Narrative entity. // It exists in this package in order to avoid circular dependency with the "narrative" package. NarrativesInverseTable = "narratives" // NarrativesColumn is the table column denoting the narratives relation/edge. NarrativesColumn = "control_objective_narratives" // TasksTable is the table that holds the tasks relation/edge. The primary key declared below. TasksTable = "control_objective_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" )
const DefaultSource enums.ControlSource = "USER_DEFINED"
const DefaultStatus enums.ObjectiveStatus = "DRAFT"
Variables ¶
var ( // BlockedGroupsPrimaryKey and BlockedGroupsColumn2 are the table columns denoting the // primary key for the blocked_groups relation (M2M). BlockedGroupsPrimaryKey = []string{"control_objective_id", "group_id"} // EditorsPrimaryKey and EditorsColumn2 are the table columns denoting the // primary key for the editors relation (M2M). EditorsPrimaryKey = []string{"control_objective_id", "group_id"} // ViewersPrimaryKey and ViewersColumn2 are the table columns denoting the // primary key for the viewers relation (M2M). ViewersPrimaryKey = []string{"control_objective_id", "group_id"} // ProgramsPrimaryKey and ProgramsColumn2 are the table columns denoting the // primary key for the programs relation (M2M). ProgramsPrimaryKey = []string{"program_id", "control_objective_id"} // EvidencePrimaryKey and EvidenceColumn2 are the table columns denoting the // primary key for the evidence relation (M2M). EvidencePrimaryKey = []string{"evidence_id", "control_objective_id"} // ControlsPrimaryKey and ControlsColumn2 are the table columns denoting the // primary key for the controls relation (M2M). ControlsPrimaryKey = []string{"control_id", "control_objective_id"} // SubcontrolsPrimaryKey and SubcontrolsColumn2 are the table columns denoting the // primary key for the subcontrols relation (M2M). SubcontrolsPrimaryKey = []string{"subcontrol_id", "control_objective_id"} // InternalPoliciesPrimaryKey and InternalPoliciesColumn2 are the table columns denoting the // primary key for the internal_policies relation (M2M). InternalPoliciesPrimaryKey = []string{"internal_policy_id", "control_objective_id"} // TasksPrimaryKey and TasksColumn2 are the table columns denoting the // primary key for the tasks relation (M2M). TasksPrimaryKey = []string{"control_objective_id", "task_id"} )
var ( Hooks [13]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 // DefaultRevision holds the default value on creation for the "revision" field. DefaultRevision string // RevisionValidator is a validator for the "revision" field. It is called by the builders before save. RevisionValidator func(string) error // OwnerIDValidator is a validator for the "owner_id" field. It is called by the builders before save. OwnerIDValidator func(string) error // DefaultSystemOwned holds the default value on creation for the "system_owned" field. DefaultSystemOwned bool // 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, FieldRevision, FieldOwnerID, FieldSystemOwned, FieldInternalNotes, FieldSystemInternalID, FieldName, FieldDesiredOutcome, FieldStatus, FieldSource, FieldControlObjectiveType, FieldCategory, FieldSubcategory, }
Columns holds all SQL columns for controlobjective fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ControlObjective) predicate.ControlObjective
And groups predicates with the AND operator between them.
func Category ¶ added in v0.7.3
func Category(v string) predicate.ControlObjective
Category applies equality check predicate on the "category" field. It's identical to CategoryEQ.
func CategoryContains ¶ added in v0.7.3
func CategoryContains(v string) predicate.ControlObjective
CategoryContains applies the Contains predicate on the "category" field.
func CategoryContainsFold ¶ added in v0.7.3
func CategoryContainsFold(v string) predicate.ControlObjective
CategoryContainsFold applies the ContainsFold predicate on the "category" field.
func CategoryEQ ¶ added in v0.7.3
func CategoryEQ(v string) predicate.ControlObjective
CategoryEQ applies the EQ predicate on the "category" field.
func CategoryEqualFold ¶ added in v0.7.3
func CategoryEqualFold(v string) predicate.ControlObjective
CategoryEqualFold applies the EqualFold predicate on the "category" field.
func CategoryGT ¶ added in v0.7.3
func CategoryGT(v string) predicate.ControlObjective
CategoryGT applies the GT predicate on the "category" field.
func CategoryGTE ¶ added in v0.7.3
func CategoryGTE(v string) predicate.ControlObjective
CategoryGTE applies the GTE predicate on the "category" field.
func CategoryHasPrefix ¶ added in v0.7.3
func CategoryHasPrefix(v string) predicate.ControlObjective
CategoryHasPrefix applies the HasPrefix predicate on the "category" field.
func CategoryHasSuffix ¶ added in v0.7.3
func CategoryHasSuffix(v string) predicate.ControlObjective
CategoryHasSuffix applies the HasSuffix predicate on the "category" field.
func CategoryIn ¶ added in v0.7.3
func CategoryIn(vs ...string) predicate.ControlObjective
CategoryIn applies the In predicate on the "category" field.
func CategoryIsNil ¶ added in v0.7.3
func CategoryIsNil() predicate.ControlObjective
CategoryIsNil applies the IsNil predicate on the "category" field.
func CategoryLT ¶ added in v0.7.3
func CategoryLT(v string) predicate.ControlObjective
CategoryLT applies the LT predicate on the "category" field.
func CategoryLTE ¶ added in v0.7.3
func CategoryLTE(v string) predicate.ControlObjective
CategoryLTE applies the LTE predicate on the "category" field.
func CategoryNEQ ¶ added in v0.7.3
func CategoryNEQ(v string) predicate.ControlObjective
CategoryNEQ applies the NEQ predicate on the "category" field.
func CategoryNotIn ¶ added in v0.7.3
func CategoryNotIn(vs ...string) predicate.ControlObjective
CategoryNotIn applies the NotIn predicate on the "category" field.
func CategoryNotNil ¶ added in v0.7.3
func CategoryNotNil() predicate.ControlObjective
CategoryNotNil applies the NotNil predicate on the "category" field.
func ControlObjectiveType ¶
func ControlObjectiveType(v string) predicate.ControlObjective
ControlObjectiveType applies equality check predicate on the "control_objective_type" field. It's identical to ControlObjectiveTypeEQ.
func ControlObjectiveTypeContains ¶
func ControlObjectiveTypeContains(v string) predicate.ControlObjective
ControlObjectiveTypeContains applies the Contains predicate on the "control_objective_type" field.
func ControlObjectiveTypeContainsFold ¶
func ControlObjectiveTypeContainsFold(v string) predicate.ControlObjective
ControlObjectiveTypeContainsFold applies the ContainsFold predicate on the "control_objective_type" field.
func ControlObjectiveTypeEQ ¶
func ControlObjectiveTypeEQ(v string) predicate.ControlObjective
ControlObjectiveTypeEQ applies the EQ predicate on the "control_objective_type" field.
func ControlObjectiveTypeEqualFold ¶
func ControlObjectiveTypeEqualFold(v string) predicate.ControlObjective
ControlObjectiveTypeEqualFold applies the EqualFold predicate on the "control_objective_type" field.
func ControlObjectiveTypeGT ¶
func ControlObjectiveTypeGT(v string) predicate.ControlObjective
ControlObjectiveTypeGT applies the GT predicate on the "control_objective_type" field.
func ControlObjectiveTypeGTE ¶
func ControlObjectiveTypeGTE(v string) predicate.ControlObjective
ControlObjectiveTypeGTE applies the GTE predicate on the "control_objective_type" field.
func ControlObjectiveTypeHasPrefix ¶
func ControlObjectiveTypeHasPrefix(v string) predicate.ControlObjective
ControlObjectiveTypeHasPrefix applies the HasPrefix predicate on the "control_objective_type" field.
func ControlObjectiveTypeHasSuffix ¶
func ControlObjectiveTypeHasSuffix(v string) predicate.ControlObjective
ControlObjectiveTypeHasSuffix applies the HasSuffix predicate on the "control_objective_type" field.
func ControlObjectiveTypeIn ¶
func ControlObjectiveTypeIn(vs ...string) predicate.ControlObjective
ControlObjectiveTypeIn applies the In predicate on the "control_objective_type" field.
func ControlObjectiveTypeIsNil ¶
func ControlObjectiveTypeIsNil() predicate.ControlObjective
ControlObjectiveTypeIsNil applies the IsNil predicate on the "control_objective_type" field.
func ControlObjectiveTypeLT ¶
func ControlObjectiveTypeLT(v string) predicate.ControlObjective
ControlObjectiveTypeLT applies the LT predicate on the "control_objective_type" field.
func ControlObjectiveTypeLTE ¶
func ControlObjectiveTypeLTE(v string) predicate.ControlObjective
ControlObjectiveTypeLTE applies the LTE predicate on the "control_objective_type" field.
func ControlObjectiveTypeNEQ ¶
func ControlObjectiveTypeNEQ(v string) predicate.ControlObjective
ControlObjectiveTypeNEQ applies the NEQ predicate on the "control_objective_type" field.
func ControlObjectiveTypeNotIn ¶
func ControlObjectiveTypeNotIn(vs ...string) predicate.ControlObjective
ControlObjectiveTypeNotIn applies the NotIn predicate on the "control_objective_type" field.
func ControlObjectiveTypeNotNil ¶
func ControlObjectiveTypeNotNil() predicate.ControlObjective
ControlObjectiveTypeNotNil applies the NotNil predicate on the "control_objective_type" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.ControlObjective
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.ControlObjective
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.ControlObjective
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.ControlObjective
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.ControlObjective
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
func CreatedAtIsNil() predicate.ControlObjective
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.ControlObjective
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.ControlObjective
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.ControlObjective
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.ControlObjective
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
func CreatedAtNotNil() predicate.ControlObjective
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v string) predicate.ControlObjective
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
func CreatedByContains(v string) predicate.ControlObjective
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
func CreatedByContainsFold(v string) predicate.ControlObjective
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
func CreatedByEQ(v string) predicate.ControlObjective
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
func CreatedByEqualFold(v string) predicate.ControlObjective
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v string) predicate.ControlObjective
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v string) predicate.ControlObjective
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
func CreatedByHasPrefix(v string) predicate.ControlObjective
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
func CreatedByHasSuffix(v string) predicate.ControlObjective
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...string) predicate.ControlObjective
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.ControlObjective
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v string) predicate.ControlObjective
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v string) predicate.ControlObjective
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v string) predicate.ControlObjective
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...string) predicate.ControlObjective
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.ControlObjective
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.ControlObjective
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.ControlObjective
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.ControlObjective
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.ControlObjective
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.ControlObjective
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.ControlObjective
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.ControlObjective
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.ControlObjective
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.ControlObjective
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.ControlObjective
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.ControlObjective
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
func DeletedBy(v string) predicate.ControlObjective
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
func DeletedByContains(v string) predicate.ControlObjective
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
func DeletedByContainsFold(v string) predicate.ControlObjective
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
func DeletedByEQ(v string) predicate.ControlObjective
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
func DeletedByEqualFold(v string) predicate.ControlObjective
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
func DeletedByGT(v string) predicate.ControlObjective
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
func DeletedByGTE(v string) predicate.ControlObjective
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
func DeletedByHasPrefix(v string) predicate.ControlObjective
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
func DeletedByHasSuffix(v string) predicate.ControlObjective
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
func DeletedByIn(vs ...string) predicate.ControlObjective
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
func DeletedByIsNil() predicate.ControlObjective
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
func DeletedByLT(v string) predicate.ControlObjective
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
func DeletedByLTE(v string) predicate.ControlObjective
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
func DeletedByNEQ(v string) predicate.ControlObjective
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
func DeletedByNotIn(vs ...string) predicate.ControlObjective
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
func DeletedByNotNil() predicate.ControlObjective
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func DesiredOutcome ¶ added in v0.7.3
func DesiredOutcome(v string) predicate.ControlObjective
DesiredOutcome applies equality check predicate on the "desired_outcome" field. It's identical to DesiredOutcomeEQ.
func DesiredOutcomeContains ¶ added in v0.7.3
func DesiredOutcomeContains(v string) predicate.ControlObjective
DesiredOutcomeContains applies the Contains predicate on the "desired_outcome" field.
func DesiredOutcomeContainsFold ¶ added in v0.7.3
func DesiredOutcomeContainsFold(v string) predicate.ControlObjective
DesiredOutcomeContainsFold applies the ContainsFold predicate on the "desired_outcome" field.
func DesiredOutcomeEQ ¶ added in v0.7.3
func DesiredOutcomeEQ(v string) predicate.ControlObjective
DesiredOutcomeEQ applies the EQ predicate on the "desired_outcome" field.
func DesiredOutcomeEqualFold ¶ added in v0.7.3
func DesiredOutcomeEqualFold(v string) predicate.ControlObjective
DesiredOutcomeEqualFold applies the EqualFold predicate on the "desired_outcome" field.
func DesiredOutcomeGT ¶ added in v0.7.3
func DesiredOutcomeGT(v string) predicate.ControlObjective
DesiredOutcomeGT applies the GT predicate on the "desired_outcome" field.
func DesiredOutcomeGTE ¶ added in v0.7.3
func DesiredOutcomeGTE(v string) predicate.ControlObjective
DesiredOutcomeGTE applies the GTE predicate on the "desired_outcome" field.
func DesiredOutcomeHasPrefix ¶ added in v0.7.3
func DesiredOutcomeHasPrefix(v string) predicate.ControlObjective
DesiredOutcomeHasPrefix applies the HasPrefix predicate on the "desired_outcome" field.
func DesiredOutcomeHasSuffix ¶ added in v0.7.3
func DesiredOutcomeHasSuffix(v string) predicate.ControlObjective
DesiredOutcomeHasSuffix applies the HasSuffix predicate on the "desired_outcome" field.
func DesiredOutcomeIn ¶ added in v0.7.3
func DesiredOutcomeIn(vs ...string) predicate.ControlObjective
DesiredOutcomeIn applies the In predicate on the "desired_outcome" field.
func DesiredOutcomeIsNil ¶ added in v0.7.3
func DesiredOutcomeIsNil() predicate.ControlObjective
DesiredOutcomeIsNil applies the IsNil predicate on the "desired_outcome" field.
func DesiredOutcomeLT ¶ added in v0.7.3
func DesiredOutcomeLT(v string) predicate.ControlObjective
DesiredOutcomeLT applies the LT predicate on the "desired_outcome" field.
func DesiredOutcomeLTE ¶ added in v0.7.3
func DesiredOutcomeLTE(v string) predicate.ControlObjective
DesiredOutcomeLTE applies the LTE predicate on the "desired_outcome" field.
func DesiredOutcomeNEQ ¶ added in v0.7.3
func DesiredOutcomeNEQ(v string) predicate.ControlObjective
DesiredOutcomeNEQ applies the NEQ predicate on the "desired_outcome" field.
func DesiredOutcomeNotIn ¶ added in v0.7.3
func DesiredOutcomeNotIn(vs ...string) predicate.ControlObjective
DesiredOutcomeNotIn applies the NotIn predicate on the "desired_outcome" field.
func DesiredOutcomeNotNil ¶ added in v0.7.3
func DesiredOutcomeNotNil() predicate.ControlObjective
DesiredOutcomeNotNil applies the NotNil predicate on the "desired_outcome" field.
func DisplayID ¶ added in v0.6.11
func DisplayID(v string) predicate.ControlObjective
DisplayID applies equality check predicate on the "display_id" field. It's identical to DisplayIDEQ.
func DisplayIDContains ¶ added in v0.6.11
func DisplayIDContains(v string) predicate.ControlObjective
DisplayIDContains applies the Contains predicate on the "display_id" field.
func DisplayIDContainsFold ¶ added in v0.6.11
func DisplayIDContainsFold(v string) predicate.ControlObjective
DisplayIDContainsFold applies the ContainsFold predicate on the "display_id" field.
func DisplayIDEQ ¶ added in v0.6.11
func DisplayIDEQ(v string) predicate.ControlObjective
DisplayIDEQ applies the EQ predicate on the "display_id" field.
func DisplayIDEqualFold ¶ added in v0.6.11
func DisplayIDEqualFold(v string) predicate.ControlObjective
DisplayIDEqualFold applies the EqualFold predicate on the "display_id" field.
func DisplayIDGT ¶ added in v0.6.11
func DisplayIDGT(v string) predicate.ControlObjective
DisplayIDGT applies the GT predicate on the "display_id" field.
func DisplayIDGTE ¶ added in v0.6.11
func DisplayIDGTE(v string) predicate.ControlObjective
DisplayIDGTE applies the GTE predicate on the "display_id" field.
func DisplayIDHasPrefix ¶ added in v0.6.11
func DisplayIDHasPrefix(v string) predicate.ControlObjective
DisplayIDHasPrefix applies the HasPrefix predicate on the "display_id" field.
func DisplayIDHasSuffix ¶ added in v0.6.11
func DisplayIDHasSuffix(v string) predicate.ControlObjective
DisplayIDHasSuffix applies the HasSuffix predicate on the "display_id" field.
func DisplayIDIn ¶ added in v0.6.11
func DisplayIDIn(vs ...string) predicate.ControlObjective
DisplayIDIn applies the In predicate on the "display_id" field.
func DisplayIDLT ¶ added in v0.6.11
func DisplayIDLT(v string) predicate.ControlObjective
DisplayIDLT applies the LT predicate on the "display_id" field.
func DisplayIDLTE ¶ added in v0.6.11
func DisplayIDLTE(v string) predicate.ControlObjective
DisplayIDLTE applies the LTE predicate on the "display_id" field.
func DisplayIDNEQ ¶ added in v0.6.11
func DisplayIDNEQ(v string) predicate.ControlObjective
DisplayIDNEQ applies the NEQ predicate on the "display_id" field.
func DisplayIDNotIn ¶ added in v0.6.11
func DisplayIDNotIn(vs ...string) predicate.ControlObjective
DisplayIDNotIn applies the NotIn predicate on the "display_id" field.
func HasBlockedGroups ¶ added in v0.4.4
func HasBlockedGroups() predicate.ControlObjective
HasBlockedGroups applies the HasEdge predicate on the "blocked_groups" edge.
func HasBlockedGroupsWith ¶ added in v0.4.4
func HasBlockedGroupsWith(preds ...predicate.Group) predicate.ControlObjective
HasBlockedGroupsWith applies the HasEdge predicate on the "blocked_groups" edge with a given conditions (other predicates).
func HasControls ¶
func HasControls() predicate.ControlObjective
HasControls applies the HasEdge predicate on the "controls" edge.
func HasControlsWith ¶
func HasControlsWith(preds ...predicate.Control) predicate.ControlObjective
HasControlsWith applies the HasEdge predicate on the "controls" edge with a given conditions (other predicates).
func HasEditors ¶ added in v0.4.4
func HasEditors() predicate.ControlObjective
HasEditors applies the HasEdge predicate on the "editors" edge.
func HasEditorsWith ¶ added in v0.4.4
func HasEditorsWith(preds ...predicate.Group) predicate.ControlObjective
HasEditorsWith applies the HasEdge predicate on the "editors" edge with a given conditions (other predicates).
func HasEvidence ¶ added in v0.6.19
func HasEvidence() predicate.ControlObjective
HasEvidence applies the HasEdge predicate on the "evidence" edge.
func HasEvidenceWith ¶ added in v0.6.19
func HasEvidenceWith(preds ...predicate.Evidence) predicate.ControlObjective
HasEvidenceWith applies the HasEdge predicate on the "evidence" edge with a given conditions (other predicates).
func HasInternalPolicies ¶ added in v0.6.1
func HasInternalPolicies() predicate.ControlObjective
HasInternalPolicies applies the HasEdge predicate on the "internal_policies" edge.
func HasInternalPoliciesWith ¶ added in v0.6.1
func HasInternalPoliciesWith(preds ...predicate.InternalPolicy) predicate.ControlObjective
HasInternalPoliciesWith applies the HasEdge predicate on the "internal_policies" edge with a given conditions (other predicates).
func HasNarratives ¶
func HasNarratives() predicate.ControlObjective
HasNarratives applies the HasEdge predicate on the "narratives" edge.
func HasNarrativesWith ¶
func HasNarrativesWith(preds ...predicate.Narrative) predicate.ControlObjective
HasNarrativesWith applies the HasEdge predicate on the "narratives" edge with a given conditions (other predicates).
func HasOwner ¶ added in v0.4.4
func HasOwner() predicate.ControlObjective
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶ added in v0.4.4
func HasOwnerWith(preds ...predicate.Organization) predicate.ControlObjective
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasProcedures ¶
func HasProcedures() predicate.ControlObjective
HasProcedures applies the HasEdge predicate on the "procedures" edge.
func HasProceduresWith ¶
func HasProceduresWith(preds ...predicate.Procedure) predicate.ControlObjective
HasProceduresWith applies the HasEdge predicate on the "procedures" edge with a given conditions (other predicates).
func HasPrograms ¶ added in v0.3.5
func HasPrograms() predicate.ControlObjective
HasPrograms applies the HasEdge predicate on the "programs" edge.
func HasProgramsWith ¶ added in v0.3.5
func HasProgramsWith(preds ...predicate.Program) predicate.ControlObjective
HasProgramsWith applies the HasEdge predicate on the "programs" edge with a given conditions (other predicates).
func HasRisks ¶
func HasRisks() predicate.ControlObjective
HasRisks applies the HasEdge predicate on the "risks" edge.
func HasRisksWith ¶
func HasRisksWith(preds ...predicate.Risk) predicate.ControlObjective
HasRisksWith applies the HasEdge predicate on the "risks" edge with a given conditions (other predicates).
func HasSubcontrols ¶
func HasSubcontrols() predicate.ControlObjective
HasSubcontrols applies the HasEdge predicate on the "subcontrols" edge.
func HasSubcontrolsWith ¶
func HasSubcontrolsWith(preds ...predicate.Subcontrol) predicate.ControlObjective
HasSubcontrolsWith applies the HasEdge predicate on the "subcontrols" edge with a given conditions (other predicates).
func HasTasks ¶ added in v0.3.4
func HasTasks() predicate.ControlObjective
HasTasks applies the HasEdge predicate on the "tasks" edge.
func HasTasksWith ¶ added in v0.3.4
func HasTasksWith(preds ...predicate.Task) predicate.ControlObjective
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func HasViewers ¶ added in v0.4.4
func HasViewers() predicate.ControlObjective
HasViewers applies the HasEdge predicate on the "viewers" edge.
func HasViewersWith ¶ added in v0.4.4
func HasViewersWith(preds ...predicate.Group) predicate.ControlObjective
HasViewersWith applies the HasEdge predicate on the "viewers" edge with a given conditions (other predicates).
func ID ¶
func ID(id string) predicate.ControlObjective
ID filters vertices based on their ID field.
func IDContainsFold ¶
func IDContainsFold(id string) predicate.ControlObjective
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.ControlObjective
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.ControlObjective
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.ControlObjective
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.ControlObjective
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.ControlObjective
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.ControlObjective
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.ControlObjective
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.ControlObjective
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.ControlObjective
IDNotIn applies the NotIn predicate on the ID field.
func InternalNotes ¶ added in v0.34.0
func InternalNotes(v string) predicate.ControlObjective
InternalNotes applies equality check predicate on the "internal_notes" field. It's identical to InternalNotesEQ.
func InternalNotesContains ¶ added in v0.34.0
func InternalNotesContains(v string) predicate.ControlObjective
InternalNotesContains applies the Contains predicate on the "internal_notes" field.
func InternalNotesContainsFold ¶ added in v0.34.0
func InternalNotesContainsFold(v string) predicate.ControlObjective
InternalNotesContainsFold applies the ContainsFold predicate on the "internal_notes" field.
func InternalNotesEQ ¶ added in v0.34.0
func InternalNotesEQ(v string) predicate.ControlObjective
InternalNotesEQ applies the EQ predicate on the "internal_notes" field.
func InternalNotesEqualFold ¶ added in v0.34.0
func InternalNotesEqualFold(v string) predicate.ControlObjective
InternalNotesEqualFold applies the EqualFold predicate on the "internal_notes" field.
func InternalNotesGT ¶ added in v0.34.0
func InternalNotesGT(v string) predicate.ControlObjective
InternalNotesGT applies the GT predicate on the "internal_notes" field.
func InternalNotesGTE ¶ added in v0.34.0
func InternalNotesGTE(v string) predicate.ControlObjective
InternalNotesGTE applies the GTE predicate on the "internal_notes" field.
func InternalNotesHasPrefix ¶ added in v0.34.0
func InternalNotesHasPrefix(v string) predicate.ControlObjective
InternalNotesHasPrefix applies the HasPrefix predicate on the "internal_notes" field.
func InternalNotesHasSuffix ¶ added in v0.34.0
func InternalNotesHasSuffix(v string) predicate.ControlObjective
InternalNotesHasSuffix applies the HasSuffix predicate on the "internal_notes" field.
func InternalNotesIn ¶ added in v0.34.0
func InternalNotesIn(vs ...string) predicate.ControlObjective
InternalNotesIn applies the In predicate on the "internal_notes" field.
func InternalNotesIsNil ¶ added in v0.34.0
func InternalNotesIsNil() predicate.ControlObjective
InternalNotesIsNil applies the IsNil predicate on the "internal_notes" field.
func InternalNotesLT ¶ added in v0.34.0
func InternalNotesLT(v string) predicate.ControlObjective
InternalNotesLT applies the LT predicate on the "internal_notes" field.
func InternalNotesLTE ¶ added in v0.34.0
func InternalNotesLTE(v string) predicate.ControlObjective
InternalNotesLTE applies the LTE predicate on the "internal_notes" field.
func InternalNotesNEQ ¶ added in v0.34.0
func InternalNotesNEQ(v string) predicate.ControlObjective
InternalNotesNEQ applies the NEQ predicate on the "internal_notes" field.
func InternalNotesNotIn ¶ added in v0.34.0
func InternalNotesNotIn(vs ...string) predicate.ControlObjective
InternalNotesNotIn applies the NotIn predicate on the "internal_notes" field.
func InternalNotesNotNil ¶ added in v0.34.0
func InternalNotesNotNil() predicate.ControlObjective
InternalNotesNotNil applies the NotNil predicate on the "internal_notes" field.
func Name ¶
func Name(v string) predicate.ControlObjective
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.ControlObjective
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.ControlObjective
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.ControlObjective
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.ControlObjective
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.ControlObjective
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.ControlObjective
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.ControlObjective
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.ControlObjective
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.ControlObjective
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.ControlObjective
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.ControlObjective
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.ControlObjective
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.ControlObjective
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.ControlObjective) predicate.ControlObjective
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.ControlObjective) predicate.ControlObjective
Or groups predicates with the OR operator between them.
func OwnerID ¶ added in v0.4.4
func OwnerID(v string) predicate.ControlObjective
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶ added in v0.4.4
func OwnerIDContains(v string) predicate.ControlObjective
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶ added in v0.4.4
func OwnerIDContainsFold(v string) predicate.ControlObjective
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEQ ¶ added in v0.4.4
func OwnerIDEQ(v string) predicate.ControlObjective
OwnerIDEQ applies the EQ predicate on the "owner_id" field.
func OwnerIDEqualFold ¶ added in v0.4.4
func OwnerIDEqualFold(v string) predicate.ControlObjective
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGT ¶ added in v0.4.4
func OwnerIDGT(v string) predicate.ControlObjective
OwnerIDGT applies the GT predicate on the "owner_id" field.
func OwnerIDGTE ¶ added in v0.4.4
func OwnerIDGTE(v string) predicate.ControlObjective
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶ added in v0.4.4
func OwnerIDHasPrefix(v string) predicate.ControlObjective
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶ added in v0.4.4
func OwnerIDHasSuffix(v string) predicate.ControlObjective
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDIn ¶ added in v0.4.4
func OwnerIDIn(vs ...string) predicate.ControlObjective
OwnerIDIn applies the In predicate on the "owner_id" field.
func OwnerIDIsNil ¶ added in v0.7.1
func OwnerIDIsNil() predicate.ControlObjective
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDLT ¶ added in v0.4.4
func OwnerIDLT(v string) predicate.ControlObjective
OwnerIDLT applies the LT predicate on the "owner_id" field.
func OwnerIDLTE ¶ added in v0.4.4
func OwnerIDLTE(v string) predicate.ControlObjective
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶ added in v0.4.4
func OwnerIDNEQ(v string) predicate.ControlObjective
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶ added in v0.4.4
func OwnerIDNotIn(vs ...string) predicate.ControlObjective
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶ added in v0.7.1
func OwnerIDNotNil() predicate.ControlObjective
OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.
func Revision ¶ added in v0.7.5
func Revision(v string) predicate.ControlObjective
Revision applies equality check predicate on the "revision" field. It's identical to RevisionEQ.
func RevisionContains ¶ added in v0.7.5
func RevisionContains(v string) predicate.ControlObjective
RevisionContains applies the Contains predicate on the "revision" field.
func RevisionContainsFold ¶ added in v0.7.5
func RevisionContainsFold(v string) predicate.ControlObjective
RevisionContainsFold applies the ContainsFold predicate on the "revision" field.
func RevisionEQ ¶ added in v0.7.5
func RevisionEQ(v string) predicate.ControlObjective
RevisionEQ applies the EQ predicate on the "revision" field.
func RevisionEqualFold ¶ added in v0.7.5
func RevisionEqualFold(v string) predicate.ControlObjective
RevisionEqualFold applies the EqualFold predicate on the "revision" field.
func RevisionGT ¶ added in v0.7.5
func RevisionGT(v string) predicate.ControlObjective
RevisionGT applies the GT predicate on the "revision" field.
func RevisionGTE ¶ added in v0.7.5
func RevisionGTE(v string) predicate.ControlObjective
RevisionGTE applies the GTE predicate on the "revision" field.
func RevisionHasPrefix ¶ added in v0.7.5
func RevisionHasPrefix(v string) predicate.ControlObjective
RevisionHasPrefix applies the HasPrefix predicate on the "revision" field.
func RevisionHasSuffix ¶ added in v0.7.5
func RevisionHasSuffix(v string) predicate.ControlObjective
RevisionHasSuffix applies the HasSuffix predicate on the "revision" field.
func RevisionIn ¶ added in v0.7.5
func RevisionIn(vs ...string) predicate.ControlObjective
RevisionIn applies the In predicate on the "revision" field.
func RevisionIsNil ¶ added in v0.7.5
func RevisionIsNil() predicate.ControlObjective
RevisionIsNil applies the IsNil predicate on the "revision" field.
func RevisionLT ¶ added in v0.7.5
func RevisionLT(v string) predicate.ControlObjective
RevisionLT applies the LT predicate on the "revision" field.
func RevisionLTE ¶ added in v0.7.5
func RevisionLTE(v string) predicate.ControlObjective
RevisionLTE applies the LTE predicate on the "revision" field.
func RevisionNEQ ¶ added in v0.7.5
func RevisionNEQ(v string) predicate.ControlObjective
RevisionNEQ applies the NEQ predicate on the "revision" field.
func RevisionNotIn ¶ added in v0.7.5
func RevisionNotIn(vs ...string) predicate.ControlObjective
RevisionNotIn applies the NotIn predicate on the "revision" field.
func RevisionNotNil ¶ added in v0.7.5
func RevisionNotNil() predicate.ControlObjective
RevisionNotNil applies the NotNil predicate on the "revision" field.
func SourceEQ ¶
func SourceEQ(v enums.ControlSource) predicate.ControlObjective
SourceEQ applies the EQ predicate on the "source" field.
func SourceIn ¶
func SourceIn(vs ...enums.ControlSource) predicate.ControlObjective
SourceIn applies the In predicate on the "source" field.
func SourceIsNil ¶
func SourceIsNil() predicate.ControlObjective
SourceIsNil applies the IsNil predicate on the "source" field.
func SourceNEQ ¶
func SourceNEQ(v enums.ControlSource) predicate.ControlObjective
SourceNEQ applies the NEQ predicate on the "source" field.
func SourceNotIn ¶
func SourceNotIn(vs ...enums.ControlSource) predicate.ControlObjective
SourceNotIn applies the NotIn predicate on the "source" field.
func SourceNotNil ¶
func SourceNotNil() predicate.ControlObjective
SourceNotNil applies the NotNil predicate on the "source" field.
func SourceValidator ¶ added in v0.7.3
func SourceValidator(s enums.ControlSource) error
SourceValidator is a validator for the "source" field enum values. It is called by the builders before save.
func StatusEQ ¶
func StatusEQ(v enums.ObjectiveStatus) predicate.ControlObjective
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...enums.ObjectiveStatus) predicate.ControlObjective
StatusIn applies the In predicate on the "status" field.
func StatusIsNil ¶
func StatusIsNil() predicate.ControlObjective
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v enums.ObjectiveStatus) predicate.ControlObjective
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...enums.ObjectiveStatus) predicate.ControlObjective
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
func StatusNotNil() predicate.ControlObjective
StatusNotNil applies the NotNil predicate on the "status" field.
func StatusValidator ¶ added in v0.10.1
func StatusValidator(s enums.ObjectiveStatus) error
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func Subcategory ¶ added in v0.7.3
func Subcategory(v string) predicate.ControlObjective
Subcategory applies equality check predicate on the "subcategory" field. It's identical to SubcategoryEQ.
func SubcategoryContains ¶ added in v0.7.3
func SubcategoryContains(v string) predicate.ControlObjective
SubcategoryContains applies the Contains predicate on the "subcategory" field.
func SubcategoryContainsFold ¶ added in v0.7.3
func SubcategoryContainsFold(v string) predicate.ControlObjective
SubcategoryContainsFold applies the ContainsFold predicate on the "subcategory" field.
func SubcategoryEQ ¶ added in v0.7.3
func SubcategoryEQ(v string) predicate.ControlObjective
SubcategoryEQ applies the EQ predicate on the "subcategory" field.
func SubcategoryEqualFold ¶ added in v0.7.3
func SubcategoryEqualFold(v string) predicate.ControlObjective
SubcategoryEqualFold applies the EqualFold predicate on the "subcategory" field.
func SubcategoryGT ¶ added in v0.7.3
func SubcategoryGT(v string) predicate.ControlObjective
SubcategoryGT applies the GT predicate on the "subcategory" field.
func SubcategoryGTE ¶ added in v0.7.3
func SubcategoryGTE(v string) predicate.ControlObjective
SubcategoryGTE applies the GTE predicate on the "subcategory" field.
func SubcategoryHasPrefix ¶ added in v0.7.3
func SubcategoryHasPrefix(v string) predicate.ControlObjective
SubcategoryHasPrefix applies the HasPrefix predicate on the "subcategory" field.
func SubcategoryHasSuffix ¶ added in v0.7.3
func SubcategoryHasSuffix(v string) predicate.ControlObjective
SubcategoryHasSuffix applies the HasSuffix predicate on the "subcategory" field.
func SubcategoryIn ¶ added in v0.7.3
func SubcategoryIn(vs ...string) predicate.ControlObjective
SubcategoryIn applies the In predicate on the "subcategory" field.
func SubcategoryIsNil ¶ added in v0.7.3
func SubcategoryIsNil() predicate.ControlObjective
SubcategoryIsNil applies the IsNil predicate on the "subcategory" field.
func SubcategoryLT ¶ added in v0.7.3
func SubcategoryLT(v string) predicate.ControlObjective
SubcategoryLT applies the LT predicate on the "subcategory" field.
func SubcategoryLTE ¶ added in v0.7.3
func SubcategoryLTE(v string) predicate.ControlObjective
SubcategoryLTE applies the LTE predicate on the "subcategory" field.
func SubcategoryNEQ ¶ added in v0.7.3
func SubcategoryNEQ(v string) predicate.ControlObjective
SubcategoryNEQ applies the NEQ predicate on the "subcategory" field.
func SubcategoryNotIn ¶ added in v0.7.3
func SubcategoryNotIn(vs ...string) predicate.ControlObjective
SubcategoryNotIn applies the NotIn predicate on the "subcategory" field.
func SubcategoryNotNil ¶ added in v0.7.3
func SubcategoryNotNil() predicate.ControlObjective
SubcategoryNotNil applies the NotNil predicate on the "subcategory" field.
func SystemInternalID ¶ added in v0.34.0
func SystemInternalID(v string) predicate.ControlObjective
SystemInternalID applies equality check predicate on the "system_internal_id" field. It's identical to SystemInternalIDEQ.
func SystemInternalIDContains ¶ added in v0.34.0
func SystemInternalIDContains(v string) predicate.ControlObjective
SystemInternalIDContains applies the Contains predicate on the "system_internal_id" field.
func SystemInternalIDContainsFold ¶ added in v0.34.0
func SystemInternalIDContainsFold(v string) predicate.ControlObjective
SystemInternalIDContainsFold applies the ContainsFold predicate on the "system_internal_id" field.
func SystemInternalIDEQ ¶ added in v0.34.0
func SystemInternalIDEQ(v string) predicate.ControlObjective
SystemInternalIDEQ applies the EQ predicate on the "system_internal_id" field.
func SystemInternalIDEqualFold ¶ added in v0.34.0
func SystemInternalIDEqualFold(v string) predicate.ControlObjective
SystemInternalIDEqualFold applies the EqualFold predicate on the "system_internal_id" field.
func SystemInternalIDGT ¶ added in v0.34.0
func SystemInternalIDGT(v string) predicate.ControlObjective
SystemInternalIDGT applies the GT predicate on the "system_internal_id" field.
func SystemInternalIDGTE ¶ added in v0.34.0
func SystemInternalIDGTE(v string) predicate.ControlObjective
SystemInternalIDGTE applies the GTE predicate on the "system_internal_id" field.
func SystemInternalIDHasPrefix ¶ added in v0.34.0
func SystemInternalIDHasPrefix(v string) predicate.ControlObjective
SystemInternalIDHasPrefix applies the HasPrefix predicate on the "system_internal_id" field.
func SystemInternalIDHasSuffix ¶ added in v0.34.0
func SystemInternalIDHasSuffix(v string) predicate.ControlObjective
SystemInternalIDHasSuffix applies the HasSuffix predicate on the "system_internal_id" field.
func SystemInternalIDIn ¶ added in v0.34.0
func SystemInternalIDIn(vs ...string) predicate.ControlObjective
SystemInternalIDIn applies the In predicate on the "system_internal_id" field.
func SystemInternalIDIsNil ¶ added in v0.34.0
func SystemInternalIDIsNil() predicate.ControlObjective
SystemInternalIDIsNil applies the IsNil predicate on the "system_internal_id" field.
func SystemInternalIDLT ¶ added in v0.34.0
func SystemInternalIDLT(v string) predicate.ControlObjective
SystemInternalIDLT applies the LT predicate on the "system_internal_id" field.
func SystemInternalIDLTE ¶ added in v0.34.0
func SystemInternalIDLTE(v string) predicate.ControlObjective
SystemInternalIDLTE applies the LTE predicate on the "system_internal_id" field.
func SystemInternalIDNEQ ¶ added in v0.34.0
func SystemInternalIDNEQ(v string) predicate.ControlObjective
SystemInternalIDNEQ applies the NEQ predicate on the "system_internal_id" field.
func SystemInternalIDNotIn ¶ added in v0.34.0
func SystemInternalIDNotIn(vs ...string) predicate.ControlObjective
SystemInternalIDNotIn applies the NotIn predicate on the "system_internal_id" field.
func SystemInternalIDNotNil ¶ added in v0.34.0
func SystemInternalIDNotNil() predicate.ControlObjective
SystemInternalIDNotNil applies the NotNil predicate on the "system_internal_id" field.
func SystemOwned ¶ added in v0.34.0
func SystemOwned(v bool) predicate.ControlObjective
SystemOwned applies equality check predicate on the "system_owned" field. It's identical to SystemOwnedEQ.
func SystemOwnedEQ ¶ added in v0.34.0
func SystemOwnedEQ(v bool) predicate.ControlObjective
SystemOwnedEQ applies the EQ predicate on the "system_owned" field.
func SystemOwnedIsNil ¶ added in v0.34.0
func SystemOwnedIsNil() predicate.ControlObjective
SystemOwnedIsNil applies the IsNil predicate on the "system_owned" field.
func SystemOwnedNEQ ¶ added in v0.34.0
func SystemOwnedNEQ(v bool) predicate.ControlObjective
SystemOwnedNEQ applies the NEQ predicate on the "system_owned" field.
func SystemOwnedNotNil ¶ added in v0.34.0
func SystemOwnedNotNil() predicate.ControlObjective
SystemOwnedNotNil applies the NotNil predicate on the "system_owned" field.
func TagsIsNil ¶
func TagsIsNil() predicate.ControlObjective
TagsIsNil applies the IsNil predicate on the "tags" field.
func TagsNotNil ¶
func TagsNotNil() predicate.ControlObjective
TagsNotNil applies the NotNil predicate on the "tags" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.ControlObjective
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.ControlObjective
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.ControlObjective
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.ControlObjective
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.ControlObjective
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.ControlObjective
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.ControlObjective
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.ControlObjective
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.ControlObjective
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.ControlObjective
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.ControlObjective
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v string) predicate.ControlObjective
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
func UpdatedByContains(v string) predicate.ControlObjective
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
func UpdatedByContainsFold(v string) predicate.ControlObjective
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
func UpdatedByEQ(v string) predicate.ControlObjective
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
func UpdatedByEqualFold(v string) predicate.ControlObjective
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v string) predicate.ControlObjective
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v string) predicate.ControlObjective
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
func UpdatedByHasPrefix(v string) predicate.ControlObjective
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
func UpdatedByHasSuffix(v string) predicate.ControlObjective
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...string) predicate.ControlObjective
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.ControlObjective
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v string) predicate.ControlObjective
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v string) predicate.ControlObjective
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v string) predicate.ControlObjective
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...string) predicate.ControlObjective
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.ControlObjective
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 ControlObjective queries.
func ByBlockedGroups ¶ added in v0.4.4
func ByBlockedGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByBlockedGroups orders the results by blocked_groups terms.
func ByBlockedGroupsCount ¶ added in v0.4.4
func ByBlockedGroupsCount(opts ...sql.OrderTermOption) OrderOption
ByBlockedGroupsCount orders the results by blocked_groups count.
func ByCategory ¶ added in v0.7.3
func ByCategory(opts ...sql.OrderTermOption) OrderOption
ByCategory orders the results by the category field.
func ByControlObjectiveType ¶
func ByControlObjectiveType(opts ...sql.OrderTermOption) OrderOption
ByControlObjectiveType orders the results by the control_objective_type field.
func ByControls ¶
func ByControls(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByControls orders the results by controls terms.
func ByControlsCount ¶
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 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 ByDesiredOutcome ¶ added in v0.7.3
func ByDesiredOutcome(opts ...sql.OrderTermOption) OrderOption
ByDesiredOutcome orders the results by the desired_outcome 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.4
func ByEditors(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEditors orders the results by editors terms.
func ByEditorsCount ¶ added in v0.4.4
func ByEditorsCount(opts ...sql.OrderTermOption) OrderOption
ByEditorsCount orders the results by editors count.
func ByEvidence ¶ added in v0.6.19
func ByEvidence(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEvidence orders the results by evidence terms.
func ByEvidenceCount ¶ added in v0.6.19
func ByEvidenceCount(opts ...sql.OrderTermOption) OrderOption
ByEvidenceCount orders the results by evidence count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByInternalNotes ¶ added in v0.34.0
func ByInternalNotes(opts ...sql.OrderTermOption) OrderOption
ByInternalNotes orders the results by the internal_notes field.
func ByInternalPolicies ¶ added in v0.6.1
func ByInternalPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByInternalPolicies orders the results by internal_policies terms.
func ByInternalPoliciesCount ¶ added in v0.6.1
func ByInternalPoliciesCount(opts ...sql.OrderTermOption) OrderOption
ByInternalPoliciesCount orders the results by internal_policies count.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByNarratives ¶
func ByNarratives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNarratives orders the results by narratives terms.
func ByNarrativesCount ¶
func ByNarrativesCount(opts ...sql.OrderTermOption) OrderOption
ByNarrativesCount orders the results by narratives count.
func ByOwnerField ¶ added in v0.4.4
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByOwnerID ¶ added in v0.4.4
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func ByProcedures ¶
func ByProcedures(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByProcedures orders the results by procedures terms.
func ByProceduresCount ¶
func ByProceduresCount(opts ...sql.OrderTermOption) OrderOption
ByProceduresCount orders the results by procedures count.
func ByPrograms ¶ added in v0.3.5
func ByPrograms(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByPrograms orders the results by programs terms.
func ByProgramsCount ¶ added in v0.3.5
func ByProgramsCount(opts ...sql.OrderTermOption) OrderOption
ByProgramsCount orders the results by programs count.
func ByRevision ¶ added in v0.7.5
func ByRevision(opts ...sql.OrderTermOption) OrderOption
ByRevision orders the results by the revision field.
func ByRisks ¶
func ByRisks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByRisks orders the results by risks terms.
func ByRisksCount ¶
func ByRisksCount(opts ...sql.OrderTermOption) OrderOption
ByRisksCount orders the results by risks count.
func BySource ¶
func BySource(opts ...sql.OrderTermOption) OrderOption
BySource orders the results by the source field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func BySubcategory ¶ added in v0.7.3
func BySubcategory(opts ...sql.OrderTermOption) OrderOption
BySubcategory orders the results by the subcategory field.
func BySubcontrols ¶
func BySubcontrols(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
BySubcontrols orders the results by subcontrols terms.
func BySubcontrolsCount ¶
func BySubcontrolsCount(opts ...sql.OrderTermOption) OrderOption
BySubcontrolsCount orders the results by subcontrols count.
func BySystemInternalID ¶ added in v0.34.0
func BySystemInternalID(opts ...sql.OrderTermOption) OrderOption
BySystemInternalID orders the results by the system_internal_id field.
func BySystemOwned ¶ added in v0.34.0
func BySystemOwned(opts ...sql.OrderTermOption) OrderOption
BySystemOwned orders the results by the system_owned field.
func ByTasks ¶ added in v0.3.4
func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTasks orders the results by tasks terms.
func ByTasksCount ¶ added in v0.3.4
func ByTasksCount(opts ...sql.OrderTermOption) OrderOption
ByTasksCount orders the results by tasks count.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.
func ByViewers ¶ added in v0.4.4
func ByViewers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByViewers orders the results by viewers terms.
func ByViewersCount ¶ added in v0.4.4
func ByViewersCount(opts ...sql.OrderTermOption) OrderOption
ByViewersCount orders the results by viewers count.