mappedcontrol

package
v2.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the mappedcontrol type in the database.
	Label = "mapped_control"
	// 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"
	// FieldUpdatedByImpersonator holds the string denoting the updated_by_impersonator field in the database.
	FieldUpdatedByImpersonator = "updated_by_impersonator"
	// 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"
	// FieldSystemOwned holds the string denoting the system_owned field in the database.
	FieldSystemOwned = "system_owned"
	// FieldInternalNotes holds the string denoting the internal_notes field in the database.
	FieldInternalNotes = "internal_notes"
	// FieldSystemInternalID holds the string denoting the system_internal_id field in the database.
	FieldSystemInternalID = "system_internal_id"
	// FieldOwnerID holds the string denoting the owner_id field in the database.
	FieldOwnerID = "owner_id"
	// FieldMappingType holds the string denoting the mapping_type field in the database.
	FieldMappingType = "mapping_type"
	// FieldRelation holds the string denoting the relation field in the database.
	FieldRelation = "relation"
	// FieldConfidence holds the string denoting the confidence field in the database.
	FieldConfidence = "confidence"
	// FieldSource holds the string denoting the source field in the database.
	FieldSource = "source"
	// 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"
	// EdgeFromControls holds the string denoting the from_controls edge name in mutations.
	EdgeFromControls = "from_controls"
	// EdgeToControls holds the string denoting the to_controls edge name in mutations.
	EdgeToControls = "to_controls"
	// EdgeFromSubcontrols holds the string denoting the from_subcontrols edge name in mutations.
	EdgeFromSubcontrols = "from_subcontrols"
	// EdgeToSubcontrols holds the string denoting the to_subcontrols edge name in mutations.
	EdgeToSubcontrols = "to_subcontrols"
	// Table holds the table name of the mappedcontrol in the database.
	Table = "mapped_controls"
	// OwnerTable is the table that holds the owner relation/edge.
	OwnerTable = "mapped_controls"
	// 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 = "mapped_control_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 = "mapped_control_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"
	// FromControlsTable is the table that holds the from_controls relation/edge. The primary key declared below.
	FromControlsTable = "mapped_control_from_controls"
	// FromControlsInverseTable is the table name for the Control entity.
	// It exists in this package in order to avoid circular dependency with the "control" package.
	FromControlsInverseTable = "controls"
	// ToControlsTable is the table that holds the to_controls relation/edge. The primary key declared below.
	ToControlsTable = "mapped_control_to_controls"
	// ToControlsInverseTable is the table name for the Control entity.
	// It exists in this package in order to avoid circular dependency with the "control" package.
	ToControlsInverseTable = "controls"
	// FromSubcontrolsTable is the table that holds the from_subcontrols relation/edge. The primary key declared below.
	FromSubcontrolsTable = "mapped_control_from_subcontrols"
	// FromSubcontrolsInverseTable is the table name for the Subcontrol entity.
	// It exists in this package in order to avoid circular dependency with the "subcontrol" package.
	FromSubcontrolsInverseTable = "subcontrols"
	// ToSubcontrolsTable is the table that holds the to_subcontrols relation/edge. The primary key declared below.
	ToSubcontrolsTable = "mapped_control_to_subcontrols"
	// ToSubcontrolsInverseTable is the table name for the Subcontrol entity.
	// It exists in this package in order to avoid circular dependency with the "subcontrol" package.
	ToSubcontrolsInverseTable = "subcontrols"
)
View Source
const DefaultMappingType enums.MappingType = "EQUAL"
View Source
const DefaultSource enums.MappingSource = "MANUAL"

Variables

