Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Scan) predicate.Scan
- func CreatedAt(v time.Time) predicate.Scan
- func CreatedAtEQ(v time.Time) predicate.Scan
- func CreatedAtGT(v time.Time) predicate.Scan
- func CreatedAtGTE(v time.Time) predicate.Scan
- func CreatedAtIn(vs ...time.Time) predicate.Scan
- func CreatedAtIsNil() predicate.Scan
- func CreatedAtLT(v time.Time) predicate.Scan
- func CreatedAtLTE(v time.Time) predicate.Scan
- func CreatedAtNEQ(v time.Time) predicate.Scan
- func CreatedAtNotIn(vs ...time.Time) predicate.Scan
- func CreatedAtNotNil() predicate.Scan
- func CreatedBy(v string) predicate.Scan
- func CreatedByContains(v string) predicate.Scan
- func CreatedByContainsFold(v string) predicate.Scan
- func CreatedByEQ(v string) predicate.Scan
- func CreatedByEqualFold(v string) predicate.Scan
- func CreatedByGT(v string) predicate.Scan
- func CreatedByGTE(v string) predicate.Scan
- func CreatedByHasPrefix(v string) predicate.Scan
- func CreatedByHasSuffix(v string) predicate.Scan
- func CreatedByIn(vs ...string) predicate.Scan
- func CreatedByIsNil() predicate.Scan
- func CreatedByLT(v string) predicate.Scan
- func CreatedByLTE(v string) predicate.Scan
- func CreatedByNEQ(v string) predicate.Scan
- func CreatedByNotIn(vs ...string) predicate.Scan
- func CreatedByNotNil() predicate.Scan
- func DeletedAt(v time.Time) predicate.Scan
- func DeletedAtEQ(v time.Time) predicate.Scan
- func DeletedAtGT(v time.Time) predicate.Scan
- func DeletedAtGTE(v time.Time) predicate.Scan
- func DeletedAtIn(vs ...time.Time) predicate.Scan
- func DeletedAtIsNil() predicate.Scan
- func DeletedAtLT(v time.Time) predicate.Scan
- func DeletedAtLTE(v time.Time) predicate.Scan
- func DeletedAtNEQ(v time.Time) predicate.Scan
- func DeletedAtNotIn(vs ...time.Time) predicate.Scan
- func DeletedAtNotNil() predicate.Scan
- func DeletedBy(v string) predicate.Scan
- func DeletedByContains(v string) predicate.Scan
- func DeletedByContainsFold(v string) predicate.Scan
- func DeletedByEQ(v string) predicate.Scan
- func DeletedByEqualFold(v string) predicate.Scan
- func DeletedByGT(v string) predicate.Scan
- func DeletedByGTE(v string) predicate.Scan
- func DeletedByHasPrefix(v string) predicate.Scan
- func DeletedByHasSuffix(v string) predicate.Scan
- func DeletedByIn(vs ...string) predicate.Scan
- func DeletedByIsNil() predicate.Scan
- func DeletedByLT(v string) predicate.Scan
- func DeletedByLTE(v string) predicate.Scan
- func DeletedByNEQ(v string) predicate.Scan
- func DeletedByNotIn(vs ...string) predicate.Scan
- func DeletedByNotNil() predicate.Scan
- func HasAssets() predicate.Scan
- func HasAssetsWith(preds ...predicate.Asset) predicate.Scan
- func HasBlockedGroups() predicate.Scan
- func HasBlockedGroupsWith(preds ...predicate.Group) predicate.Scan
- func HasEditors() predicate.Scan
- func HasEditorsWith(preds ...predicate.Group) predicate.Scan
- func HasEntities() predicate.Scan
- func HasEntitiesWith(preds ...predicate.Entity) predicate.Scan
- func HasOwner() predicate.Scan
- func HasOwnerWith(preds ...predicate.Organization) predicate.Scan
- func HasViewers() predicate.Scan
- func HasViewersWith(preds ...predicate.Group) predicate.Scan
- func ID(id string) predicate.Scan
- func IDContainsFold(id string) predicate.Scan
- func IDEQ(id string) predicate.Scan
- func IDEqualFold(id string) predicate.Scan
- func IDGT(id string) predicate.Scan
- func IDGTE(id string) predicate.Scan
- func IDIn(ids ...string) predicate.Scan
- func IDLT(id string) predicate.Scan
- func IDLTE(id string) predicate.Scan
- func IDNEQ(id string) predicate.Scan
- func IDNotIn(ids ...string) predicate.Scan
- func MetadataIsNil() predicate.Scan
- func MetadataNotNil() predicate.Scan
- func Not(p predicate.Scan) predicate.Scan
- func Or(predicates ...predicate.Scan) predicate.Scan
- func OwnerID(v string) predicate.Scan
- func OwnerIDContains(v string) predicate.Scan
- func OwnerIDContainsFold(v string) predicate.Scan
- func OwnerIDEQ(v string) predicate.Scan
- func OwnerIDEqualFold(v string) predicate.Scan
- func OwnerIDGT(v string) predicate.Scan
- func OwnerIDGTE(v string) predicate.Scan
- func OwnerIDHasPrefix(v string) predicate.Scan
- func OwnerIDHasSuffix(v string) predicate.Scan
- func OwnerIDIn(vs ...string) predicate.Scan
- func OwnerIDIsNil() predicate.Scan
- func OwnerIDLT(v string) predicate.Scan
- func OwnerIDLTE(v string) predicate.Scan
- func OwnerIDNEQ(v string) predicate.Scan
- func OwnerIDNotIn(vs ...string) predicate.Scan
- func OwnerIDNotNil() predicate.Scan
- func ScanTypeEQ(v enums.ScanType) predicate.Scan
- func ScanTypeIn(vs ...enums.ScanType) predicate.Scan
- func ScanTypeNEQ(v enums.ScanType) predicate.Scan
- func ScanTypeNotIn(vs ...enums.ScanType) predicate.Scan
- func ScanTypeValidator(st enums.ScanType) error
- func StatusEQ(v enums.ScanStatus) predicate.Scan
- func StatusIn(vs ...enums.ScanStatus) predicate.Scan
- func StatusNEQ(v enums.ScanStatus) predicate.Scan
- func StatusNotIn(vs ...enums.ScanStatus) predicate.Scan
- func StatusValidator(s enums.ScanStatus) error
- func TagsIsNil() predicate.Scan
- func TagsNotNil() predicate.Scan
- func Target(v string) predicate.Scan
- func TargetContains(v string) predicate.Scan
- func TargetContainsFold(v string) predicate.Scan
- func TargetEQ(v string) predicate.Scan
- func TargetEqualFold(v string) predicate.Scan
- func TargetGT(v string) predicate.Scan
- func TargetGTE(v string) predicate.Scan
- func TargetHasPrefix(v string) predicate.Scan
- func TargetHasSuffix(v string) predicate.Scan
- func TargetIn(vs ...string) predicate.Scan
- func TargetLT(v string) predicate.Scan
- func TargetLTE(v string) predicate.Scan
- func TargetNEQ(v string) predicate.Scan
- func TargetNotIn(vs ...string) predicate.Scan
- func UpdatedAt(v time.Time) predicate.Scan
- func UpdatedAtEQ(v time.Time) predicate.Scan
- func UpdatedAtGT(v time.Time) predicate.Scan
- func UpdatedAtGTE(v time.Time) predicate.Scan
- func UpdatedAtIn(vs ...time.Time) predicate.Scan
- func UpdatedAtIsNil() predicate.Scan
- func UpdatedAtLT(v time.Time) predicate.Scan
- func UpdatedAtLTE(v time.Time) predicate.Scan
- func UpdatedAtNEQ(v time.Time) predicate.Scan
- func UpdatedAtNotIn(vs ...time.Time) predicate.Scan
- func UpdatedAtNotNil() predicate.Scan
- func UpdatedBy(v string) predicate.Scan
- func UpdatedByContains(v string) predicate.Scan
- func UpdatedByContainsFold(v string) predicate.Scan
- func UpdatedByEQ(v string) predicate.Scan
- func UpdatedByEqualFold(v string) predicate.Scan
- func UpdatedByGT(v string) predicate.Scan
- func UpdatedByGTE(v string) predicate.Scan
- func UpdatedByHasPrefix(v string) predicate.Scan
- func UpdatedByHasSuffix(v string) predicate.Scan
- func UpdatedByIn(vs ...string) predicate.Scan
- func UpdatedByIsNil() predicate.Scan
- func UpdatedByLT(v string) predicate.Scan
- func UpdatedByLTE(v string) predicate.Scan
- func UpdatedByNEQ(v string) predicate.Scan
- func UpdatedByNotIn(vs ...string) predicate.Scan
- func UpdatedByNotNil() predicate.Scan
- func ValidColumn(column string) bool
- type OrderOption
- func ByAssets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByAssetsCount(opts ...sql.OrderTermOption) OrderOption
- func ByBlockedGroups(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByBlockedGroupsCount(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedBy(opts ...sql.OrderTermOption) OrderOption
- func ByEditors(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEditorsCount(opts ...sql.OrderTermOption) OrderOption
- func ByEntities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByEntitiesCount(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByOwnerID(opts ...sql.OrderTermOption) OrderOption
- func ByScanType(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByTarget(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
- func ByViewers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByViewersCount(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the scan type in the database. Label = "scan" // 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" // 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" // FieldTarget holds the string denoting the target field in the database. FieldTarget = "target" // FieldScanType holds the string denoting the scan_type field in the database. FieldScanType = "scan_type" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeBlockedGroups holds the string denoting the blocked_groups edge name in mutations. EdgeBlockedGroups = "blocked_groups" // EdgeEditors holds the string denoting the editors edge name in mutations. EdgeEditors = "editors" // EdgeViewers holds the string denoting the viewers edge name in mutations. EdgeViewers = "viewers" // EdgeAssets holds the string denoting the assets edge name in mutations. EdgeAssets = "assets" // EdgeEntities holds the string denoting the entities edge name in mutations. EdgeEntities = "entities" // Table holds the table name of the scan in the database. Table = "scans" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "scans" // 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 = "scan_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 = "scan_editors" // EditorsInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. EditorsInverseTable = "groups" // ViewersTable is the table that holds the viewers relation/edge. The primary key declared below. ViewersTable = "scan_viewers" // ViewersInverseTable is the table name for the Group entity. // It exists in this package in order to avoid circular dependency with the "group" package. ViewersInverseTable = "groups" // AssetsTable is the table that holds the assets relation/edge. The primary key declared below. AssetsTable = "scan_assets" // AssetsInverseTable is the table name for the Asset entity. // It exists in this package in order to avoid circular dependency with the "asset" package. AssetsInverseTable = "assets" // EntitiesTable is the table that holds the entities relation/edge. EntitiesTable = "entities" // EntitiesInverseTable is the table name for the Entity entity. // It exists in this package in order to avoid circular dependency with the "entity" package. EntitiesInverseTable = "entities" // EntitiesColumn is the table column denoting the entities relation/edge. EntitiesColumn = "scan_entities" )
const DefaultScanType enums.ScanType = "DOMAIN"
const DefaultStatus enums.ScanStatus = "PROCESSING"
Variables ¶
var ( // BlockedGroupsPrimaryKey and BlockedGroupsColumn2 are the table columns denoting the // primary key for the blocked_groups relation (M2M). BlockedGroupsPrimaryKey = []string{"scan_id", "group_id"} // EditorsPrimaryKey and EditorsColumn2 are the table columns denoting the // primary key for the editors relation (M2M). EditorsPrimaryKey = []string{"scan_id", "group_id"} // ViewersPrimaryKey and ViewersColumn2 are the table columns denoting the // primary key for the viewers relation (M2M). ViewersPrimaryKey = []string{"scan_id", "group_id"} // AssetsPrimaryKey and AssetsColumn2 are the table columns denoting the // primary key for the assets relation (M2M). AssetsPrimaryKey = []string{"scan_id", "asset_id"} )
var ( Hooks [8]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 // 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 // TargetValidator is a validator for the "target" field. It is called by the builders before save. TargetValidator 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, FieldTags, FieldOwnerID, FieldTarget, FieldScanType, FieldMetadata, FieldStatus, }
Columns holds all SQL columns for scan fields.
var ForeignKeys = []string{
"control_scans",
"entity_scans",
"finding_scans",
"risk_scans",
"vulnerability_scans",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "scans" table and are not defined as standalone fields in the schema.
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func CreatedBy ¶
CreatedBy applies equality check predicate on the "created_by" field. It's identical to CreatedByEQ.
func CreatedByContains ¶
CreatedByContains applies the Contains predicate on the "created_by" field.
func CreatedByContainsFold ¶
CreatedByContainsFold applies the ContainsFold predicate on the "created_by" field.
func CreatedByEQ ¶
CreatedByEQ applies the EQ predicate on the "created_by" field.
func CreatedByEqualFold ¶
CreatedByEqualFold applies the EqualFold predicate on the "created_by" field.
func CreatedByGT ¶
CreatedByGT applies the GT predicate on the "created_by" field.
func CreatedByGTE ¶
CreatedByGTE applies the GTE predicate on the "created_by" field.
func CreatedByHasPrefix ¶
CreatedByHasPrefix applies the HasPrefix predicate on the "created_by" field.
func CreatedByHasSuffix ¶
CreatedByHasSuffix applies the HasSuffix predicate on the "created_by" field.
func CreatedByIn ¶
CreatedByIn applies the In predicate on the "created_by" field.
func CreatedByIsNil ¶
CreatedByIsNil applies the IsNil predicate on the "created_by" field.
func CreatedByLT ¶
CreatedByLT applies the LT predicate on the "created_by" field.
func CreatedByLTE ¶
CreatedByLTE applies the LTE predicate on the "created_by" field.
func CreatedByNEQ ¶
CreatedByNEQ applies the NEQ predicate on the "created_by" field.
func CreatedByNotIn ¶
CreatedByNotIn applies the NotIn predicate on the "created_by" field.
func CreatedByNotNil ¶
CreatedByNotNil applies the NotNil predicate on the "created_by" field.
func DeletedAt ¶
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func DeletedBy ¶
DeletedBy applies equality check predicate on the "deleted_by" field. It's identical to DeletedByEQ.
func DeletedByContains ¶
DeletedByContains applies the Contains predicate on the "deleted_by" field.
func DeletedByContainsFold ¶
DeletedByContainsFold applies the ContainsFold predicate on the "deleted_by" field.
func DeletedByEQ ¶
DeletedByEQ applies the EQ predicate on the "deleted_by" field.
func DeletedByEqualFold ¶
DeletedByEqualFold applies the EqualFold predicate on the "deleted_by" field.
func DeletedByGT ¶
DeletedByGT applies the GT predicate on the "deleted_by" field.
func DeletedByGTE ¶
DeletedByGTE applies the GTE predicate on the "deleted_by" field.
func DeletedByHasPrefix ¶
DeletedByHasPrefix applies the HasPrefix predicate on the "deleted_by" field.
func DeletedByHasSuffix ¶
DeletedByHasSuffix applies the HasSuffix predicate on the "deleted_by" field.
func DeletedByIn ¶
DeletedByIn applies the In predicate on the "deleted_by" field.
func DeletedByIsNil ¶
DeletedByIsNil applies the IsNil predicate on the "deleted_by" field.
func DeletedByLT ¶
DeletedByLT applies the LT predicate on the "deleted_by" field.
func DeletedByLTE ¶
DeletedByLTE applies the LTE predicate on the "deleted_by" field.
func DeletedByNEQ ¶
DeletedByNEQ applies the NEQ predicate on the "deleted_by" field.
func DeletedByNotIn ¶
DeletedByNotIn applies the NotIn predicate on the "deleted_by" field.
func DeletedByNotNil ¶
DeletedByNotNil applies the NotNil predicate on the "deleted_by" field.
func HasAssetsWith ¶
HasAssetsWith applies the HasEdge predicate on the "assets" edge with a given conditions (other predicates).
func HasBlockedGroups ¶
HasBlockedGroups applies the HasEdge predicate on the "blocked_groups" edge.
func HasBlockedGroupsWith ¶
HasBlockedGroupsWith applies the HasEdge predicate on the "blocked_groups" edge with a given conditions (other predicates).
func HasEditors ¶
HasEditors applies the HasEdge predicate on the "editors" edge.
func HasEditorsWith ¶
HasEditorsWith applies the HasEdge predicate on the "editors" edge with a given conditions (other predicates).
func HasEntities ¶
HasEntities applies the HasEdge predicate on the "entities" edge.
func HasEntitiesWith ¶
HasEntitiesWith applies the HasEdge predicate on the "entities" edge with a given conditions (other predicates).
func HasOwnerWith ¶
func HasOwnerWith(preds ...predicate.Organization) predicate.Scan
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasViewers ¶
HasViewers applies the HasEdge predicate on the "viewers" edge.
func HasViewersWith ¶
HasViewersWith applies the HasEdge predicate on the "viewers" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func OwnerID ¶
OwnerID applies equality check predicate on the "owner_id" field. It's identical to OwnerIDEQ.
func OwnerIDContains ¶
OwnerIDContains applies the Contains predicate on the "owner_id" field.
func OwnerIDContainsFold ¶
OwnerIDContainsFold applies the ContainsFold predicate on the "owner_id" field.
func OwnerIDEqualFold ¶
OwnerIDEqualFold applies the EqualFold predicate on the "owner_id" field.
func OwnerIDGTE ¶
OwnerIDGTE applies the GTE predicate on the "owner_id" field.
func OwnerIDHasPrefix ¶
OwnerIDHasPrefix applies the HasPrefix predicate on the "owner_id" field.
func OwnerIDHasSuffix ¶
OwnerIDHasSuffix applies the HasSuffix predicate on the "owner_id" field.
func OwnerIDIsNil ¶
OwnerIDIsNil applies the IsNil predicate on the "owner_id" field.
func OwnerIDLTE ¶
OwnerIDLTE applies the LTE predicate on the "owner_id" field.
func OwnerIDNEQ ¶
OwnerIDNEQ applies the NEQ predicate on the "owner_id" field.
func OwnerIDNotIn ¶
OwnerIDNotIn applies the NotIn predicate on the "owner_id" field.
func OwnerIDNotNil ¶
OwnerIDNotNil applies the NotNil predicate on the "owner_id" field.
func ScanTypeEQ ¶
ScanTypeEQ applies the EQ predicate on the "scan_type" field.
func ScanTypeIn ¶
ScanTypeIn applies the In predicate on the "scan_type" field.
func ScanTypeNEQ ¶
ScanTypeNEQ applies the NEQ predicate on the "scan_type" field.
func ScanTypeNotIn ¶
ScanTypeNotIn applies the NotIn predicate on the "scan_type" field.
func ScanTypeValidator ¶
ScanTypeValidator is a validator for the "scan_type" field enum values. It is called by the builders before save.
func StatusEQ ¶
func StatusEQ(v enums.ScanStatus) predicate.Scan
StatusEQ applies the EQ predicate on the "status" field.
func StatusIn ¶
func StatusIn(vs ...enums.ScanStatus) predicate.Scan
StatusIn applies the In predicate on the "status" field.
func StatusNEQ ¶
func StatusNEQ(v enums.ScanStatus) predicate.Scan
StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNotIn ¶
func StatusNotIn(vs ...enums.ScanStatus) predicate.Scan
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
func StatusValidator(s enums.ScanStatus) error
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func TagsNotNil ¶
TagsNotNil applies the NotNil predicate on the "tags" field.
func Target ¶
Target applies equality check predicate on the "target" field. It's identical to TargetEQ.
func TargetContains ¶
TargetContains applies the Contains predicate on the "target" field.
func TargetContainsFold ¶
TargetContainsFold applies the ContainsFold predicate on the "target" field.
func TargetEqualFold ¶
TargetEqualFold applies the EqualFold predicate on the "target" field.
func TargetHasPrefix ¶
TargetHasPrefix applies the HasPrefix predicate on the "target" field.
func TargetHasSuffix ¶
TargetHasSuffix applies the HasSuffix predicate on the "target" field.
func TargetNotIn ¶
TargetNotIn applies the NotIn predicate on the "target" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtIsNil ¶
UpdatedAtIsNil applies the IsNil predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func UpdatedAtNotNil ¶
UpdatedAtNotNil applies the NotNil predicate on the "updated_at" field.
func UpdatedBy ¶
UpdatedBy applies equality check predicate on the "updated_by" field. It's identical to UpdatedByEQ.
func UpdatedByContains ¶
UpdatedByContains applies the Contains predicate on the "updated_by" field.
func UpdatedByContainsFold ¶
UpdatedByContainsFold applies the ContainsFold predicate on the "updated_by" field.
func UpdatedByEQ ¶
UpdatedByEQ applies the EQ predicate on the "updated_by" field.
func UpdatedByEqualFold ¶
UpdatedByEqualFold applies the EqualFold predicate on the "updated_by" field.
func UpdatedByGT ¶
UpdatedByGT applies the GT predicate on the "updated_by" field.
func UpdatedByGTE ¶
UpdatedByGTE applies the GTE predicate on the "updated_by" field.
func UpdatedByHasPrefix ¶
UpdatedByHasPrefix applies the HasPrefix predicate on the "updated_by" field.
func UpdatedByHasSuffix ¶
UpdatedByHasSuffix applies the HasSuffix predicate on the "updated_by" field.
func UpdatedByIn ¶
UpdatedByIn applies the In predicate on the "updated_by" field.
func UpdatedByIsNil ¶
UpdatedByIsNil applies the IsNil predicate on the "updated_by" field.
func UpdatedByLT ¶
UpdatedByLT applies the LT predicate on the "updated_by" field.
func UpdatedByLTE ¶
UpdatedByLTE applies the LTE predicate on the "updated_by" field.
func UpdatedByNEQ ¶
UpdatedByNEQ applies the NEQ predicate on the "updated_by" field.
func UpdatedByNotIn ¶
UpdatedByNotIn applies the NotIn predicate on the "updated_by" field.
func UpdatedByNotNil ¶
UpdatedByNotNil applies the NotNil predicate on the "updated_by" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Scan queries.
func ByAssets ¶
func ByAssets(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByAssets orders the results by assets terms.
func ByAssetsCount ¶
func ByAssetsCount(opts ...sql.OrderTermOption) OrderOption
ByAssetsCount orders the results by assets count.
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 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 ByEntities ¶
func ByEntities(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByEntities orders the results by entities terms.
func ByEntitiesCount ¶
func ByEntitiesCount(opts ...sql.OrderTermOption) OrderOption
ByEntitiesCount orders the results by entities count.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func 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 ByScanType ¶
func ByScanType(opts ...sql.OrderTermOption) OrderOption
ByScanType orders the results by the scan_type field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByTarget ¶
func ByTarget(opts ...sql.OrderTermOption) OrderOption
ByTarget orders the results by the target field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUpdatedBy ¶
func ByUpdatedBy(opts ...sql.OrderTermOption) OrderOption
ByUpdatedBy orders the results by the updated_by field.
func ByViewers ¶
func ByViewers(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByViewers orders the results by viewers terms.
func ByViewersCount ¶
func ByViewersCount(opts ...sql.OrderTermOption) OrderOption
ByViewersCount orders the results by viewers count.