Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.InternalPolicy) predicate.InternalPolicy
- func Background(v string) predicate.InternalPolicy
- func BackgroundContains(v string) predicate.InternalPolicy
- func BackgroundContainsFold(v string) predicate.InternalPolicy
- func BackgroundEQ(v string) predicate.InternalPolicy
- func BackgroundEqualFold(v string) predicate.InternalPolicy
- func BackgroundGT(v string) predicate.InternalPolicy
- func BackgroundGTE(v string) predicate.InternalPolicy
- func BackgroundHasPrefix(v string) predicate.InternalPolicy
- func BackgroundHasSuffix(v string) predicate.InternalPolicy
- func BackgroundIn(vs ...string) predicate.InternalPolicy
- func BackgroundIsNil() predicate.InternalPolicy
- func BackgroundLT(v string) predicate.InternalPolicy
- func BackgroundLTE(v string) predicate.InternalPolicy
- func BackgroundNEQ(v string) predicate.InternalPolicy
- func BackgroundNotIn(vs ...string) predicate.InternalPolicy
- func BackgroundNotNil() predicate.InternalPolicy
- func CreatedAt(v time.Time) predicate.InternalPolicy
- func CreatedAtEQ(v time.Time) predicate.InternalPolicy
- func CreatedAtGT(v time.Time) predicate.InternalPolicy
- func CreatedAtGTE(v time.Time) predicate.InternalPolicy
- func CreatedAtIn(vs ...time.Time) predicate.InternalPolicy
- func CreatedAtIsNil() predicate.InternalPolicy
- func CreatedAtLT(v time.Time) predicate.InternalPolicy
- func CreatedAtLTE(v time.Time) predicate.InternalPolicy
- func CreatedAtNEQ(v time.Time) predicate.InternalPolicy
- func CreatedAtNotIn(vs ...time.Time) predicate.InternalPolicy
- func CreatedAtNotNil() predicate.InternalPolicy
- func CreatedBy(v string) predicate.InternalPolicy
- func CreatedByContains(v string) predicate.InternalPolicy
- func CreatedByContainsFold(v string) predicate.InternalPolicy
- func CreatedByEQ(v string) predicate.InternalPolicy
- func CreatedByEqualFold(v string) predicate.InternalPolicy
- func CreatedByGT(v string) predicate.InternalPolicy
- func CreatedByGTE(v string) predicate.InternalPolicy
- func CreatedByHasPrefix(v string) predicate.InternalPolicy
- func CreatedByHasSuffix(v string) predicate.InternalPolicy
- func CreatedByIn(vs ...string) predicate.InternalPolicy
- func CreatedByIsNil() predicate.InternalPolicy
- func CreatedByLT(v string) predicate.InternalPolicy
- func CreatedByLTE(v string) predicate.InternalPolicy
- func CreatedByNEQ(v string) predicate.InternalPolicy
- func CreatedByNotIn(vs ...string) predicate.InternalPolicy
- func CreatedByNotNil() predicate.InternalPolicy
- func DeletedAt(v time.Time) predicate.InternalPolicy
- func DeletedAtEQ(v time.Time) predicate.InternalPolicy
- func DeletedAtGT(v time.Time) predicate.InternalPolicy
- func DeletedAtGTE(v time.Time) predicate.InternalPolicy
- func DeletedAtIn(vs ...time.Time) predicate.InternalPolicy
- func DeletedAtIsNil() predicate.InternalPolicy
- func DeletedAtLT(v time.Time) predicate.InternalPolicy
- func DeletedAtLTE(v time.Time) predicate.InternalPolicy
- func DeletedAtNEQ(v time.Time) predicate.InternalPolicy
- func DeletedAtNotIn(vs ...time.Time) predicate.InternalPolicy
- func DeletedAtNotNil() predicate.InternalPolicy
- func DeletedBy(v string) predicate.InternalPolicy
- func DeletedByContains(v string) predicate.InternalPolicy
- func DeletedByContainsFold(v string) predicate.InternalPolicy
- func DeletedByEQ(v string) predicate.InternalPolicy
- func DeletedByEqualFold(v string) predicate.InternalPolicy
- func DeletedByGT(v string) predicate.InternalPolicy
- func DeletedByGTE(v string) predicate.InternalPolicy
- func DeletedByHasPrefix(v string) predicate.InternalPolicy
- func DeletedByHasSuffix(v string) predicate.InternalPolicy
- func DeletedByIn(vs ...string) predicate.InternalPolicy
- func DeletedByIsNil() predicate.InternalPolicy
- func DeletedByLT(v string) predicate.InternalPolicy
- func DeletedByLTE(v string) predicate.InternalPolicy
- func DeletedByNEQ(v string) predicate.InternalPolicy
- func DeletedByNotIn(vs ...string) predicate.InternalPolicy
- func DeletedByNotNil() predicate.InternalPolicy
- func Description(v string) predicate.InternalPolicy
- func DescriptionContains(v string) predicate.InternalPolicy
- func DescriptionContainsFold(v string) predicate.InternalPolicy
- func DescriptionEQ(v string) predicate.InternalPolicy
- func DescriptionEqualFold(v string) predicate.InternalPolicy
- func DescriptionGT(v string) predicate.InternalPolicy
- func DescriptionGTE(v string) predicate.InternalPolicy
- func DescriptionHasPrefix(v string) predicate.InternalPolicy
- func DescriptionHasSuffix(v string) predicate.InternalPolicy
- func DescriptionIn(vs ...string) predicate.InternalPolicy
- func DescriptionIsNil() predicate.InternalPolicy
- func DescriptionLT(v string) predicate.InternalPolicy
- func DescriptionLTE(v string) predicate.InternalPolicy
- func DescriptionNEQ(v string) predicate.InternalPolicy
- func DescriptionNotIn(vs ...string) predicate.InternalPolicy
- func DescriptionNotNil() predicate.InternalPolicy
- func DetailsIsNil() predicate.InternalPolicy
- func DetailsNotNil() predicate.InternalPolicy
- func HasBlockedGroups() predicate.InternalPolicy
- func HasBlockedGroupsWith(preds ...predicate.Group) predicate.InternalPolicy
- func HasControlObjectives() predicate.InternalPolicy
- func HasControlObjectivesWith(preds ...predicate.ControlObjective) predicate.InternalPolicy
- func HasControls() predicate.InternalPolicy
- func HasControlsWith(preds ...predicate.Control) predicate.InternalPolicy
- func HasEditors() predicate.InternalPolicy
- func HasEditorsWith(preds ...predicate.Group) predicate.InternalPolicy
- func HasNarratives() predicate.InternalPolicy
- func HasNarrativesWith(preds ...predicate.Narrative) predicate.InternalPolicy
- func HasOwner() predicate.InternalPolicy
- func HasOwnerWith(preds ...predicate.Organization) predicate.InternalPolicy
- func HasProcedures() predicate.InternalPolicy
- func HasProceduresWith(preds ...predicate.Procedure) predicate.InternalPolicy
- func HasPrograms() predicate.InternalPolicy
- func HasProgramsWith(preds ...predicate.Program) predicate.InternalPolicy
- func HasTasks() predicate.InternalPolicy
- func HasTasksWith(preds ...predicate.Task) predicate.InternalPolicy
- func ID(id string) predicate.InternalPolicy
- func IDContainsFold(id string) predicate.InternalPolicy
- func IDEQ(id string) predicate.InternalPolicy
- func IDEqualFold(id string) predicate.InternalPolicy
- func IDGT(id string) predicate.InternalPolicy
- func IDGTE(id string) predicate.InternalPolicy
- func IDIn(ids ...string) predicate.InternalPolicy
- func IDLT(id string) predicate.InternalPolicy
- func IDLTE(id string) predicate.InternalPolicy
- func IDNEQ(id string) predicate.InternalPolicy
- func IDNotIn(ids ...string) predicate.InternalPolicy
- func MappingID(v string) predicate.InternalPolicy
- func MappingIDContains(v string) predicate.InternalPolicy
- func MappingIDContainsFold(v string) predicate.InternalPolicy
- func MappingIDEQ(v string) predicate.InternalPolicy
- func MappingIDEqualFold(v string) predicate.InternalPolicy
- func MappingIDGT(v string) predicate.InternalPolicy
- func MappingIDGTE(v string) predicate.InternalPolicy
- func MappingIDHasPrefix(v string) predicate.InternalPolicy
- func MappingIDHasSuffix(v string) predicate.InternalPolicy
- func MappingIDIn(vs ...string) predicate.InternalPolicy
- func MappingIDLT(v string) predicate.InternalPolicy
- func MappingIDLTE(v string) predicate.InternalPolicy
- func MappingIDNEQ(v string) predicate.InternalPolicy
- func MappingIDNotIn(vs ...string) predicate.InternalPolicy
- func Name(v string) predicate.InternalPolicy
- func NameContains(v string) predicate.InternalPolicy
- func NameContainsFold(v string) predicate.InternalPolicy
- func NameEQ(v string) predicate.InternalPolicy
- func NameEqualFold(v string) predicate.InternalPolicy
- func NameGT(v string) predicate.InternalPolicy
- func NameGTE(v string) predicate.InternalPolicy
- func NameHasPrefix(v string) predicate.InternalPolicy
- func NameHasSuffix(v string) predicate.InternalPolicy
- func NameIn(vs ...string) predicate.InternalPolicy
- func NameLT(v string) predicate.InternalPolicy
- func NameLTE(v string) predicate.InternalPolicy
- func NameNEQ(v string) predicate.InternalPolicy
- func NameNotIn(vs ...string) predicate.InternalPolicy
- func Not(p predicate.InternalPolicy) predicate.InternalPolicy
- func Or(predicates ...predicate.InternalPolicy) predicate.InternalPolicy
- func OwnerID(v string) predicate.InternalPolicy
- func OwnerIDContains(v string) predicate.InternalPolicy
- func OwnerIDContainsFold(v string) predicate.InternalPolicy
- func OwnerIDEQ(v string) predicate.InternalPolicy
- func OwnerIDEqualFold(v string) predicate.InternalPolicy
- func OwnerIDGT(v string) predicate.InternalPolicy
- func OwnerIDGTE(v string) predicate.InternalPolicy
- func OwnerIDHasPrefix(v string) predicate.InternalPolicy
- func OwnerIDHasSuffix(v string) predicate.InternalPolicy
- func OwnerIDIn(vs ...string) predicate.InternalPolicy
- func OwnerIDIsNil() predicate.InternalPolicy
- func OwnerIDLT(v string) predicate.InternalPolicy
- func OwnerIDLTE(v string) predicate.InternalPolicy
- func OwnerIDNEQ(v string) predicate.InternalPolicy
- func OwnerIDNotIn(vs ...string) predicate.InternalPolicy
- func OwnerIDNotNil() predicate.InternalPolicy
- func PolicyType(v string) predicate.InternalPolicy
- func PolicyTypeContains(v string) predicate.InternalPolicy
- func PolicyTypeContainsFold(v string) predicate.InternalPolicy
- func PolicyTypeEQ(v string) predicate.InternalPolicy
- func PolicyTypeEqualFold(v string) predicate.InternalPolicy
- func PolicyTypeGT(v string) predicate.InternalPolicy
- func PolicyTypeGTE(v string) predicate.InternalPolicy
- func PolicyTypeHasPrefix(v string) predicate.InternalPolicy
- func PolicyTypeHasSuffix(v string) predicate.InternalPolicy
- func PolicyTypeIn(vs ...string) predicate.InternalPolicy
- func PolicyTypeIsNil() predicate.InternalPolicy
- func PolicyTypeLT(v string) predicate.InternalPolicy
- func PolicyTypeLTE(v string) predicate.InternalPolicy
- func PolicyTypeNEQ(v string) predicate.InternalPolicy
- func PolicyTypeNotIn(vs ...string) predicate.InternalPolicy
- func PolicyTypeNotNil() predicate.InternalPolicy
- func PurposeAndScope(v string) predicate.InternalPolicy
- func PurposeAndScopeContains(v string) predicate.InternalPolicy
- func PurposeAndScopeContainsFold(v string) predicate.InternalPolicy
- func PurposeAndScopeEQ(v string) predicate.InternalPolicy
- func PurposeAndScopeEqualFold(v string) predicate.InternalPolicy
- func PurposeAndScopeGT(v string) predicate.InternalPolicy
- func PurposeAndScopeGTE(v string) predicate.InternalPolicy
- func PurposeAndScopeHasPrefix(v string) predicate.InternalPolicy
- func PurposeAndScopeHasSuffix(v string) predicate.InternalPolicy
- func PurposeAndScopeIn(vs ...string) predicate.InternalPolicy
- func PurposeAndScopeIsNil() predicate.InternalPolicy
- func PurposeAndScopeLT(v string) predicate.InternalPolicy
- func PurposeAndScopeLTE(v string) predicate.InternalPolicy
- func PurposeAndScopeNEQ(v string) predicate.InternalPolicy
- func PurposeAndScopeNotIn(vs ...string) predicate.InternalPolicy
- func PurposeAndScopeNotNil() predicate.InternalPolicy
- func Status(v string) predicate.InternalPolicy
- func StatusContains(v string) predicate.InternalPolicy
- func StatusContainsFold(v string) predicate.InternalPolicy
- func StatusEQ(v string) predicate.InternalPolicy
- func StatusEqualFold(v string) predicate.InternalPolicy
- func StatusGT(v string) predicate.InternalPolicy
- func StatusGTE(v string) predicate.InternalPolicy
- func StatusHasPrefix(v string) predicate.InternalPolicy
- func StatusHasSuffix(v string) predicate.InternalPolicy
- func StatusIn(vs ...string) predicate.InternalPolicy
- func StatusIsNil() predicate.InternalPolicy
- func StatusLT(v string) predicate.InternalPolicy
- func StatusLTE(v string) predicate.InternalPolicy
- func StatusNEQ(v string) predicate.InternalPolicy
- func StatusNotIn(vs ...string) predicate.InternalPolicy
- func StatusNotNil() predicate.InternalPolicy
- func TagsIsNil() predicate.InternalPolicy
- func TagsNotNil() predicate.InternalPolicy
- func UpdatedAt(v time.Time) predicate.InternalPolicy
- func UpdatedAtEQ(v time.Time) predicate.InternalPolicy
- func UpdatedAtGT(v time.Time) predicate.InternalPolicy
- func UpdatedAtGTE(v time.Time) predicate.InternalPolicy
- func UpdatedAtIn(vs ...time.Time) predicate.InternalPolicy
- func UpdatedAtIsNil() predicate.InternalPolicy
- func UpdatedAtLT(v time.Time) predicate.InternalPolicy
- func UpdatedAtLTE(v time.Time) predicate.InternalPolicy
- func UpdatedAtNEQ(v time.Time) predicate.InternalPolicy
- func UpdatedAtNotIn(vs ...time.Time) predicate.InternalPolicy
- func UpdatedAtNotNil() predicate.InternalPolicy
- func UpdatedBy(v string) predicate.InternalPolicy
- func UpdatedByContains(v string) predicate.InternalPolicy
- func UpdatedByContainsFold(v string) predicate.InternalPolicy
- func UpdatedByEQ(v string) predicate.InternalPolicy
- func UpdatedByEqualFold(v string) predicate.InternalPolicy
- func UpdatedByGT(v string) predicate.InternalPolicy
- func UpdatedByGTE(v string) predicate.InternalPolicy
- func UpdatedByHasPrefix(v string) predicate.InternalPolicy
- func UpdatedByHasSuffix(v string) predicate.InternalPolicy
- func UpdatedByIn(vs ...string) predicate.InternalPolicy
- func UpdatedByIsNil() predicate.InternalPolicy
- func UpdatedByLT(v string) predicate.InternalPolicy
- func UpdatedByLTE(v string) predicate.InternalPolicy
- func UpdatedByNEQ(v string) predicate.InternalPolicy
- func UpdatedByNotIn(vs ...string) predicate.InternalPolicy
- func UpdatedByNotNil() predicate.InternalPolicy
- func ValidColumn(column string) bool
- func Version(v string) predicate.InternalPolicy
- func VersionContains(v string) predicate.InternalPolicy
- func VersionContainsFold(v string) predicate.InternalPolicy
- func VersionEQ(v string) predicate.InternalPolicy
- func VersionEqualFold(v string) predicate.InternalPolicy
- func VersionGT(v string) predicate.InternalPolicy
- func VersionGTE(v string) predicate.InternalPolicy
- func VersionHasPrefix(v string) predicate.InternalPolicy
- func VersionHasSuffix(v string) predicate.InternalPolicy
- func VersionIn(vs ...string) predicate.InternalPolicy
- func VersionIsNil() predicate.InternalPolicy
- func VersionLT(v string) predicate.InternalPolicy
- func VersionLTE(v string) predicate.InternalPolicy
- func VersionNEQ(v string) predicate.InternalPolicy
- func VersionNotIn(vs ...string) predicate.InternalPolicy
- func VersionNotNil() predicate.InternalPolicy
- type OrderOption
- func ByBackground(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 ByID(opts ...sql.OrderTermOption) OrderOption
- func ByMappingID(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 ByPolicyType(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 ByPurposeAndScope(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(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 ByVersion(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the internalpolicy type in the database. Label = "internal_policy" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldCreatedBy holds the string denoting the created_by field in the database. FieldCreatedBy = "created_by" // FieldUpdatedBy holds the string denoting the updated_by field in the database. FieldUpdatedBy = "updated_by" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldDeletedBy holds the string denoting the deleted_by field in the database. FieldDeletedBy = "deleted_by" // FieldMappingID holds the string denoting the mapping_id field in the database. FieldMappingID = "mapping_id" // FieldTags holds the string denoting the tags field in the database. FieldTags = "tags" // 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" // FieldPolicyType holds the string denoting the policy_type field in the database. FieldPolicyType = "policy_type" // FieldVersion holds the string denoting the version field in the database. FieldVersion = "version" // FieldPurposeAndScope holds the string denoting the purpose_and_scope field in the database. FieldPurposeAndScope = "purpose_and_scope" // FieldBackground holds the string denoting the background field in the database. FieldBackground = "background" // FieldDetails holds the string denoting the details field in the database. FieldDetails = "details" // 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" // EdgeControlObjectives holds the string denoting the control_objectives edge name in mutations. EdgeControlObjectives = "control_objectives" // EdgeControls holds the string denoting the controls edge name in mutations. EdgeControls = "controls" // EdgeProcedures holds the string denoting the procedures edge name in mutations. EdgeProcedures = "procedures" // 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" // EdgePrograms holds the string denoting the programs edge name in mutations. EdgePrograms = "programs" // Table holds the table name of the internalpolicy in the database. Table = "internal_policies" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "internal_policies" // 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 = "internal_policy_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 = "internal_policy_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" // ControlObjectivesTable is the table that holds the control_objectives relation/edge. The primary key declared below. ControlObjectivesTable = "internal_policy_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" // ControlsTable is the table that holds the controls relation/edge. ControlsTable = "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" // ControlsColumn is the table column denoting the controls relation/edge. ControlsColumn = "internal_policy_controls" // ProceduresTable is the table that holds the procedures relation/edge. The primary key declared below. ProceduresTable = "internal_policy_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" // NarrativesTable is the table that holds the narratives relation/edge. The primary key declared below. NarrativesTable = "internal_policy_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" // TasksTable is the table that holds the tasks relation/edge. The primary key declared below. TasksTable = "internal_policy_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" // ProgramsTable is the table that holds the programs relation/edge. The primary key declared below. ProgramsTable = "program_internal_policies" // 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" )
Variables ¶
var ( // BlockedGroupsPrimaryKey and BlockedGroupsColumn2 are the table columns denoting the // primary key for the blocked_groups relation (M2M). BlockedGroupsPrimaryKey = []string{"internal_policy_id", "group_id"} // EditorsPrimaryKey and EditorsColumn2 are the table columns denoting the // primary key for the editors relation (M2M). EditorsPrimaryKey = []string{"internal_policy_id", "group_id"} // ControlObjectivesPrimaryKey and ControlObjectivesColumn2 are the table columns denoting the // primary key for the control_objectives relation (M2M). ControlObjectivesPrimaryKey = []string{"internal_policy_id", "control_objective_id"} // ProceduresPrimaryKey and ProceduresColumn2 are the table columns denoting the // primary key for the procedures relation (M2M). ProceduresPrimaryKey = []string{"internal_policy_id", "procedure_id"} // NarrativesPrimaryKey and NarrativesColumn2 are the table columns denoting the // primary key for the narratives relation (M2M). NarrativesPrimaryKey = []string{"internal_policy_id", "narrative_id"} // TasksPrimaryKey and TasksColumn2 are the table columns denoting the // primary key for the tasks relation (M2M). TasksPrimaryKey = []string{"internal_policy_id", "task_id"} // ProgramsPrimaryKey and ProgramsColumn2 are the table columns denoting the // primary key for the programs relation (M2M). ProgramsPrimaryKey = []string{"program_id", "internal_policy_id"} )
var ( Hooks [7]ent.Hook Interceptors [2]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 // DefaultID holds the default value on creation for the "id" field. DefaultID func() string )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/theopenlane/core/internal/ent/generated/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldCreatedBy, FieldUpdatedBy, FieldDeletedAt, FieldDeletedBy, FieldMappingID, FieldTags, FieldOwnerID, FieldName, FieldDescription, FieldStatus, FieldPolicyType, FieldVersion, FieldPurposeAndScope, FieldBackground, FieldDetails, }
Columns holds all SQL columns for internalpolicy fields.
Functions ¶
func And ¶
func And(predicates ...predicate.InternalPolicy) predicate.InternalPolicy
And groups predicates with the AND operator between them.
func Background ¶
func Background(v string) predicate.InternalPolicy
Background applies equality check predicate on the "background" field. It's identical to BackgroundEQ.
func BackgroundContains ¶
func BackgroundContains(v string) predicate.InternalPolicy
BackgroundContains applies the Contains predicate on the "background" field.
func BackgroundContainsFold ¶
func BackgroundContainsFold(v string) predicate.InternalPolicy
BackgroundContainsFold applies the ContainsFold predicate on the "background" field.
func BackgroundEQ ¶
func BackgroundEQ(v string) predicate.InternalPolicy
BackgroundEQ applies the EQ predicate on the "background" field.
func BackgroundEqualFold ¶
func BackgroundEqualFold(v string) predicate.InternalPolicy
BackgroundEqualFold applies the EqualFold predicate on the "background" field.
func BackgroundGT ¶
func BackgroundGT(v string) predicate.InternalPolicy
BackgroundGT applies the GT predicate on the "background" field.
func BackgroundGTE ¶
func BackgroundGTE(v string) predicate.InternalPolicy
BackgroundGTE applies the GTE predicate on the "background" field.
func BackgroundHasPrefix ¶
func BackgroundHasPrefix(v string) predicate.InternalPolicy
BackgroundHasPrefix applies the HasPrefix predicate on the "background" field.
func BackgroundHasSuffix ¶
func BackgroundHasSuffix(v string) predicate.InternalPolicy
BackgroundHasSuffix applies the HasSuffix predicate on the "background" field.
func BackgroundIn ¶
func BackgroundIn(vs ...string) predicate.InternalPolicy
BackgroundIn applies the In predicate on the "background" field.
func BackgroundIsNil ¶
func BackgroundIsNil() predicate.InternalPolicy
BackgroundIsNil applies the IsNil predicate on the "background" field.
func BackgroundLT ¶
func BackgroundLT(v string) predicate.InternalPolicy
BackgroundLT applies the LT predicate on the "background" field.
func BackgroundLTE ¶
func BackgroundLTE(v string) predicate.InternalPolicy
BackgroundLTE applies the LTE predicate on the "background" field.
func BackgroundNEQ ¶
func BackgroundNEQ(v string) predicate.InternalPolicy
BackgroundNEQ applies the NEQ predicate on the "background" field.
func BackgroundNotIn ¶
func BackgroundNotIn(vs ...string) predicate.InternalPolicy
BackgroundNotIn applies the NotIn predicate on the "background" field.
func BackgroundNotNil ¶
func BackgroundNotNil() predicate.InternalPolicy
BackgroundNotNil applies the NotNil predicate on the "background" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.InternalPolicy
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.InternalPolicy
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.InternalPolicy
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.InternalPolicy
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.InternalPolicy
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
func CreatedAtIsNil() predicate.InternalPolicy
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.InternalPolicy
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.InternalPolicy
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.InternalPolicy
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.InternalPolicy
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
func CreatedAtNotNil() predicate.InternalPolicy
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
func CreatedBy(v string) predicate.InternalPolicy
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
func CreatedByContains(v string) predicate.InternalPolicy
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
func CreatedByContainsFold(v string) predicate.InternalPolicy
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
func CreatedByEQ(v string) predicate.InternalPolicy
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
func CreatedByEqualFold(v string) predicate.InternalPolicy
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
func CreatedByGT(v string) predicate.InternalPolicy
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
func CreatedByGTE(v string) predicate.InternalPolicy
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
func CreatedByHasPrefix(v string) predicate.InternalPolicy
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
func CreatedByHasSuffix(v string) predicate.InternalPolicy
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
func CreatedByIn(vs ...string) predicate.InternalPolicy
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
func CreatedByIsNil() predicate.InternalPolicy
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
func CreatedByLT(v string) predicate.InternalPolicy
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
func CreatedByLTE(v string) predicate.InternalPolicy
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
func CreatedByNEQ(v string) predicate.InternalPolicy
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
func CreatedByNotIn(vs ...string) predicate.InternalPolicy
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
func CreatedByNotNil() predicate.InternalPolicy
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.InternalPolicy
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.InternalPolicy
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.InternalPolicy
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.InternalPolicy
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.InternalPolicy
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.InternalPolicy
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.InternalPolicy
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.InternalPolicy
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.InternalPolicy
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.InternalPolicy
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.InternalPolicy
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
func DeletedBy(v string) predicate.InternalPolicy
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
func DeletedByContains(v string) predicate.InternalPolicy
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
func DeletedByContainsFold(v string) predicate.InternalPolicy
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
func DeletedByEQ(v string) predicate.InternalPolicy
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
func DeletedByEqualFold(v string) predicate.InternalPolicy
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
func DeletedByGT(v string) predicate.InternalPolicy
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
func DeletedByGTE(v string) predicate.InternalPolicy
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
func DeletedByHasPrefix(v string) predicate.InternalPolicy
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
func DeletedByHasSuffix(v string) predicate.InternalPolicy
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
func DeletedByIn(vs ...string) predicate.InternalPolicy
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
func DeletedByIsNil() predicate.InternalPolicy
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
func DeletedByLT(v string) predicate.InternalPolicy
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
func DeletedByLTE(v string) predicate.InternalPolicy
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
func DeletedByNEQ(v string) predicate.InternalPolicy
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
func DeletedByNotIn(vs ...string) predicate.InternalPolicy
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
func DeletedByNotNil() predicate.InternalPolicy
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func Description ¶
func Description(v string) predicate.InternalPolicy
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
func DescriptionContains(v string) predicate.InternalPolicy
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
func DescriptionContainsFold(v string) predicate.InternalPolicy
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
func DescriptionEQ(v string) predicate.InternalPolicy
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
func DescriptionEqualFold(v string) predicate.InternalPolicy
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
func DescriptionGT(v string) predicate.InternalPolicy
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
func DescriptionGTE(v string) predicate.InternalPolicy
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
func DescriptionHasPrefix(v string) predicate.InternalPolicy
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
func DescriptionHasSuffix(v string) predicate.InternalPolicy
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
func DescriptionIn(vs ...string) predicate.InternalPolicy
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶ added in v0.4.2
func DescriptionIsNil() predicate.InternalPolicy
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
func DescriptionLT(v string) predicate.InternalPolicy
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
func DescriptionLTE(v string) predicate.InternalPolicy
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
func DescriptionNEQ(v string) predicate.InternalPolicy
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
func DescriptionNotIn(vs ...string) predicate.InternalPolicy
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶ added in v0.4.2
func DescriptionNotNil() predicate.InternalPolicy
DescriptionNotNil applies the NotNil predicate on the "description" field.
func DetailsIsNil ¶
func DetailsIsNil() predicate.InternalPolicy
DetailsIsNil applies the IsNil predicate on the "details" field.
func DetailsNotNil ¶
func DetailsNotNil() predicate.InternalPolicy
DetailsNotNil applies the NotNil predicate on the "details" field.
func HasBlockedGroups ¶ added in v0.4.2
func HasBlockedGroups() predicate.InternalPolicy
HasBlockedGroups applies the HasEdge predicate on the "blocked_groups" edge.
func HasBlockedGroupsWith ¶ added in v0.4.2
func HasBlockedGroupsWith(preds ...predicate.Group) predicate.InternalPolicy
HasBlockedGroupsWith applies the HasEdge predicate on the "blocked_groups" edge with a given conditions (other predicates).
func HasControlObjectives ¶ added in v0.6.1
func HasControlObjectives() predicate.InternalPolicy
HasControlObjectives applies the HasEdge predicate on the "control_objectives" edge.
func HasControlObjectivesWith ¶ added in v0.6.1
func HasControlObjectivesWith(preds ...predicate.ControlObjective) predicate.InternalPolicy
HasControlObjectivesWith applies the HasEdge predicate on the "control_objectives" edge with a given conditions (other predicates).
func HasControls ¶
func HasControls() predicate.InternalPolicy
HasControls applies the HasEdge predicate on the "controls" edge.
func HasControlsWith ¶
func HasControlsWith(preds ...predicate.Control) predicate.InternalPolicy
HasControlsWith applies the HasEdge predicate on the "controls" edge with a given conditions (other predicates).
func HasEditors ¶ added in v0.4.2
func HasEditors() predicate.InternalPolicy
HasEditors applies the HasEdge predicate on the "editors" edge.
func HasEditorsWith ¶ added in v0.4.2
func HasEditorsWith(preds ...predicate.Group) predicate.InternalPolicy
HasEditorsWith applies the HasEdge predicate on the "editors" edge with a given conditions (other predicates).
func HasNarratives ¶
func HasNarratives() predicate.InternalPolicy
HasNarratives applies the HasEdge predicate on the "narratives" edge.
func HasNarrativesWith ¶
func HasNarrativesWith(preds ...predicate.Narrative) predicate.InternalPolicy
HasNarrativesWith applies the HasEdge predicate on the "narratives" edge with a given conditions (other predicates).
func HasOwner ¶ added in v0.4.2
func HasOwner() predicate.InternalPolicy
HasOwner applies the HasEdge predicate on the "owner" edge.
func HasOwnerWith ¶ added in v0.4.2
func HasOwnerWith(preds ...predicate.Organization) predicate.InternalPolicy
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasProcedures ¶
func HasProcedures() predicate.InternalPolicy
HasProcedures applies the HasEdge predicate on the "procedures" edge.
func HasProceduresWith ¶
func HasProceduresWith(preds ...predicate.Procedure) predicate.InternalPolicy
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.InternalPolicy
HasPrograms applies the HasEdge predicate on the "programs" edge.
func HasProgramsWith ¶ added in v0.3.5
func HasProgramsWith(preds ...predicate.Program) predicate.InternalPolicy
HasProgramsWith applies the HasEdge predicate on the "programs" edge with a given conditions (other predicates).
func HasTasks ¶ added in v0.3.4
func HasTasks() predicate.InternalPolicy
HasTasks applies the HasEdge predicate on the "tasks" edge.
func HasTasksWith ¶ added in v0.3.4
func HasTasksWith(preds ...predicate.Task) predicate.InternalPolicy
HasTasksWith applies the HasEdge predicate on the "tasks" edge with a given conditions (other predicates).
func IDContainsFold ¶
func IDContainsFold(id string) predicate.InternalPolicy
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEQ ¶
func IDEQ(id string) predicate.InternalPolicy
IDEQ applies the EQ predicate on the ID field.
func IDEqualFold ¶
func IDEqualFold(id string) predicate.InternalPolicy
IDEqualFold applies the EqualFold predicate on the ID field.
func IDGT ¶
func IDGT(id string) predicate.InternalPolicy
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id string) predicate.InternalPolicy
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...string) predicate.InternalPolicy
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id string) predicate.InternalPolicy
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id string) predicate.InternalPolicy
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id string) predicate.InternalPolicy
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...string) predicate.InternalPolicy
IDNotIn applies the NotIn predicate on the ID field.
func MappingID ¶
func MappingID(v string) predicate.InternalPolicy
MappingID applies equality check predicate on the "mapping_id" field. It's identical to MappingIDEQ.
func MappingIDContains ¶
func MappingIDContains(v string) predicate.InternalPolicy
MappingIDContains applies the Contains predicate on the "mapping_id" field.
func MappingIDContainsFold ¶
func MappingIDContainsFold(v string) predicate.InternalPolicy
MappingIDContainsFold applies the ContainsFold predicate on the "mapping_id" field.
func MappingIDEQ ¶
func MappingIDEQ(v string) predicate.InternalPolicy
MappingIDEQ applies the EQ predicate on the "mapping_id" field.
func MappingIDEqualFold ¶
func MappingIDEqualFold(v string) predicate.InternalPolicy
MappingIDEqualFold applies the EqualFold predicate on the "mapping_id" field.
func MappingIDGT ¶
func MappingIDGT(v string) predicate.InternalPolicy
MappingIDGT applies the GT predicate on the "mapping_id" field.
func MappingIDGTE ¶
func MappingIDGTE(v string) predicate.InternalPolicy
MappingIDGTE applies the GTE predicate on the "mapping_id" field.
func MappingIDHasPrefix ¶
func MappingIDHasPrefix(v string) predicate.InternalPolicy
MappingIDHasPrefix applies the HasPrefix predicate on the "mapping_id" field.
func MappingIDHasSuffix ¶
func MappingIDHasSuffix(v string) predicate.InternalPolicy
MappingIDHasSuffix applies the HasSuffix predicate on the "mapping_id" field.
func MappingIDIn ¶
func MappingIDIn(vs ...string) predicate.InternalPolicy
MappingIDIn applies the In predicate on the "mapping_id" field.
func MappingIDLT ¶
func MappingIDLT(v string) predicate.InternalPolicy
MappingIDLT applies the LT predicate on the "mapping_id" field.
func MappingIDLTE ¶
func MappingIDLTE(v string) predicate.InternalPolicy
MappingIDLTE applies the LTE predicate on the "mapping_id" field.
func MappingIDNEQ ¶
func MappingIDNEQ(v string) predicate.InternalPolicy
MappingIDNEQ applies the NEQ predicate on the "mapping_id" field.
func MappingIDNotIn ¶
func MappingIDNotIn(vs ...string) predicate.InternalPolicy
MappingIDNotIn applies the NotIn predicate on the "mapping_id" field.
func Name ¶
func Name(v string) predicate.InternalPolicy
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.InternalPolicy
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.InternalPolicy
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.InternalPolicy
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.InternalPolicy
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.InternalPolicy
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.InternalPolicy
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.InternalPolicy
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.InternalPolicy
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.InternalPolicy
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.InternalPolicy
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.InternalPolicy
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.InternalPolicy
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.InternalPolicy
NameNotIn applies the NotIn predicate on the "name" field.
func Not ¶
func Not(p predicate.InternalPolicy) predicate.InternalPolicy
Not applies the not operator on the given predicate.
func Or ¶
func Or(predicates ...predicate.InternalPolicy) predicate.InternalPolicy
Or groups predicates with the OR operator between them.
func OwnerID ¶ added in v0.4.2
func OwnerID(v string) predicate.InternalPolicy
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶ added in v0.4.2
func OwnerIDContains(v string) predicate.InternalPolicy
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶ added in v0.4.2
func OwnerIDContainsFold(v string) predicate.InternalPolicy
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEQ ¶ added in v0.4.2
func OwnerIDEQ(v string) predicate.InternalPolicy
OwnerIDEQ applies the EQ predicate on the "owner_id" field.
func OwnerIDEqualFold ¶ added in v0.4.2
func OwnerIDEqualFold(v string) predicate.InternalPolicy
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGT ¶ added in v0.4.2
func OwnerIDGT(v string) predicate.InternalPolicy
OwnerIDGT applies the GT predicate on the "owner_id" field.
func OwnerIDGTE ¶ added in v0.4.2
func OwnerIDGTE(v string) predicate.InternalPolicy
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶ added in v0.4.2
func OwnerIDHasPrefix(v string) predicate.InternalPolicy
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶ added in v0.4.2
func OwnerIDHasSuffix(v string) predicate.InternalPolicy
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDIn ¶ added in v0.4.2
func OwnerIDIn(vs ...string) predicate.InternalPolicy
OwnerIDIn applies the In predicate on the "owner_id" field.
func OwnerIDIsNil ¶ added in v0.4.2
func OwnerIDIsNil() predicate.InternalPolicy
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDLT ¶ added in v0.4.2
func OwnerIDLT(v string) predicate.InternalPolicy
OwnerIDLT applies the LT predicate on the "owner_id" field.
func OwnerIDLTE ¶ added in v0.4.2
func OwnerIDLTE(v string) predicate.InternalPolicy
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶ added in v0.4.2
func OwnerIDNEQ(v string) predicate.InternalPolicy
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶ added in v0.4.2
func OwnerIDNotIn(vs ...string) predicate.InternalPolicy
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶ added in v0.4.2
func OwnerIDNotNil() predicate.InternalPolicy
OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.
func PolicyType ¶
func PolicyType(v string) predicate.InternalPolicy
PolicyType applies equality check predicate on the "policy_type" field. It's identical to PolicyTypeEQ.
func PolicyTypeContains ¶
func PolicyTypeContains(v string) predicate.InternalPolicy
PolicyTypeContains applies the Contains predicate on the "policy_type" field.
func PolicyTypeContainsFold ¶
func PolicyTypeContainsFold(v string) predicate.InternalPolicy
PolicyTypeContainsFold applies the ContainsFold predicate on the "policy_type" field.
func PolicyTypeEQ ¶
func PolicyTypeEQ(v string) predicate.InternalPolicy
PolicyTypeEQ applies the EQ predicate on the "policy_type" field.
func PolicyTypeEqualFold ¶
func PolicyTypeEqualFold(v string) predicate.InternalPolicy
PolicyTypeEqualFold applies the EqualFold predicate on the "policy_type" field.
func PolicyTypeGT ¶
func PolicyTypeGT(v string) predicate.InternalPolicy
PolicyTypeGT applies the GT predicate on the "policy_type" field.
func PolicyTypeGTE ¶
func PolicyTypeGTE(v string) predicate.InternalPolicy
PolicyTypeGTE applies the GTE predicate on the "policy_type" field.
func PolicyTypeHasPrefix ¶
func PolicyTypeHasPrefix(v string) predicate.InternalPolicy
PolicyTypeHasPrefix applies the HasPrefix predicate on the "policy_type" field.
func PolicyTypeHasSuffix ¶
func PolicyTypeHasSuffix(v string) predicate.InternalPolicy
PolicyTypeHasSuffix applies the HasSuffix predicate on the "policy_type" field.
func PolicyTypeIn ¶
func PolicyTypeIn(vs ...string) predicate.InternalPolicy
PolicyTypeIn applies the In predicate on the "policy_type" field.
func PolicyTypeIsNil ¶
func PolicyTypeIsNil() predicate.InternalPolicy
PolicyTypeIsNil applies the IsNil predicate on the "policy_type" field.
func PolicyTypeLT ¶
func PolicyTypeLT(v string) predicate.InternalPolicy
PolicyTypeLT applies the LT predicate on the "policy_type" field.
func PolicyTypeLTE ¶
func PolicyTypeLTE(v string) predicate.InternalPolicy
PolicyTypeLTE applies the LTE predicate on the "policy_type" field.
func PolicyTypeNEQ ¶
func PolicyTypeNEQ(v string) predicate.InternalPolicy
PolicyTypeNEQ applies the NEQ predicate on the "policy_type" field.
func PolicyTypeNotIn ¶
func PolicyTypeNotIn(vs ...string) predicate.InternalPolicy
PolicyTypeNotIn applies the NotIn predicate on the "policy_type" field.
func PolicyTypeNotNil ¶
func PolicyTypeNotNil() predicate.InternalPolicy
PolicyTypeNotNil applies the NotNil predicate on the "policy_type" field.
func PurposeAndScope ¶
func PurposeAndScope(v string) predicate.InternalPolicy
PurposeAndScope applies equality check predicate on the "purpose_and_scope" field. It's identical to PurposeAndScopeEQ.
func PurposeAndScopeContains ¶
func PurposeAndScopeContains(v string) predicate.InternalPolicy
PurposeAndScopeContains applies the Contains predicate on the "purpose_and_scope" field.
func PurposeAndScopeContainsFold ¶
func PurposeAndScopeContainsFold(v string) predicate.InternalPolicy
PurposeAndScopeContainsFold applies the ContainsFold predicate on the "purpose_and_scope" field.
func PurposeAndScopeEQ ¶
func PurposeAndScopeEQ(v string) predicate.InternalPolicy
PurposeAndScopeEQ applies the EQ predicate on the "purpose_and_scope" field.
func PurposeAndScopeEqualFold ¶
func PurposeAndScopeEqualFold(v string) predicate.InternalPolicy
PurposeAndScopeEqualFold applies the EqualFold predicate on the "purpose_and_scope" field.
func PurposeAndScopeGT ¶
func PurposeAndScopeGT(v string) predicate.InternalPolicy
PurposeAndScopeGT applies the GT predicate on the "purpose_and_scope" field.
func PurposeAndScopeGTE ¶
func PurposeAndScopeGTE(v string) predicate.InternalPolicy
PurposeAndScopeGTE applies the GTE predicate on the "purpose_and_scope" field.
func PurposeAndScopeHasPrefix ¶
func PurposeAndScopeHasPrefix(v string) predicate.InternalPolicy
PurposeAndScopeHasPrefix applies the HasPrefix predicate on the "purpose_and_scope" field.
func PurposeAndScopeHasSuffix ¶
func PurposeAndScopeHasSuffix(v string) predicate.InternalPolicy
PurposeAndScopeHasSuffix applies the HasSuffix predicate on the "purpose_and_scope" field.
func PurposeAndScopeIn ¶
func PurposeAndScopeIn(vs ...string) predicate.InternalPolicy
PurposeAndScopeIn applies the In predicate on the "purpose_and_scope" field.
func PurposeAndScopeIsNil ¶
func PurposeAndScopeIsNil() predicate.InternalPolicy
PurposeAndScopeIsNil applies the IsNil predicate on the "purpose_and_scope" field.
func PurposeAndScopeLT ¶
func PurposeAndScopeLT(v string) predicate.InternalPolicy
PurposeAndScopeLT applies the LT predicate on the "purpose_and_scope" field.
func PurposeAndScopeLTE ¶
func PurposeAndScopeLTE(v string) predicate.InternalPolicy
PurposeAndScopeLTE applies the LTE predicate on the "purpose_and_scope" field.
func PurposeAndScopeNEQ ¶
func PurposeAndScopeNEQ(v string) predicate.InternalPolicy
PurposeAndScopeNEQ applies the NEQ predicate on the "purpose_and_scope" field.
func PurposeAndScopeNotIn ¶
func PurposeAndScopeNotIn(vs ...string) predicate.InternalPolicy
PurposeAndScopeNotIn applies the NotIn predicate on the "purpose_and_scope" field.
func PurposeAndScopeNotNil ¶
func PurposeAndScopeNotNil() predicate.InternalPolicy
PurposeAndScopeNotNil applies the NotNil predicate on the "purpose_and_scope" field.
func Status ¶
func Status(v string) predicate.InternalPolicy
Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func StatusContains ¶
func StatusContains(v string) predicate.InternalPolicy
StatusContains applies the Contains predicate on the "status" field.
func StatusContainsFold ¶
func StatusContainsFold(v string) predicate.InternalPolicy
StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusEQ ¶
func StatusEQ(v string) predicate.InternalPolicy
StatusEQ applies the EQ predicate on the "status" field.
func StatusEqualFold ¶
func StatusEqualFold(v string) predicate.InternalPolicy
StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusGT ¶
func StatusGT(v string) predicate.InternalPolicy
StatusGT applies the GT predicate on the "status" field.
func StatusGTE ¶
func StatusGTE(v string) predicate.InternalPolicy
StatusGTE applies the GTE predicate on the "status" field.
func StatusHasPrefix ¶
func StatusHasPrefix(v string) predicate.InternalPolicy
StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasSuffix ¶
func StatusHasSuffix(v string) predicate.InternalPolicy
StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...string) predicate.InternalPolicy
StatusIn applies the In predicate on the "status" field.
func StatusIsNil ¶
func StatusIsNil() predicate.InternalPolicy
StatusIsNil applies the IsNil predicate on the "status" field.
func StatusLT ¶
func StatusLT(v string) predicate.InternalPolicy
StatusLT applies the LT predicate on the "status" field.
func StatusLTE ¶
func StatusLTE(v string) predicate.InternalPolicy
StatusLTE applies the LTE predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v string) predicate.InternalPolicy
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...string) predicate.InternalPolicy
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotNil ¶
func StatusNotNil() predicate.InternalPolicy
StatusNotNil applies the NotNil predicate on the "status" field.
func TagsIsNil ¶
func TagsIsNil() predicate.InternalPolicy
TagsIsNil applies the IsNil predicate on the "tags" field.
func TagsNotNil ¶
func TagsNotNil() predicate.InternalPolicy
TagsNotNil applies the NotNil predicate on the "tags" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.InternalPolicy
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.InternalPolicy
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.InternalPolicy
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.InternalPolicy
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.InternalPolicy
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
func UpdatedAtIsNil() predicate.InternalPolicy
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.InternalPolicy
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.InternalPolicy
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.InternalPolicy
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.InternalPolicy
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
func UpdatedAtNotNil() predicate.InternalPolicy
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
func UpdatedBy(v string) predicate.InternalPolicy
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
func UpdatedByContains(v string) predicate.InternalPolicy
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
func UpdatedByContainsFold(v string) predicate.InternalPolicy
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
func UpdatedByEQ(v string) predicate.InternalPolicy
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
func UpdatedByEqualFold(v string) predicate.InternalPolicy
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
func UpdatedByGT(v string) predicate.InternalPolicy
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
func UpdatedByGTE(v string) predicate.InternalPolicy
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
func UpdatedByHasPrefix(v string) predicate.InternalPolicy
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
func UpdatedByHasSuffix(v string) predicate.InternalPolicy
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
func UpdatedByIn(vs ...string) predicate.InternalPolicy
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
func UpdatedByIsNil() predicate.InternalPolicy
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
func UpdatedByLT(v string) predicate.InternalPolicy
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
func UpdatedByLTE(v string) predicate.InternalPolicy
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
func UpdatedByNEQ(v string) predicate.InternalPolicy
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
func UpdatedByNotIn(vs ...string) predicate.InternalPolicy
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
func UpdatedByNotNil() predicate.InternalPolicy
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).
func Version ¶
func Version(v string) predicate.InternalPolicy
Version applies equality check predicate on the "version" field. It's identical to VersionEQ.
func VersionContains ¶
func VersionContains(v string) predicate.InternalPolicy
VersionContains applies the Contains predicate on the "version" field.
func VersionContainsFold ¶
func VersionContainsFold(v string) predicate.InternalPolicy
VersionContainsFold applies the ContainsFold predicate on the "version" field.
func VersionEQ ¶
func VersionEQ(v string) predicate.InternalPolicy
VersionEQ applies the EQ predicate on the "version" field.
func VersionEqualFold ¶
func VersionEqualFold(v string) predicate.InternalPolicy
VersionEqualFold applies the EqualFold predicate on the "version" field.
func VersionGT ¶
func VersionGT(v string) predicate.InternalPolicy
VersionGT applies the GT predicate on the "version" field.
func VersionGTE ¶
func VersionGTE(v string) predicate.InternalPolicy
VersionGTE applies the GTE predicate on the "version" field.
func VersionHasPrefix ¶
func VersionHasPrefix(v string) predicate.InternalPolicy
VersionHasPrefix applies the HasPrefix predicate on the "version" field.
func VersionHasSuffix ¶
func VersionHasSuffix(v string) predicate.InternalPolicy
VersionHasSuffix applies the HasSuffix predicate on the "version" field.
func VersionIn ¶
func VersionIn(vs ...string) predicate.InternalPolicy
VersionIn applies the In predicate on the "version" field.
func VersionIsNil ¶
func VersionIsNil() predicate.InternalPolicy
VersionIsNil applies the IsNil predicate on the "version" field.
func VersionLT ¶
func VersionLT(v string) predicate.InternalPolicy
VersionLT applies the LT predicate on the "version" field.
func VersionLTE ¶
func VersionLTE(v string) predicate.InternalPolicy
VersionLTE applies the LTE predicate on the "version" field.
func VersionNEQ ¶
func VersionNEQ(v string) predicate.InternalPolicy
VersionNEQ applies the NEQ predicate on the "version" field.
func VersionNotIn ¶
func VersionNotIn(vs ...string) predicate.InternalPolicy
VersionNotIn applies the NotIn predicate on the "version" field.
func VersionNotNil ¶
func VersionNotNil() predicate.InternalPolicy
VersionNotNil applies the NotNil predicate on the "version" field.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the InternalPolicy queries.
func ByBackground ¶
func ByBackground(opts ...sql.OrderTermOption) OrderOption
ByBackground orders the results by the background 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 ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByMappingID ¶
func ByMappingID(opts ...sql.OrderTermOption) OrderOption
ByMappingID orders the results by the mapping_id field.
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.2
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByOwnerID ¶ added in v0.4.2
func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
ByOwnerID orders the results by the owner_id field.
func ByPolicyType ¶
func ByPolicyType(opts ...sql.OrderTermOption) OrderOption
ByPolicyType orders the results by the policy_type 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 ByPurposeAndScope ¶
func ByPurposeAndScope(opts ...sql.OrderTermOption) OrderOption
ByPurposeAndScope orders the results by the purpose_and_scope field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status 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 ByVersion ¶
func ByVersion(opts ...sql.OrderTermOption) OrderOption
ByVersion orders the results by the version field.