View Source
var (
	// BlockedGroupsPrimaryKey and BlockedGroupsColumn2 are the table columns denoting the
	// primary key for the blocked_groups relation (M2M).
	BlockedGroupsPrimaryKey = []string{"mapped_control_id", "group_id"}
	// EditorsPrimaryKey and EditorsColumn2 are the table columns denoting the
	// primary key for the editors relation (M2M).
	EditorsPrimaryKey = []string{"mapped_control_id", "group_id"}
	// FromControlsPrimaryKey and FromControlsColumn2 are the table columns denoting the
	// primary key for the from_controls relation (M2M).
	FromControlsPrimaryKey = []string{"mapped_control_id", "control_id"}
	// ToControlsPrimaryKey and ToControlsColumn2 are the table columns denoting the
	// primary key for the to_controls relation (M2M).
	ToControlsPrimaryKey = []string{"mapped_control_id", "control_id"}
	// FromSubcontrolsPrimaryKey and FromSubcontrolsColumn2 are the table columns denoting the
	// primary key for the from_subcontrols relation (M2M).
	FromSubcontrolsPrimaryKey = []string{"mapped_control_id", "subcontrol_id"}
	// ToSubcontrolsPrimaryKey and ToSubcontrolsColumn2 are the table columns denoting the
	// primary key for the to_subcontrols relation (M2M).
	ToSubcontrolsPrimaryKey = []string{"mapped_control_id", "subcontrol_id"}
)
View Source
var (
	Hooks        [11]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
	// DefaultTags holds the default value on creation for the "tags" field.
	DefaultTags []string
	// DefaultSystemOwned holds the default value on creation for the "system_owned" field.
	DefaultSystemOwned bool
	// ConfidenceValidator is a validator for the "confidence" field. It is called by the builders before save.
	ConfidenceValidator func(int) 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/v2/internal/ent/generated/runtime"

Columns holds all SQL columns for mappedcontrol fields.

Functions

func And

And groups predicates with the AND operator between them.

func Confidence

func Confidence(v int) predicate.MappedControl

Confidence applies equality check predicate on the "confidence" field. It's identical to ConfidenceEQ.

func ConfidenceEQ

func ConfidenceEQ(v int) predicate.MappedControl

ConfidenceEQ applies the EQ predicate on the "confidence" field.

func ConfidenceGT

func ConfidenceGT(v int) predicate.MappedControl

ConfidenceGT applies the GT predicate on the "confidence" field.

func ConfidenceGTE

func ConfidenceGTE(v int) predicate.MappedControl

ConfidenceGTE applies the GTE predicate on the "confidence" field.

func ConfidenceIn

func ConfidenceIn(vs ...int) predicate.MappedControl

ConfidenceIn applies the In predicate on the "confidence" field.

func ConfidenceIsNil

func ConfidenceIsNil() predicate.MappedControl

ConfidenceIsNil applies the IsNil predicate on the "confidence" field.

func ConfidenceLT

func ConfidenceLT(v int) predicate.MappedControl

ConfidenceLT applies the LT predicate on the "confidence" field.

func ConfidenceLTE

func ConfidenceLTE(v int) predicate.MappedControl

ConfidenceLTE applies the LTE predicate on the "confidence" field.

func ConfidenceNEQ

func ConfidenceNEQ(v int) predicate.MappedControl

ConfidenceNEQ applies the NEQ predicate on the "confidence" field.

func ConfidenceNotIn

func ConfidenceNotIn(vs ...int) predicate.MappedControl

ConfidenceNotIn applies the NotIn predicate on the "confidence" field.

func ConfidenceNotNil

func ConfidenceNotNil() predicate.MappedControl

ConfidenceNotNil applies the NotNil predicate on the "confidence" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.MappedControl

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.MappedControl

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.MappedControl

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.MappedControl

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.MappedControl

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtIsNil

func CreatedAtIsNil() predicate.MappedControl

CreatedAtIsNil applies the IsNil predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.MappedControl

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.MappedControl

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.MappedControl

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.MappedControl

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func CreatedAtNotNil

func CreatedAtNotNil() predicate.MappedControl

CreatedAtNotNil applies the NotNil predicate on the "created_at" field.

func CreatedBy

func CreatedBy(v string) predicate.MappedControl

CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.

func CreatedByContains

func CreatedByContains(v string) predicate.MappedControl

CreatedByContains applies the Contains predicate on the "created_by" field.

func CreatedByContainsFold

func CreatedByContainsFold(v string) predicate.MappedControl

CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.

func CreatedByEQ

func CreatedByEQ(v string) predicate.MappedControl

CreatedByEQ applies the EQ predicate on the "created_by" field.

func CreatedByEqualFold

func CreatedByEqualFold(v string) predicate.MappedControl

CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.

func CreatedByGT

func CreatedByGT(v string) predicate.MappedControl

CreatedByGT applies the GT predicate on the "created_by" field.

func CreatedByGTE

func CreatedByGTE(v string) predicate.MappedControl

CreatedByGTE applies the GTE predicate on the "created_by" field.

func CreatedByHasPrefix

func CreatedByHasPrefix(v string) predicate.MappedControl

CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.

func CreatedByHasSuffix

func CreatedByHasSuffix(v string) predicate.MappedControl

CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.

func CreatedByIn

func CreatedByIn(vs ...string) predicate.MappedControl

CreatedByIn applies the In predicate on the "created_by" field.

func CreatedByIsNil

func CreatedByIsNil() predicate.MappedControl

CreatedByIsNil applies the IsNil predicate on the "created_by" field.

func CreatedByLT

func CreatedByLT(v string) predicate.MappedControl

CreatedByLT applies the LT predicate on the "created_by" field.

func CreatedByLTE

func CreatedByLTE(v string) predicate.MappedControl

CreatedByLTE applies the LTE predicate on the "created_by" field.

func CreatedByNEQ

func CreatedByNEQ(v string) predicate.MappedControl

CreatedByNEQ applies the NEQ predicate on the "created_by" field.

func CreatedByNotIn

func CreatedByNotIn(vs ...string) predicate.MappedControl

CreatedByNotIn applies the NotIn predicate on the "created_by" field.

func CreatedByNotNil

func CreatedByNotNil() predicate.MappedControl

CreatedByNotNil applies the NotNil predicate on the "created_by" field.

func DeletedAt

func DeletedAt(v time.Time) predicate.MappedControl

DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.

func DeletedAtEQ

func DeletedAtEQ(v time.Time) predicate.MappedControl

DeletedAtEQ applies the EQ predicate on the "deleted_at" field.

func DeletedAtGT

func DeletedAtGT(v time.Time) predicate.MappedControl

DeletedAtGT applies the GT predicate on the "deleted_at" field.

func DeletedAtGTE

func DeletedAtGTE(v time.Time) predicate.MappedControl

DeletedAtGTE applies the GTE predicate on the "deleted_at" field.

func DeletedAtIn

func DeletedAtIn(vs ...time.Time) predicate.MappedControl

DeletedAtIn applies the In predicate on the "deleted_at" field.

func DeletedAtIsNil

func DeletedAtIsNil() predicate.MappedControl

DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.

func DeletedAtLT

func DeletedAtLT(v time.Time) predicate.MappedControl

DeletedAtLT applies the LT predicate on the "deleted_at" field.

func DeletedAtLTE

func DeletedAtLTE(v time.Time) predicate.MappedControl

DeletedAtLTE applies the LTE predicate on the "deleted_at" field.

func DeletedAtNEQ

func DeletedAtNEQ(v time.Time) predicate.MappedControl

DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.

func DeletedAtNotIn

func DeletedAtNotIn(vs ...time.Time) predicate.MappedControl

DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.

func DeletedAtNotNil

func DeletedAtNotNil() predicate.MappedControl

DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.

func DeletedBy

func DeletedBy(v string) predicate.MappedControl

DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.

func DeletedByContains

func DeletedByContains(v string) predicate.MappedControl

DeletedByContains applies the Contains predicate on the "deleted_by" field.

func DeletedByContainsFold

func DeletedByContainsFold(v string) predicate.MappedControl

DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.

func DeletedByEQ

func DeletedByEQ(v string) predicate.MappedControl

DeletedByEQ applies the EQ predicate on the "deleted_by" field.

func DeletedByEqualFold

func DeletedByEqualFold(v string) predicate.MappedControl

DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.

func DeletedByGT

func DeletedByGT(v string) predicate.MappedControl

DeletedByGT applies the GT predicate on the "deleted_by" field.

func DeletedByGTE

func DeletedByGTE(v string) predicate.MappedControl

DeletedByGTE applies the GTE predicate on the "deleted_by" field.

func DeletedByHasPrefix

func DeletedByHasPrefix(v string) predicate.MappedControl

DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.

func DeletedByHasSuffix

func DeletedByHasSuffix(v string) predicate.MappedControl

DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.

func DeletedByIn

func DeletedByIn(vs ...string) predicate.MappedControl

DeletedByIn applies the In predicate on the "deleted_by" field.

func DeletedByIsNil

func DeletedByIsNil() predicate.MappedControl

DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.

func DeletedByLT

func DeletedByLT(v string) predicate.MappedControl

DeletedByLT applies the LT predicate on the "deleted_by" field.

func DeletedByLTE

func DeletedByLTE(v string) predicate.MappedControl

DeletedByLTE applies the LTE predicate on the "deleted_by" field.

func DeletedByNEQ

func DeletedByNEQ(v string) predicate.MappedControl

DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.

func DeletedByNotIn

func DeletedByNotIn(vs ...string) predicate.MappedControl

DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.

func DeletedByNotNil

func DeletedByNotNil() predicate.MappedControl

DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.

func HasBlockedGroups

func HasBlockedGroups() predicate.MappedControl

HasBlockedGroups applies the HasEdge predicate on the "blocked_groups" edge.

func HasBlockedGroupsWith

func HasBlockedGroupsWith(preds ...predicate.Group) predicate.MappedControl

HasBlockedGroupsWith applies the HasEdge predicate on the "blocked_groups" edge with a given conditions (other predicates).

func HasEditors

func HasEditors() predicate.MappedControl

HasEditors applies the HasEdge predicate on the "editors" edge.

func HasEditorsWith

func HasEditorsWith(preds ...predicate.Group) predicate.MappedControl

HasEditorsWith applies the HasEdge predicate on the "editors" edge with a given conditions (other predicates).

func HasFromControls

func HasFromControls() predicate.MappedControl

HasFromControls applies the HasEdge predicate on the "from_controls" edge.

func HasFromControlsWith

func HasFromControlsWith(preds ...predicate.Control) predicate.MappedControl

HasFromControlsWith applies the HasEdge predicate on the "from_controls" edge with a given conditions (other predicates).

func HasFromSubcontrols

func HasFromSubcontrols() predicate.MappedControl

HasFromSubcontrols applies the HasEdge predicate on the "from_subcontrols" edge.

func HasFromSubcontrolsWith

func HasFromSubcontrolsWith(preds ...predicate.Subcontrol) predicate.MappedControl

HasFromSubcontrolsWith applies the HasEdge predicate on the "from_subcontrols" edge with a given conditions (other predicates).

func HasOwner

func HasOwner() predicate.MappedControl

HasOwner applies the HasEdge predicate on the "owner" edge.

func HasOwnerWith

func HasOwnerWith(preds ...predicate.Organization) predicate.MappedControl

HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).

