Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Program) predicate.Program
- func AuditorReadComments(v bool) predicate.Program
- func AuditorReadCommentsEQ(v bool) predicate.Program
- func AuditorReadCommentsNEQ(v bool) predicate.Program
- func AuditorReady(v bool) predicate.Program
- func AuditorReadyEQ(v bool) predicate.Program
- func AuditorReadyNEQ(v bool) predicate.Program
- func AuditorWriteComments(v bool) predicate.Program
- func AuditorWriteCommentsEQ(v bool) predicate.Program
- func AuditorWriteCommentsNEQ(v bool) predicate.Program
- func CreatedAt(v time.Time) predicate.Program
- func CreatedAtEQ(v time.Time) predicate.Program
- func CreatedAtGT(v time.Time) predicate.Program
- func CreatedAtGTE(v time.Time) predicate.Program
- func CreatedAtIn(vs ...time.Time) predicate.Program
- func CreatedAtIsNil() predicate.Program
- func CreatedAtLT(v time.Time) predicate.Program
- func CreatedAtLTE(v time.Time) predicate.Program
- func CreatedAtNEQ(v time.Time) predicate.Program
- func CreatedAtNotIn(vs ...time.Time) predicate.Program
- func CreatedAtNotNil() predicate.Program
- func CreatedBy(v string) predicate.Program
- func CreatedByContains(v string) predicate.Program
- func CreatedByContainsFold(v string) predicate.Program
- func CreatedByEQ(v string) predicate.Program
- func CreatedByEqualFold(v string) predicate.Program
- func CreatedByGT(v string) predicate.Program
- func CreatedByGTE(v string) predicate.Program
- func CreatedByHasPrefix(v string) predicate.Program
- func CreatedByHasSuffix(v string) predicate.Program
- func CreatedByIn(vs ...string) predicate.Program
- func CreatedByIsNil() predicate.Program
- func CreatedByLT(v string) predicate.Program
- func CreatedByLTE(v string) predicate.Program
- func CreatedByNEQ(v string) predicate.Program
- func CreatedByNotIn(vs ...string) predicate.Program
- func CreatedByNotNil() predicate.Program
- func DeletedAt(v time.Time) predicate.Program
- func DeletedAtEQ(v time.Time) predicate.Program
- func DeletedAtGT(v time.Time) predicate.Program
- func DeletedAtGTE(v time.Time) predicate.Program
- func DeletedAtIn(vs ...time.Time) predicate.Program
- func DeletedAtIsNil() predicate.Program
- func DeletedAtLT(v time.Time) predicate.Program
- func DeletedAtLTE(v time.Time) predicate.Program
- func DeletedAtNEQ(v time.Time) predicate.Program
- func DeletedAtNotIn(vs ...time.Time) predicate.Program
- func DeletedAtNotNil() predicate.Program
- func DeletedBy(v string) predicate.Program
- func DeletedByContains(v string) predicate.Program
- func DeletedByContainsFold(v string) predicate.Program
- func DeletedByEQ(v string) predicate.Program
- func DeletedByEqualFold(v string) predicate.Program
- func DeletedByGT(v string) predicate.Program
- func DeletedByGTE(v string) predicate.Program
- func DeletedByHasPrefix(v string) predicate.Program
- func DeletedByHasSuffix(v string) predicate.Program
- func DeletedByIn(vs ...string) predicate.Program
- func DeletedByIsNil() predicate.Program
- func DeletedByLT(v string) predicate.Program
- func DeletedByLTE(v string) predicate.Program
- func DeletedByNEQ(v string) predicate.Program
- func DeletedByNotIn(vs ...string) predicate.Program
- func DeletedByNotNil() predicate.Program
- func Description(v string) predicate.Program
- func DescriptionContains(v string) predicate.Program
- func DescriptionContainsFold(v string) predicate.Program
- func DescriptionEQ(v string) predicate.Program
- func DescriptionEqualFold(v string) predicate.Program
- func DescriptionGT(v string) predicate.Program
- func DescriptionGTE(v string) predicate.Program
- func DescriptionHasPrefix(v string) predicate.Program
- func DescriptionHasSuffix(v string) predicate.Program
- func DescriptionIn(vs ...string) predicate.Program
- func DescriptionIsNil() predicate.Program
- func DescriptionLT(v string) predicate.Program
- func DescriptionLTE(v string) predicate.Program
- func DescriptionNEQ(v string) predicate.Program
- func DescriptionNotIn(vs ...string) predicate.Program
- func DescriptionNotNil() predicate.Program
- func EndDate(v time.Time) predicate.Program
- func EndDateEQ(v time.Time) predicate.Program
- func EndDateGT(v time.Time) predicate.Program
- func EndDateGTE(v time.Time) predicate.Program
- func EndDateIn(vs ...time.Time) predicate.Program
- func EndDateIsNil() predicate.Program
- func EndDateLT(v time.Time) predicate.Program
- func EndDateLTE(v time.Time) predicate.Program
- func EndDateNEQ(v time.Time) predicate.Program
- func EndDateNotIn(vs ...time.Time) predicate.Program
- func EndDateNotNil() predicate.Program
- func HasActionPlans() predicate.Program
- func HasActionPlansWith(preds ...predicate.ActionPlan) predicate.Program
- func HasBlockedGroups() predicate.Program
- func HasBlockedGroupsWith(preds ...predicate.Group) predicate.Program
- func HasControlObjectives() predicate.Program
- func HasControlObjectivesWith(preds ...predicate.ControlObjective) predicate.Program
- func HasControls() predicate.Program
- func HasControlsWith(preds ...predicate.Control) predicate.Program
- func HasEditors() predicate.Program
- func HasEditorsWith(preds ...predicate.Group) predicate.Program
- func HasFiles() predicate.Program
- func HasFilesWith(preds ...predicate.File) predicate.Program
- func HasInternalPolicies() predicate.Program
- func HasInternalPoliciesWith(preds ...predicate.InternalPolicy) predicate.Program
- func HasMembers() predicate.Program
- func HasMembersWith(preds ...predicate.ProgramMembership) predicate.Program
- func HasNarratives() predicate.Program
- func HasNarrativesWith(preds ...predicate.Narrative) predicate.Program
- func HasNotes() predicate.Program
- func HasNotesWith(preds ...predicate.Note) predicate.Program
- func HasOwner() predicate.Program
- func HasOwnerWith(preds ...predicate.Organization) predicate.Program
- func HasProcedures() predicate.Program
- func HasProceduresWith(preds ...predicate.Procedure) predicate.Program
- func HasRisks() predicate.Program
- func HasRisksWith(preds ...predicate.Risk) predicate.Program
- func HasStandards() predicate.Program
- func HasStandardsWith(preds ...predicate.Standard) predicate.Program
- func HasSubcontrols() predicate.Program
- func HasSubcontrolsWith(preds ...predicate.Subcontrol) predicate.Program
- func HasTasks() predicate.Program
- func HasTasksWith(preds ...predicate.Task) predicate.Program
- func HasUsers() predicate.Program
- func HasUsersWith(preds ...predicate.User) predicate.Program
- func HasViewers() predicate.Program
- func HasViewersWith(preds ...predicate.Group) predicate.Program
- func ID(id string) predicate.Program
- func IDContainsFold(id string) predicate.Program
- func IDEQ(id string) predicate.Program
- func IDEqualFold(id string) predicate.Program
- func IDGT(id string) predicate.Program
- func IDGTE(id string) predicate.Program
- func IDIn(ids ...string) predicate.Program
- func IDLT(id string) predicate.Program
- func IDLTE(id string) predicate.Program
- func IDNEQ(id string) predicate.Program
- func IDNotIn(ids ...string) predicate.Program
- func MappingID(v string) predicate.Program
- func MappingIDContains(v string) predicate.Program
- func MappingIDContainsFold(v string) predicate.Program
- func MappingIDEQ(v string) predicate.Program
- func MappingIDEqualFold(v string) predicate.Program
- func MappingIDGT(v string) predicate.Program
- func MappingIDGTE(v string) predicate.Program
- func MappingIDHasPrefix(v string) predicate.Program
- func MappingIDHasSuffix(v string) predicate.Program
- func MappingIDIn(vs ...string) predicate.Program
- func MappingIDLT(v string) predicate.Program
- func MappingIDLTE(v string) predicate.Program
- func MappingIDNEQ(v string) predicate.Program
- func MappingIDNotIn(vs ...string) predicate.Program
- func Name(v string) predicate.Program
- func NameContains(v string) predicate.Program
- func NameContainsFold(v string) predicate.Program
- func NameEQ(v string) predicate.Program
- func NameEqualFold(v string) predicate.Program
- func NameGT(v string) predicate.Program
- func NameGTE(v string) predicate.Program
- func NameHasPrefix(v string) predicate.Program
- func NameHasSuffix(v string) predicate.Program
- func NameIn(vs ...string) predicate.Program
- func NameLT(v string) predicate.Program
- func NameLTE(v string) predicate.Program
- func NameNEQ(v string) predicate.Program
- func NameNotIn(vs ...string) predicate.Program
- func Not(p predicate.Program) predicate.Program
- func Or(predicates ...predicate.Program) predicate.Program
- func OwnerID(v string) predicate.Program
- func OwnerIDContains(v string) predicate.Program
- func OwnerIDContainsFold(v string) predicate.Program
- func OwnerIDEQ(v string) predicate.Program
- func OwnerIDEqualFold(v string) predicate.Program
- func OwnerIDGT(v string) predicate.Program
- func OwnerIDGTE(v string) predicate.Program
- func OwnerIDHasPrefix(v string) predicate.Program
- func OwnerIDHasSuffix(v string) predicate.Program
- func OwnerIDIn(vs ...string) predicate.Program
- func OwnerIDIsNil() predicate.Program
- func OwnerIDLT(v string) predicate.Program
- func OwnerIDLTE(v string) predicate.Program
- func OwnerIDNEQ(v string) predicate.Program
- func OwnerIDNotIn(vs ...string) predicate.Program
- func OwnerIDNotNil() predicate.Program
- func StartDate(v time.Time) predicate.Program
- func StartDateEQ(v time.Time) predicate.Program
- func StartDateGT(v time.Time) predicate.Program
- func StartDateGTE(v time.Time) predicate.Program
- func StartDateIn(vs ...time.Time) predicate.Program
- func StartDateIsNil() predicate.Program
- func StartDateLT(v time.Time) predicate.Program
- func StartDateLTE(v time.Time) predicate.Program
- func StartDateNEQ(v time.Time) predicate.Program
- func StartDateNotIn(vs ...time.Time) predicate.Program
- func StartDateNotNil() predicate.Program
- func StatusEQ(v enums.ProgramStatus) predicate.Program
- func StatusIn(vs ...enums.ProgramStatus) predicate.Program
- func StatusNEQ(v enums.ProgramStatus) predicate.Program
- func StatusNotIn(vs ...enums.ProgramStatus) predicate.Program
- func StatusValidator(s enums.ProgramStatus) error
- func TagsIsNil() predicate.Program
- func TagsNotNil() predicate.Program
- func UpdatedAt(v time.Time) predicate.Program
- func UpdatedAtEQ(v time.Time) predicate.Program
- func UpdatedAtGT(v time.Time) predicate.Program
- func UpdatedAtGTE(v time.Time) predicate.Program
- func UpdatedAtIn(vs ...time.Time) predicate.Program
- func UpdatedAtIsNil() predicate.Program
- func UpdatedAtLT(v time.Time) predicate.Program
- func UpdatedAtLTE(v time.Time) predicate.Program
- func UpdatedAtNEQ(v time.Time) predicate.Program
- func UpdatedAtNotIn(vs ...time.Time) predicate.Program
- func UpdatedAtNotNil() predicate.Program
- func UpdatedBy(v string) predicate.Program
- func UpdatedByContains(v string) predicate.Program
- func UpdatedByContainsFold(v string) predicate.Program
- func UpdatedByEQ(v string) predicate.Program
- func UpdatedByEqualFold(v string) predicate.Program
- func UpdatedByGT(v string) predicate.Program
- func UpdatedByGTE(v string) predicate.Program
- func UpdatedByHasPrefix(v string) predicate.Program
- func UpdatedByHasSuffix(v string) predicate.Program
- func UpdatedByIn(vs ...string) predicate.Program
- func UpdatedByIsNil() predicate.Program
- func UpdatedByLT(v string) predicate.Program
- func UpdatedByLTE(v string) predicate.Program
- func UpdatedByNEQ(v string) predicate.Program
- func UpdatedByNotIn(vs ...string) predicate.Program
- func UpdatedByNotNil() predicate.Program
- func ValidColumn(column string) bool
- type OrderOption
- func ByActionPlans(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByActionPlansCount(opts ...sql.OrderTermOption) OrderOption
- func ByAuditorReadComments(opts ...sql.OrderTermOption) OrderOption
- func ByAuditorReady(opts ...sql.OrderTermOption) OrderOption
- func ByAuditorWriteComments(opts ...sql.OrderTermOption) OrderOption
- func ByBlockedGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBlockedGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByControlObjectives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByControlObjectivesCount(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 ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByEditors(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEditorsCount(opts ...sql.OrderTermOption) OrderOption
- func ByEndDate(opts ...sql.OrderTermOption) OrderOption
- func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByInternalPolicies(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByInternalPoliciesCount(opts ...sql.OrderTermOption) OrderOption
- func ByMappingID(opts ...sql.OrderTermOption) OrderOption
- func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByMembersCount(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 ByNotes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNotesCount(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 ByRisks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRisksCount(opts ...sql.OrderTermOption) OrderOption
- func ByStandards(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByStandardsCount(opts ...sql.OrderTermOption) OrderOption
- func ByStartDate(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 ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByUsersCount(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 program type in the database. Label = "program" // 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" // FieldMappingID holds the string denoting the mapping_id field in the database. FieldMappingID = "mapping_id" // 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" // 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" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldStartDate holds the string denoting the start_date field in the database. FieldStartDate = "start_date" // FieldEndDate holds the string denoting the end_date field in the database. FieldEndDate = "end_date" // FieldAuditorReady holds the string denoting the auditor_ready field in the database. FieldAuditorReady = "auditor_ready" // FieldAuditorWriteComments holds the string denoting the auditor_write_comments field in the database. FieldAuditorWriteComments = "auditor_write_comments" // FieldAuditorReadComments holds the string denoting the auditor_read_comments field in the database. FieldAuditorReadComments = "auditor_read_comments" // 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" // EdgeControlObjectives holds the string denoting the control_objectives edge name in mutations. EdgeControlObjectives = "control_objectives" // 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" // EdgeTasks holds the string denoting the tasks edge name in mutations. EdgeTasks = "tasks" // EdgeNotes holds the string denoting the notes edge name in mutations. EdgeNotes = "notes" // EdgeFiles holds the string denoting the files edge name in mutations. EdgeFiles = "files" // EdgeNarratives holds the string denoting the narratives edge name in mutations. EdgeNarratives = "narratives" // EdgeActionPlans holds the string denoting the action_plans edge name in mutations. EdgeActionPlans = "action_plans" // EdgeStandards holds the string denoting the standards edge name in mutations. EdgeStandards = "standards" // EdgeUsers holds the string denoting the users edge name in mutations. EdgeUsers = "users" // EdgeMembers holds the string denoting the members edge name in mutations. EdgeMembers = "members" // Table holds the table name of the program in the database. Table = "programs" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "programs" // 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 = "program_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 = "program_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 = "program_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 = "program_controls" // 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 = "program_subcontrols" // 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" // ControlObjectivesTable is the table that holds the control_objectives relation/edge. The primary key declared below. ControlObjectivesTable = "program_control_objectives" // ControlObjectivesInverseTable is the table name for the ControlObjective entity. // It exists in this package in order to avoid circular dependency with the "controlobjective" package. ControlObjectivesInverseTable = "control_objectives" // InternalPoliciesTable is the table that holds the internal_policies relation/edge. The primary key declared below. InternalPoliciesTable = "program_internal_policies" // 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. The primary key declared below. ProceduresTable = "program_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" // RisksTable is the table that holds the risks relation/edge. The primary key declared below. RisksTable = "program_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" // TasksTable is the table that holds the tasks relation/edge. The primary key declared below. TasksTable = "program_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" // NotesTable is the table that holds the notes relation/edge. The primary key declared below. NotesTable = "program_notes" // NotesInverseTable is the table name for the Note entity. // It exists in this package in order to avoid circular dependency with the "note" package. NotesInverseTable = "notes" // FilesTable is the table that holds the files relation/edge. The primary key declared below. FilesTable = "program_files" // FilesInverseTable is the table name for the File entity. // It exists in this package in order to avoid circular dependency with the "file" package. FilesInverseTable = "files" // NarrativesTable is the table that holds the narratives relation/edge. The primary key declared below. NarrativesTable = "program_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" // ActionPlansTable is the table that holds the action_plans relation/edge. The primary key declared below. ActionPlansTable = "program_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" // StandardsTable is the table that holds the standards relation/edge. The primary key declared below. StandardsTable = "standard_programs" // StandardsInverseTable is the table name for the Standard entity. // It exists in this package in order to avoid circular dependency with the "standard" package. StandardsInverseTable = "standards" // UsersTable is the table that holds the users relation/edge. The primary key declared below. UsersTable = "program_memberships" // UsersInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UsersInverseTable = "users" // MembersTable is the table that holds the members relation/edge. MembersTable = "program_memberships" // MembersInverseTable is the table name for the ProgramMembership entity. // It exists in this package in order to avoid circular dependency with the "programmembership" package. MembersInverseTable = "program_memberships" // MembersColumn is the table column denoting the members relation/edge. MembersColumn = "program_id" )
const DefaultStatus enums.ProgramStatus = "NOT_STARTED"
Variables ¶
var ( // BlockedGroupsPrimaryKey and BlockedGroupsColumn2 are the table columns denoting the // primary key for the blocked_groups relation (M2M). BlockedGroupsPrimaryKey = []string{"program_id", "group_id"} // EditorsPrimaryKey and EditorsColumn2 are the table columns denoting the // primary key for the editors relation (M2M). EditorsPrimaryKey = []string{"program_id", "group_id"} // ViewersPrimaryKey and ViewersColumn2 are the table columns denoting the // primary key for the viewers relation (M2M). ViewersPrimaryKey = []string{"program_id", "group_id"} // ControlsPrimaryKey and ControlsColumn2 are the table columns denoting the // primary key for the controls relation (M2M). ControlsPrimaryKey = []string{"program_id", "control_id"} // SubcontrolsPrimaryKey and SubcontrolsColumn2 are the table columns denoting the // primary key for the subcontrols relation (M2M). SubcontrolsPrimaryKey = []string{"program_id", "subcontrol_id"} // ControlObjectivesPrimaryKey and ControlObjectivesColumn2 are the table columns denoting the // primary key for the control_objectives relation (M2M). ControlObjectivesPrimaryKey = []string{"program_id", "control_objective_id"} // InternalPoliciesPrimaryKey and InternalPoliciesColumn2 are the table columns denoting the // primary key for the internal_policies relation (M2M). InternalPoliciesPrimaryKey = []string{"program_id", "internal_policy_id"} // ProceduresPrimaryKey and ProceduresColumn2 are the table columns denoting the // primary key for the procedures relation (M2M). ProceduresPrimaryKey = []string{"program_id", "procedure_id"} // RisksPrimaryKey and RisksColumn2 are the table columns denoting the // primary key for the risks relation (M2M). RisksPrimaryKey = []string{"program_id", "risk_id"} // TasksPrimaryKey and TasksColumn2 are the table columns denoting the // primary key for the tasks relation (M2M). TasksPrimaryKey = []string{"program_id", "task_id"} // NotesPrimaryKey and NotesColumn2 are the table columns denoting the // primary key for the notes relation (M2M). NotesPrimaryKey = []string{"program_id", "note_id"} // FilesPrimaryKey and FilesColumn2 are the table columns denoting the // primary key for the files relation (M2M). FilesPrimaryKey = []string{"program_id", "file_id"} // NarrativesPrimaryKey and NarrativesColumn2 are the table columns denoting the // primary key for the narratives relation (M2M). NarrativesPrimaryKey = []string{"program_id", "narrative_id"} // ActionPlansPrimaryKey and ActionPlansColumn2 are the table columns denoting the // primary key for the action_plans relation (M2M). ActionPlansPrimaryKey = []string{"program_id", "action_plan_id"} // StandardsPrimaryKey and StandardsColumn2 are the table columns denoting the // primary key for the standards relation (M2M). StandardsPrimaryKey = []string{"standard_id", "program_id"} // UsersPrimaryKey and UsersColumn2 are the table columns denoting the // primary key for the users relation (M2M). UsersPrimaryKey = []string{"user_id", "program_id"} )
var ( Hooks [8]ent.Hook Interceptors [3]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 // DefaultMappingID holds the default value on creation for the "mapping_id" field. DefaultMappingID func() string // DefaultTags holds the default value on creation for the "tags" field. DefaultTags []string // 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 // DefaultAuditorReady holds the default value on creation for the "auditor_ready" field. DefaultAuditorReady bool // DefaultAuditorWriteComments holds the default value on creation for the "auditor_write_comments" field. DefaultAuditorWriteComments bool // DefaultAuditorReadComments holds the default value on creation for the "auditor_read_comments" field. DefaultAuditorReadComments bool // 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, FieldMappingID, FieldDeletedAt, FieldDeletedBy, FieldTags, FieldOwnerID, FieldName, FieldDescription, FieldStatus, FieldStartDate, FieldEndDate, FieldAuditorReady, FieldAuditorWriteComments, FieldAuditorReadComments, }
Columns holds all SQL columns for program fields.
Functions ¶
func AuditorReadComments ¶
AuditorReadComments applies equality check predicate on the "auditor_read_comments" field. It's identical to AuditorReadCommentsEQ.
func AuditorReadCommentsEQ ¶
AuditorReadCommentsEQ applies the EQ predicate on the "auditor_read_comments" field.
func AuditorReadCommentsNEQ ¶
AuditorReadCommentsNEQ applies the NEQ predicate on the "auditor_read_comments" field.
func AuditorReady ¶
AuditorReady applies equality check predicate on the "auditor_ready" field. It's identical to AuditorReadyEQ.
func AuditorReadyEQ ¶
AuditorReadyEQ applies the EQ predicate on the "auditor_ready" field.
func AuditorReadyNEQ ¶
AuditorReadyNEQ applies the NEQ predicate on the "auditor_ready" field.
func AuditorWriteComments ¶
AuditorWriteComments applies equality check predicate on the "auditor_write_comments" field. It's identical to AuditorWriteCommentsEQ.
func AuditorWriteCommentsEQ ¶
AuditorWriteCommentsEQ applies the EQ predicate on the "auditor_write_comments" field.
func AuditorWriteCommentsNEQ ¶
AuditorWriteCommentsNEQ applies the NEQ predicate on the "auditor_write_comments" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func EndDate ¶
EndDate applies equality check predicate on the "end_date" field. It's identical to EndDateEQ.
func EndDateGTE ¶
EndDateGTE applies the GTE predicate on the "end_date" field.
func EndDateIsNil ¶
EndDateIsNil applies the IsNil predicate on the "end_date" field.
func EndDateLTE ¶
EndDateLTE applies the LTE predicate on the "end_date" field.
func EndDateNEQ ¶
EndDateNEQ applies the NEQ predicate on the "end_date" field.
func EndDateNotIn ¶
EndDateNotIn applies the NotIn predicate on the "end_date" field.
func EndDateNotNil ¶
EndDateNotNil applies the NotNil predicate on the "end_date" 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.Program
HasActionPlansWith applies the HasEdge predicate on the "action_plans" edge with a given conditions (other predicates).
func HasBlockedGroups ¶ added in v0.4.2
HasBlockedGroups applies the HasEdge predicate on the "blocked_groups" edge.
func HasBlockedGroupsWith ¶ added in v0.4.2
HasBlockedGroupsWith applies the HasEdge predicate on the "blocked_groups" edge with a given conditions (other predicates).
func HasControlObjectives ¶ added in v0.6.1
HasControlObjectives applies the HasEdge predicate on the "control_objectives" edge.
func HasControlObjectivesWith ¶ added in v0.6.1
func HasControlObjectivesWith(preds ...predicate.ControlObjective) predicate.Program
HasControlObjectivesWith applies the HasEdge predicate on the "control_objectives" edge with a given conditions (other predicates).
func HasControls ¶
HasControls applies the HasEdge predicate on the "controls" edge.
func HasControlsWith ¶
HasControlsWith applies the HasEdge predicate on the "controls" edge with a given conditions (other predicates).
func HasEditors ¶ added in v0.4.2
HasEditors applies the HasEdge predicate on the "editors" edge.
func HasEditorsWith ¶ added in v0.4.2
HasEditorsWith applies the HasEdge predicate on the "editors" edge with a given conditions (other predicates).
func HasFilesWith ¶
HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).
func HasInternalPolicies ¶ added in v0.6.1
HasInternalPolicies applies the HasEdge predicate on the "internal_policies" edge.
func HasInternalPoliciesWith ¶ added in v0.6.1
func HasInternalPoliciesWith(preds ...predicate.InternalPolicy) predicate.Program
HasInternalPoliciesWith applies the HasEdge predicate on the "internal_policies" edge with a given conditions (other predicates).
func HasMembers ¶
HasMembers applies the HasEdge predicate on the "members" edge.
func HasMembersWith ¶
func HasMembersWith(preds ...predicate.ProgramMembership) predicate.Program
HasMembersWith applies the HasEdge predicate on the "members" edge with a given conditions (other predicates).
func HasNarratives ¶
HasNarratives applies the HasEdge predicate on the "narratives" edge.
func HasNarrativesWith ¶
HasNarrativesWith applies the HasEdge predicate on the "narratives" edge with a given conditions (other predicates).
func HasNotesWith ¶
HasNotesWith applies the HasEdge predicate on the "notes" edge with a given conditions (other predicates).
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.Program
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasProcedures ¶
HasProcedures applies the HasEdge predicate on the "procedures" edge.
func HasProceduresWith ¶
HasProceduresWith applies the HasEdge predicate on the "procedures" edge with a given conditions (other predicates).
func HasRisksWith ¶
HasRisksWith applies the HasEdge predicate on the "risks" edge with a given conditions (other predicates).
func HasStandards ¶
HasStandards applies the HasEdge predicate on the "standards" edge.
func HasStandardsWith ¶
HasStandardsWith applies the HasEdge predicate on the "standards" edge with a given conditions (other predicates).
func HasSubcontrols ¶
HasSubcontrols applies the HasEdge predicate on the "subcontrols" edge.
func HasSubcontrolsWith ¶
func HasSubcontrolsWith(preds ...predicate.Subcontrol) predicate.Program
HasSubcontrolsWith applies the HasEdge predicate on the "subcontrols" edge with a given conditions (other predicates).
func HasTasksWith ¶
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func HasUsersWith ¶
HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).
func HasViewers ¶ added in v0.4.2
HasViewers applies the HasEdge predicate on the "viewers" edge.
func HasViewersWith ¶ added in v0.4.2
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 MappingID ¶
MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingIDContains ¶
MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContainsFold ¶
MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDEQ ¶
MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEqualFold ¶
MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDGT ¶
MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGTE ¶
MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDHasPrefix ¶
MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasSuffix ¶
MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDIn ¶
MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDLT ¶
MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLTE ¶
MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDNEQ ¶
MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNotIn ¶
MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.
func 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 ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEqualFold ¶
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGTE ¶
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDIsNil ¶
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDLTE ¶
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶
OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.
func StartDate ¶
StartDate applies equality check predicate on the "start_date" field. It's identical to StartDateEQ.
func StartDateEQ ¶
StartDateEQ applies the EQ predicate on the "start_date" field.
func StartDateGT ¶
StartDateGT applies the GT predicate on the "start_date" field.
func StartDateGTE ¶
StartDateGTE applies the GTE predicate on the "start_date" field.
func StartDateIn ¶
StartDateIn applies the In predicate on the "start_date" field.
func StartDateIsNil ¶
StartDateIsNil applies the IsNil predicate on the "start_date" field.
func StartDateLT ¶
StartDateLT applies the LT predicate on the "start_date" field.
func StartDateLTE ¶
StartDateLTE applies the LTE predicate on the "start_date" field.
func StartDateNEQ ¶
StartDateNEQ applies the NEQ predicate on the "start_date" field.
func StartDateNotIn ¶
StartDateNotIn applies the NotIn predicate on the "start_date" field.
func StartDateNotNil ¶
StartDateNotNil applies the NotNil predicate on the "start_date" field.
func StatusEQ ¶
func StatusEQ(v enums.ProgramStatus) predicate.Program
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...enums.ProgramStatus) predicate.Program
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v enums.ProgramStatus) predicate.Program
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...enums.ProgramStatus) predicate.Program
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
func StatusValidator(s enums.ProgramStatus) 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 Program 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 ByAuditorReadComments ¶
func ByAuditorReadComments(opts ...sql.OrderTermOption) OrderOption
ByAuditorReadComments orders the results by the auditor_read_comments field.
func ByAuditorReady ¶
func ByAuditorReady(opts ...sql.OrderTermOption) OrderOption
ByAuditorReady orders the results by the auditor_ready field.
func ByAuditorWriteComments ¶
func ByAuditorWriteComments(opts ...sql.OrderTermOption) OrderOption
ByAuditorWriteComments orders the results by the auditor_write_comments field.
func ByBlockedGroups ¶ added in v0.4.2
func ByBlockedGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByBlockedGroups orders the results by blocked_groups terms.
func ByBlockedGroupsCount ¶ added in v0.4.2
func ByBlockedGroupsCount(opts ...sql.OrderTermOption) OrderOption
ByBlockedGroupsCount orders the results by blocked_groups count.
func ByControlObjectives ¶ added in v0.6.1
func ByControlObjectives(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByControlObjectives orders the results by control_objectives terms.
func ByControlObjectivesCount ¶ added in v0.6.1
func ByControlObjectivesCount(opts ...sql.OrderTermOption) OrderOption
ByControlObjectivesCount orders the results by control_objectives count.
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 ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByEditors ¶ added in v0.4.2
func ByEditors(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEditors orders the results by editors terms.
func ByEditorsCount ¶ added in v0.4.2
func ByEditorsCount(opts ...sql.OrderTermOption) OrderOption
ByEditorsCount orders the results by editors count.
func ByEndDate ¶
func ByEndDate(opts ...sql.OrderTermOption) OrderOption
ByEndDate orders the results by the end_date field.
func ByFiles ¶
func ByFiles(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByFiles orders the results by files terms.
func ByFilesCount ¶
func ByFilesCount(opts ...sql.OrderTermOption) OrderOption
ByFilesCount orders the results by files count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id 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 ByMappingID ¶
func ByMappingID(opts ...sql.OrderTermOption) OrderOption
ByMappingID orders the results by the mapping_id field.
func ByMembers ¶
func ByMembers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByMembers orders the results by members terms.
func ByMembersCount ¶
func ByMembersCount(opts ...sql.OrderTermOption) OrderOption
ByMembersCount orders the results by members 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 ByNotes ¶
func ByNotes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNotes orders the results by notes terms.
func ByNotesCount ¶
func ByNotesCount(opts ...sql.OrderTermOption) OrderOption
ByNotesCount orders the results by notes count.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByOwnerID ¶
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 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 ByStandards ¶
func ByStandards(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByStandards orders the results by standards terms.
func ByStandardsCount ¶
func ByStandardsCount(opts ...sql.OrderTermOption) OrderOption
ByStandardsCount orders the results by standards count.
func ByStartDate ¶
func ByStartDate(opts ...sql.OrderTermOption) OrderOption
ByStartDate orders the results by the start_date field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status 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 ByTasks ¶
func ByTasks(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByTasks orders the results by tasks terms.
func ByTasksCount ¶
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 ByUsers ¶
func ByUsers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByUsers orders the results by users terms.
func ByUsersCount ¶
func ByUsersCount(opts ...sql.OrderTermOption) OrderOption
ByUsersCount orders the results by users count.
func ByViewers ¶ added in v0.4.2
func ByViewers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByViewers orders the results by viewers terms.
func ByViewersCount ¶ added in v0.4.2
func ByViewersCount(opts ...sql.OrderTermOption) OrderOption
ByViewersCount orders the results by viewers count.