func HasToControls

func HasToControls() predicate.MappedControl

HasToControls applies the HasEdge predicate on the "to_controls" edge.

func HasToControlsWith

func HasToControlsWith(preds ...predicate.Control) predicate.MappedControl

HasToControlsWith applies the HasEdge predicate on the "to_controls" edge with a given conditions (other predicates).

func HasToSubcontrols

func HasToSubcontrols() predicate.MappedControl

HasToSubcontrols applies the HasEdge predicate on the "to_subcontrols" edge.

func HasToSubcontrolsWith

func HasToSubcontrolsWith(preds ...predicate.Subcontrol) predicate.MappedControl

HasToSubcontrolsWith applies the HasEdge predicate on the "to_subcontrols" edge with a given conditions (other predicates).

func ID

ID filters vertices based on their ID field.

func IDContainsFold

func IDContainsFold(id string) predicate.MappedControl

IDContainsFold applies the ContainsFold predicate on the ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDEqualFold

func IDEqualFold(id string) predicate.MappedControl

IDEqualFold applies the EqualFold predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id string) predicate.MappedControl

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...string) predicate.MappedControl

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id string) predicate.MappedControl

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id string) predicate.MappedControl

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...string) predicate.MappedControl

IDNotIn applies the NotIn predicate on the ID field.

func InternalNotes

func InternalNotes(v string) predicate.MappedControl

InternalNotes applies equality check predicate on the "internal_notes" field. It's identical to InternalNotesEQ.

func InternalNotesContains

func InternalNotesContains(v string) predicate.MappedControl

InternalNotesContains applies the Contains predicate on the "internal_notes" field.

func InternalNotesContainsFold

func InternalNotesContainsFold(v string) predicate.MappedControl

InternalNotesContainsFold applies the ContainsFold predicate on the "internal_notes" field.

func InternalNotesEQ

func InternalNotesEQ(v string) predicate.MappedControl

InternalNotesEQ applies the EQ predicate on the "internal_notes" field.

func InternalNotesEqualFold

func InternalNotesEqualFold(v string) predicate.MappedControl

InternalNotesEqualFold applies the EqualFold predicate on the "internal_notes" field.

func InternalNotesGT

func InternalNotesGT(v string) predicate.MappedControl

InternalNotesGT applies the GT predicate on the "internal_notes" field.

func InternalNotesGTE

func InternalNotesGTE(v string) predicate.MappedControl

InternalNotesGTE applies the GTE predicate on the "internal_notes" field.

func InternalNotesHasPrefix

func InternalNotesHasPrefix(v string) predicate.MappedControl

InternalNotesHasPrefix applies the HasPrefix predicate on the "internal_notes" field.

func InternalNotesHasSuffix

func InternalNotesHasSuffix(v string) predicate.MappedControl

InternalNotesHasSuffix applies the HasSuffix predicate on the "internal_notes" field.

func InternalNotesIn

func InternalNotesIn(vs ...string) predicate.MappedControl

InternalNotesIn applies the In predicate on the "internal_notes" field.

func InternalNotesIsNil

func InternalNotesIsNil() predicate.MappedControl

InternalNotesIsNil applies the IsNil predicate on the "internal_notes" field.

func InternalNotesLT

func InternalNotesLT(v string) predicate.MappedControl

InternalNotesLT applies the LT predicate on the "internal_notes" field.

func InternalNotesLTE

func InternalNotesLTE(v string) predicate.MappedControl

InternalNotesLTE applies the LTE predicate on the "internal_notes" field.

func InternalNotesNEQ

func InternalNotesNEQ(v string) predicate.MappedControl

InternalNotesNEQ applies the NEQ predicate on the "internal_notes" field.

func InternalNotesNotIn

func InternalNotesNotIn(vs ...string) predicate.MappedControl

InternalNotesNotIn applies the NotIn predicate on the "internal_notes" field.

func InternalNotesNotNil

func InternalNotesNotNil() predicate.MappedControl

InternalNotesNotNil applies the NotNil predicate on the "internal_notes" field.

func MappingTypeEQ

func MappingTypeEQ(v enums.MappingType) predicate.MappedControl

MappingTypeEQ applies the EQ predicate on the "mapping_type" field.

func MappingTypeIn

func MappingTypeIn(vs ...enums.MappingType) predicate.MappedControl

MappingTypeIn applies the In predicate on the "mapping_type" field.

func MappingTypeNEQ

func MappingTypeNEQ(v enums.MappingType) predicate.MappedControl

MappingTypeNEQ applies the NEQ predicate on the "mapping_type" field.

func MappingTypeNotIn

func MappingTypeNotIn(vs ...enums.MappingType) predicate.MappedControl

MappingTypeNotIn applies the NotIn predicate on the "mapping_type" field.

func MappingTypeValidator

func MappingTypeValidator(mt enums.MappingType) error

MappingTypeValidator is a validator for the "mapping_type" field enum values. It is called by the builders before save.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func OwnerID

func OwnerID(v string) predicate.MappedControl

OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.

func OwnerIDContains

func OwnerIDContains(v string) predicate.MappedControl

OwnerIDContains applies the Contains predicate on the "owner_id" field.

func OwnerIDContainsFold

func OwnerIDContainsFold(v string) predicate.MappedControl

OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.

func OwnerIDEQ

func OwnerIDEQ(v string) predicate.MappedControl

OwnerIDEQ applies the EQ predicate on the "owner_id" field.

func OwnerIDEqualFold

func OwnerIDEqualFold(v string) predicate.MappedControl

OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.

func OwnerIDGT

func OwnerIDGT(v string) predicate.MappedControl

OwnerIDGT applies the GT predicate on the "owner_id" field.

func OwnerIDGTE

func OwnerIDGTE(v string) predicate.MappedControl

OwnerIDGTE applies the GTE predicate on the "owner_id" field.

func OwnerIDHasPrefix

func OwnerIDHasPrefix(v string) predicate.MappedControl

OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.

func OwnerIDHasSuffix

func OwnerIDHasSuffix(v string) predicate.MappedControl

OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.

func OwnerIDIn

func OwnerIDIn(vs ...string) predicate.MappedControl

OwnerIDIn applies the In predicate on the "owner_id" field.

func OwnerIDIsNil

func OwnerIDIsNil() predicate.MappedControl

OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.

func OwnerIDLT

func OwnerIDLT(v string) predicate.MappedControl

OwnerIDLT applies the LT predicate on the "owner_id" field.

func OwnerIDLTE

func OwnerIDLTE(v string) predicate.MappedControl

OwnerIDLTE applies the LTE predicate on the "owner_id" field.

func OwnerIDNEQ

func OwnerIDNEQ(v string) predicate.MappedControl

OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.

func OwnerIDNotIn

func OwnerIDNotIn(vs ...string) predicate.MappedControl

OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.

func OwnerIDNotNil

func OwnerIDNotNil() predicate.MappedControl

OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.

func Relation

func Relation(v string) predicate.MappedControl

Relation applies equality check predicate on the "relation" field. It's identical to RelationEQ.

func RelationContains

func RelationContains(v string) predicate.MappedControl

RelationContains applies the Contains predicate on the "relation" field.

func RelationContainsFold

func RelationContainsFold(v string) predicate.MappedControl

RelationContainsFold applies the ContainsFold predicate on the "relation" field.

func RelationEQ

func RelationEQ(v string) predicate.MappedControl

RelationEQ applies the EQ predicate on the "relation" field.

func RelationEqualFold

func RelationEqualFold(v string) predicate.MappedControl

RelationEqualFold applies the EqualFold predicate on the "relation" field.

func RelationGT

func RelationGT(v string) predicate.MappedControl

RelationGT applies the GT predicate on the "relation" field.

func RelationGTE

func RelationGTE(v string) predicate.MappedControl

RelationGTE applies the GTE predicate on the "relation" field.

func RelationHasPrefix

func RelationHasPrefix(v string) predicate.MappedControl

RelationHasPrefix applies the HasPrefix predicate on the "relation" field.

func RelationHasSuffix

func RelationHasSuffix(v string) predicate.MappedControl

RelationHasSuffix applies the HasSuffix predicate on the "relation" field.

func RelationIn

func RelationIn(vs ...string) predicate.MappedControl

RelationIn applies the In predicate on the "relation" field.

func RelationIsNil

func RelationIsNil() predicate.MappedControl

RelationIsNil applies the IsNil predicate on the "relation" field.

func RelationLT

func RelationLT(v string) predicate.MappedControl

RelationLT applies the LT predicate on the "relation" field.

func RelationLTE

func RelationLTE(v string) predicate.MappedControl

RelationLTE applies the LTE predicate on the "relation" field.

func RelationNEQ

func RelationNEQ(v string) predicate.MappedControl

RelationNEQ applies the NEQ predicate on the "relation" field.

func RelationNotIn

func RelationNotIn(vs ...string) predicate.MappedControl

RelationNotIn applies the NotIn predicate on the "relation" field.

func RelationNotNil

func RelationNotNil() predicate.MappedControl

RelationNotNil applies the NotNil predicate on the "relation" field.

func SourceEQ

SourceEQ applies the EQ predicate on the "source" field.

func SourceIn

SourceIn applies the In predicate on the "source" field.

func SourceIsNil

func SourceIsNil() predicate.MappedControl

SourceIsNil applies the IsNil predicate on the "source" field.

func SourceNEQ

SourceNEQ applies the NEQ predicate on the "source" field.

func SourceNotIn

func SourceNotIn(vs ...enums.MappingSource) predicate.MappedControl

SourceNotIn applies the NotIn predicate on the "source" field.

func SourceNotNil

func SourceNotNil() predicate.MappedControl

SourceNotNil applies the NotNil predicate on the "source" field.

func SourceValidator

func SourceValidator(s enums.MappingSource) error

SourceValidator is a validator for the "source" field enum values. It is called by the builders before save.

func SystemInternalID

func SystemInternalID(v string) predicate.MappedControl

SystemInternalID applies equality check predicate on the "system_internal_id" field. It's identical to SystemInternalIDEQ.

func SystemInternalIDContains

func SystemInternalIDContains(v string) predicate.MappedControl

SystemInternalIDContains applies the Contains predicate on the "system_internal_id" field.

func SystemInternalIDContainsFold

func SystemInternalIDContainsFold(v string) predicate.MappedControl

SystemInternalIDContainsFold applies the ContainsFold predicate on the "system_internal_id" field.

func SystemInternalIDEQ

func SystemInternalIDEQ(v string) predicate.MappedControl

SystemInternalIDEQ applies the EQ predicate on the "system_internal_id" field.

func SystemInternalIDEqualFold

func SystemInternalIDEqualFold(v string) predicate.MappedControl

SystemInternalIDEqualFold applies the EqualFold predicate on the "system_internal_id" field.

func SystemInternalIDGT

func SystemInternalIDGT(v string) predicate.MappedControl

SystemInternalIDGT applies the GT predicate on the "system_internal_id" field.

func SystemInternalIDGTE

func SystemInternalIDGTE(v string) predicate.MappedControl

SystemInternalIDGTE applies the GTE predicate on the "system_internal_id" field.

func SystemInternalIDHasPrefix

func SystemInternalIDHasPrefix(v string) predicate.MappedControl

SystemInternalIDHasPrefix applies the HasPrefix predicate on the "system_internal_id" field.

func SystemInternalIDHasSuffix

func SystemInternalIDHasSuffix(v string) predicate.MappedControl

SystemInternalIDHasSuffix applies the HasSuffix predicate on the "system_internal_id" field.

func SystemInternalIDIn

func SystemInternalIDIn(vs ...string) predicate.MappedControl

SystemInternalIDIn applies the In predicate on the "system_internal_id" field.

func SystemInternalIDIsNil

func SystemInternalIDIsNil() predicate.MappedControl

SystemInternalIDIsNil applies the IsNil predicate on the "system_internal_id" field.

func SystemInternalIDLT

func SystemInternalIDLT(v string) predicate.MappedControl

SystemInternalIDLT applies the LT predicate on the "system_internal_id" field.

func SystemInternalIDLTE

func SystemInternalIDLTE(v string) predicate.MappedControl

SystemInternalIDLTE applies the LTE predicate on the "system_internal_id" field.

func SystemInternalIDNEQ

func SystemInternalIDNEQ(v string) predicate.MappedControl

SystemInternalIDNEQ applies the NEQ predicate on the "system_internal_id" field.

func SystemInternalIDNotIn

func SystemInternalIDNotIn(vs ...string) predicate.MappedControl

SystemInternalIDNotIn applies the NotIn predicate on the "system_internal_id" field.

func SystemInternalIDNotNil

func SystemInternalIDNotNil() predicate.MappedControl

SystemInternalIDNotNil applies the NotNil predicate on the "system_internal_id" field.

func SystemOwned

func SystemOwned(v bool) predicate.MappedControl

SystemOwned applies equality check predicate on the "system_owned" field. It's identical to SystemOwnedEQ.

func SystemOwnedEQ

func SystemOwnedEQ(v bool) predicate.MappedControl

SystemOwnedEQ applies the EQ predicate on the "system_owned" field.

func SystemOwnedIsNil

func SystemOwnedIsNil() predicate.MappedControl

SystemOwnedIsNil applies the IsNil predicate on the "system_owned" field.

func SystemOwnedNEQ

func SystemOwnedNEQ(v bool) predicate.MappedControl

SystemOwnedNEQ applies the NEQ predicate on the "system_owned" field.

func SystemOwnedNotNil

func SystemOwnedNotNil() predicate.MappedControl

SystemOwnedNotNil applies the NotNil predicate on the "system_owned" field.

func TagsIsNil

func TagsIsNil() predicate.MappedControl

TagsIsNil applies the IsNil predicate on the "tags" field.

func TagsNotNil

func TagsNotNil() predicate.MappedControl

TagsNotNil applies the NotNil predicate on the "tags" field.

func UpdatedAt

func UpdatedAt(v time.Time) predicate.MappedControl

UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.

func UpdatedAtEQ

func UpdatedAtEQ(v time.Time) predicate.MappedControl

UpdatedAtEQ applies the EQ predicate on the "updated_at" field.

func UpdatedAtGT

func UpdatedAtGT(v time.Time) predicate.MappedControl

UpdatedAtGT applies the GT predicate on the "updated_at" field.

func UpdatedAtGTE

func UpdatedAtGTE(v time.Time) predicate.MappedControl

UpdatedAtGTE applies the GTE predicate on the "updated_at" field.

func UpdatedAtIn

func UpdatedAtIn(vs ...time.Time) predicate.MappedControl

UpdatedAtIn applies the In predicate on the "updated_at" field.

func UpdatedAtIsNil

func UpdatedAtIsNil() predicate.MappedControl

UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.

func UpdatedAtLT

func UpdatedAtLT(v time.Time) predicate.MappedControl

UpdatedAtLT applies the LT predicate on the "updated_at" field.

func UpdatedAtLTE

func UpdatedAtLTE(v time.Time) predicate.MappedControl

UpdatedAtLTE applies the LTE predicate on the "updated_at" field.

func UpdatedAtNEQ

func UpdatedAtNEQ(v time.Time) predicate.MappedControl

UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.

func UpdatedAtNotIn

func UpdatedAtNotIn(vs ...time.Time) predicate.MappedControl

UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.

func UpdatedAtNotNil

func UpdatedAtNotNil() predicate.MappedControl

UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.

func UpdatedBy

func UpdatedBy(v string) predicate.MappedControl

UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.

func UpdatedByContains

func UpdatedByContains(v string) predicate.MappedControl

UpdatedByContains applies the Contains predicate on the "updated_by" field.

func UpdatedByContainsFold

func UpdatedByContainsFold(v string) predicate.MappedControl

UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.

func UpdatedByEQ

func UpdatedByEQ(v string) predicate.MappedControl

UpdatedByEQ applies the EQ predicate on the "updated_by" field.

func UpdatedByEqualFold

func UpdatedByEqualFold(v string) predicate.MappedControl

UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.

func UpdatedByGT

func UpdatedByGT(v string) predicate.MappedControl

UpdatedByGT applies the GT predicate on the "updated_by" field.

func UpdatedByGTE

func UpdatedByGTE(v string) predicate.MappedControl

UpdatedByGTE applies the GTE predicate on the "updated_by" field.

func UpdatedByHasPrefix

func UpdatedByHasPrefix(v string) predicate.MappedControl

UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.

func UpdatedByHasSuffix

func UpdatedByHasSuffix(v string) predicate.MappedControl

UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.

func UpdatedByImpersonator

func UpdatedByImpersonator(v string) predicate.MappedControl

UpdatedByImpersonator applies equality check predicate on the "updated_by_impersonator" field. It's identical to UpdatedByImpersonatorEQ.

func UpdatedByImpersonatorContains

func UpdatedByImpersonatorContains(v string) predicate.MappedControl

UpdatedByImpersonatorContains applies the Contains predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorContainsFold

func UpdatedByImpersonatorContainsFold(v string) predicate.MappedControl

UpdatedByImpersonatorContainsFold applies the ContainsFold predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorEQ

func UpdatedByImpersonatorEQ(v string) predicate.MappedControl

UpdatedByImpersonatorEQ applies the EQ predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorEqualFold

func UpdatedByImpersonatorEqualFold(v string) predicate.MappedControl

UpdatedByImpersonatorEqualFold applies the EqualFold predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorGT

func UpdatedByImpersonatorGT(v string) predicate.MappedControl

UpdatedByImpersonatorGT applies the GT predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorGTE

func UpdatedByImpersonatorGTE(v string) predicate.MappedControl

UpdatedByImpersonatorGTE applies the GTE predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorHasPrefix

func UpdatedByImpersonatorHasPrefix(v string) predicate.MappedControl

UpdatedByImpersonatorHasPrefix applies the HasPrefix predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorHasSuffix

func UpdatedByImpersonatorHasSuffix(v string) predicate.MappedControl

UpdatedByImpersonatorHasSuffix applies the HasSuffix predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorIn

func UpdatedByImpersonatorIn(vs ...string) predicate.MappedControl

UpdatedByImpersonatorIn applies the In predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorIsNil

func UpdatedByImpersonatorIsNil() predicate.MappedControl

UpdatedByImpersonatorIsNil applies the IsNil predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorLT

func UpdatedByImpersonatorLT(v string) predicate.MappedControl

UpdatedByImpersonatorLT applies the LT predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorLTE

func UpdatedByImpersonatorLTE(v string) predicate.MappedControl

UpdatedByImpersonatorLTE applies the LTE predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorNEQ

func UpdatedByImpersonatorNEQ(v string) predicate.MappedControl

UpdatedByImpersonatorNEQ applies the NEQ predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorNotIn

func UpdatedByImpersonatorNotIn(vs ...string) predicate.MappedControl

UpdatedByImpersonatorNotIn applies the NotIn predicate on the "updated_by_impersonator" field.

func UpdatedByImpersonatorNotNil

func UpdatedByImpersonatorNotNil() predicate.MappedControl

UpdatedByImpersonatorNotNil applies the NotNil predicate on the "updated_by_impersonator" field.

func UpdatedByIn

func UpdatedByIn(vs ...string) predicate.MappedControl

UpdatedByIn applies the In predicate on the "updated_by" field.

func UpdatedByIsNil

func UpdatedByIsNil() predicate.MappedControl

UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.

func UpdatedByLT

func UpdatedByLT(v string) predicate.MappedControl

UpdatedByLT applies the LT predicate on the "updated_by" field.

func UpdatedByLTE

func UpdatedByLTE(v string) predicate.MappedControl

UpdatedByLTE applies the LTE predicate on the "updated_by" field.

func UpdatedByNEQ

func UpdatedByNEQ(v string) predicate.MappedControl

UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.

func UpdatedByNotIn

func UpdatedByNotIn(vs ...string) predicate.MappedControl

UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.

func UpdatedByNotNil

func UpdatedByNotNil() predicate.MappedControl

UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the MappedControl queries.

func ByBlockedGroups

func ByBlockedGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByBlockedGroups orders the results by blocked_groups terms.

func ByBlockedGroupsCount

func ByBlockedGroupsCount(opts ...sql.OrderTermOption) OrderOption

ByBlockedGroupsCount orders the results by blocked_groups count.

func ByConfidence

func ByConfidence(opts ...sql.OrderTermOption) OrderOption

ByConfidence orders the results by the confidence field.

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 ByEditors

func ByEditors(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByEditors orders the results by editors terms.

func ByEditorsCount

func ByEditorsCount(opts ...sql.OrderTermOption) OrderOption

ByEditorsCount orders the results by editors count.

func ByFromControls

func ByFromControls(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByFromControls orders the results by from_controls terms.

func ByFromControlsCount

func ByFromControlsCount(opts ...sql.OrderTermOption) OrderOption

ByFromControlsCount orders the results by from_controls count.

func ByFromSubcontrols

func ByFromSubcontrols(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByFromSubcontrols orders the results by from_subcontrols terms.

func ByFromSubcontrolsCount

func ByFromSubcontrolsCount(opts ...sql.OrderTermOption) OrderOption

ByFromSubcontrolsCount orders the results by from_subcontrols count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByInternalNotes

func ByInternalNotes(opts ...sql.OrderTermOption) OrderOption

ByInternalNotes orders the results by the internal_notes field.

func ByMappingType

func ByMappingType(opts ...sql.OrderTermOption) OrderOption

ByMappingType orders the results by the mapping_type field.

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 ByRelation

func ByRelation(opts ...sql.OrderTermOption) OrderOption

ByRelation orders the results by the relation field.

func BySource

func BySource(opts ...sql.OrderTermOption) OrderOption

BySource orders the results by the source field.

func BySystemInternalID

func BySystemInternalID(opts ...sql.OrderTermOption) OrderOption

BySystemInternalID orders the results by the system_internal_id field.

func BySystemOwned

func BySystemOwned(opts ...sql.OrderTermOption) OrderOption

BySystemOwned orders the results by the system_owned field.

func ByToControls

func ByToControls(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByToControls orders the results by to_controls terms.

func ByToControlsCount

func ByToControlsCount(opts ...sql.OrderTermOption) OrderOption

ByToControlsCount orders the results by to_controls count.

func ByToSubcontrols

func ByToSubcontrols(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByToSubcontrols orders the results by to_subcontrols terms.

func ByToSubcontrolsCount

func ByToSubcontrolsCount(opts ...sql.OrderTermOption) OrderOption

ByToSubcontrolsCount orders the results by to_subcontrols 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 ByUpdatedByImpersonator

func ByUpdatedByImpersonator(opts ...sql.OrderTermOption) OrderOption

ByUpdatedByImpersonator orders the results by the updated_by_impersonator field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL