Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.ResourceDefinitionMatchingRule) predicate.ResourceDefinitionMatchingRule
- func Attributes(v property.Values) predicate.ResourceDefinitionMatchingRule
- func AttributesEQ(v property.Values) predicate.ResourceDefinitionMatchingRule
- func AttributesGT(v property.Values) predicate.ResourceDefinitionMatchingRule
- func AttributesGTE(v property.Values) predicate.ResourceDefinitionMatchingRule
- func AttributesIn(vs ...property.Values) predicate.ResourceDefinitionMatchingRule
- func AttributesIsNil() predicate.ResourceDefinitionMatchingRule
- func AttributesLT(v property.Values) predicate.ResourceDefinitionMatchingRule
- func AttributesLTE(v property.Values) predicate.ResourceDefinitionMatchingRule
- func AttributesNEQ(v property.Values) predicate.ResourceDefinitionMatchingRule
- func AttributesNotIn(vs ...property.Values) predicate.ResourceDefinitionMatchingRule
- func AttributesNotNil() predicate.ResourceDefinitionMatchingRule
- func CreateTime(v time.Time) predicate.ResourceDefinitionMatchingRule
- func CreateTimeEQ(v time.Time) predicate.ResourceDefinitionMatchingRule
- func CreateTimeGT(v time.Time) predicate.ResourceDefinitionMatchingRule
- func CreateTimeGTE(v time.Time) predicate.ResourceDefinitionMatchingRule
- func CreateTimeIn(vs ...time.Time) predicate.ResourceDefinitionMatchingRule
- func CreateTimeLT(v time.Time) predicate.ResourceDefinitionMatchingRule
- func CreateTimeLTE(v time.Time) predicate.ResourceDefinitionMatchingRule
- func CreateTimeNEQ(v time.Time) predicate.ResourceDefinitionMatchingRule
- func CreateTimeNotIn(vs ...time.Time) predicate.ResourceDefinitionMatchingRule
- func HasResourceDefinition() predicate.ResourceDefinitionMatchingRule
- func HasResourceDefinitionWith(preds ...predicate.ResourceDefinition) predicate.ResourceDefinitionMatchingRule
- func HasResources() predicate.ResourceDefinitionMatchingRule
- func HasResourcesWith(preds ...predicate.Resource) predicate.ResourceDefinitionMatchingRule
- func HasTemplate() predicate.ResourceDefinitionMatchingRule
- func HasTemplateWith(preds ...predicate.TemplateVersion) predicate.ResourceDefinitionMatchingRule
- func ID(id object.ID) predicate.ResourceDefinitionMatchingRule
- func IDEQ(id object.ID) predicate.ResourceDefinitionMatchingRule
- func IDGT(id object.ID) predicate.ResourceDefinitionMatchingRule
- func IDGTE(id object.ID) predicate.ResourceDefinitionMatchingRule
- func IDIn(ids ...object.ID) predicate.ResourceDefinitionMatchingRule
- func IDLT(id object.ID) predicate.ResourceDefinitionMatchingRule
- func IDLTE(id object.ID) predicate.ResourceDefinitionMatchingRule
- func IDNEQ(id object.ID) predicate.ResourceDefinitionMatchingRule
- func IDNotIn(ids ...object.ID) predicate.ResourceDefinitionMatchingRule
- func Name(v string) predicate.ResourceDefinitionMatchingRule
- func NameContains(v string) predicate.ResourceDefinitionMatchingRule
- func NameContainsFold(v string) predicate.ResourceDefinitionMatchingRule
- func NameEQ(v string) predicate.ResourceDefinitionMatchingRule
- func NameEqualFold(v string) predicate.ResourceDefinitionMatchingRule
- func NameGT(v string) predicate.ResourceDefinitionMatchingRule
- func NameGTE(v string) predicate.ResourceDefinitionMatchingRule
- func NameHasPrefix(v string) predicate.ResourceDefinitionMatchingRule
- func NameHasSuffix(v string) predicate.ResourceDefinitionMatchingRule
- func NameIn(vs ...string) predicate.ResourceDefinitionMatchingRule
- func NameLT(v string) predicate.ResourceDefinitionMatchingRule
- func NameLTE(v string) predicate.ResourceDefinitionMatchingRule
- func NameNEQ(v string) predicate.ResourceDefinitionMatchingRule
- func NameNotIn(vs ...string) predicate.ResourceDefinitionMatchingRule
- func Not(p predicate.ResourceDefinitionMatchingRule) predicate.ResourceDefinitionMatchingRule
- func Or(predicates ...predicate.ResourceDefinitionMatchingRule) predicate.ResourceDefinitionMatchingRule
- func Order(v int) predicate.ResourceDefinitionMatchingRule
- func OrderEQ(v int) predicate.ResourceDefinitionMatchingRule
- func OrderGT(v int) predicate.ResourceDefinitionMatchingRule
- func OrderGTE(v int) predicate.ResourceDefinitionMatchingRule
- func OrderIn(vs ...int) predicate.ResourceDefinitionMatchingRule
- func OrderLT(v int) predicate.ResourceDefinitionMatchingRule
- func OrderLTE(v int) predicate.ResourceDefinitionMatchingRule
- func OrderNEQ(v int) predicate.ResourceDefinitionMatchingRule
- func OrderNotIn(vs ...int) predicate.ResourceDefinitionMatchingRule
- func ResourceDefinitionID(v object.ID) predicate.ResourceDefinitionMatchingRule
- func ResourceDefinitionIDContains(v object.ID) predicate.ResourceDefinitionMatchingRule
- func ResourceDefinitionIDContainsFold(v object.ID) predicate.ResourceDefinitionMatchingRule
- func ResourceDefinitionIDEQ(v object.ID) predicate.ResourceDefinitionMatchingRule
- func ResourceDefinitionIDEqualFold(v object.ID) predicate.ResourceDefinitionMatchingRule
- func ResourceDefinitionIDGT(v object.ID) predicate.ResourceDefinitionMatchingRule
- func ResourceDefinitionIDGTE(v object.ID) predicate.ResourceDefinitionMatchingRule
- func ResourceDefinitionIDHasPrefix(v object.ID) predicate.ResourceDefinitionMatchingRule
- func ResourceDefinitionIDHasSuffix(v object.ID) predicate.ResourceDefinitionMatchingRule
- func ResourceDefinitionIDIn(vs ...object.ID) predicate.ResourceDefinitionMatchingRule
- func ResourceDefinitionIDLT(v object.ID) predicate.ResourceDefinitionMatchingRule
- func ResourceDefinitionIDLTE(v object.ID) predicate.ResourceDefinitionMatchingRule
- func ResourceDefinitionIDNEQ(v object.ID) predicate.ResourceDefinitionMatchingRule
- func ResourceDefinitionIDNotIn(vs ...object.ID) predicate.ResourceDefinitionMatchingRule
- func SchemaDefaultValue(v []byte) predicate.ResourceDefinitionMatchingRule
- func SchemaDefaultValueEQ(v []byte) predicate.ResourceDefinitionMatchingRule
- func SchemaDefaultValueGT(v []byte) predicate.ResourceDefinitionMatchingRule
- func SchemaDefaultValueGTE(v []byte) predicate.ResourceDefinitionMatchingRule
- func SchemaDefaultValueIn(vs ...[]byte) predicate.ResourceDefinitionMatchingRule
- func SchemaDefaultValueIsNil() predicate.ResourceDefinitionMatchingRule
- func SchemaDefaultValueLT(v []byte) predicate.ResourceDefinitionMatchingRule
- func SchemaDefaultValueLTE(v []byte) predicate.ResourceDefinitionMatchingRule
- func SchemaDefaultValueNEQ(v []byte) predicate.ResourceDefinitionMatchingRule
- func SchemaDefaultValueNotIn(vs ...[]byte) predicate.ResourceDefinitionMatchingRule
- func SchemaDefaultValueNotNil() predicate.ResourceDefinitionMatchingRule
- func TemplateID(v object.ID) predicate.ResourceDefinitionMatchingRule
- func TemplateIDContains(v object.ID) predicate.ResourceDefinitionMatchingRule
- func TemplateIDContainsFold(v object.ID) predicate.ResourceDefinitionMatchingRule
- func TemplateIDEQ(v object.ID) predicate.ResourceDefinitionMatchingRule
- func TemplateIDEqualFold(v object.ID) predicate.ResourceDefinitionMatchingRule
- func TemplateIDGT(v object.ID) predicate.ResourceDefinitionMatchingRule
- func TemplateIDGTE(v object.ID) predicate.ResourceDefinitionMatchingRule
- func TemplateIDHasPrefix(v object.ID) predicate.ResourceDefinitionMatchingRule
- func TemplateIDHasSuffix(v object.ID) predicate.ResourceDefinitionMatchingRule
- func TemplateIDIn(vs ...object.ID) predicate.ResourceDefinitionMatchingRule
- func TemplateIDLT(v object.ID) predicate.ResourceDefinitionMatchingRule
- func TemplateIDLTE(v object.ID) predicate.ResourceDefinitionMatchingRule
- func TemplateIDNEQ(v object.ID) predicate.ResourceDefinitionMatchingRule
- func TemplateIDNotIn(vs ...object.ID) predicate.ResourceDefinitionMatchingRule
- func ValidColumn(column string) bool
- func WithoutFields(ignores ...string) []string
- type OrderOption
- func ByAttributes(opts ...sql.OrderTermOption) OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByName(opts ...sql.OrderTermOption) OrderOption
- func ByOrder(opts ...sql.OrderTermOption) OrderOption
- func ByResourceDefinitionField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByResourceDefinitionID(opts ...sql.OrderTermOption) OrderOption
- func ByResources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByResourcesCount(opts ...sql.OrderTermOption) OrderOption
- func ByTemplateField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByTemplateID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the resourcedefinitionmatchingrule type in the database. Label = "resource_definition_matching_rule" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreateTime holds the string denoting the create_time field in the database. FieldCreateTime = "create_time" // FieldResourceDefinitionID holds the string denoting the resource_definition_id field in the database. FieldResourceDefinitionID = "resource_definition_id" // FieldTemplateID holds the string denoting the template_id field in the database. FieldTemplateID = "template_id" // FieldName holds the string denoting the name field in the database. FieldName = "name" // FieldSelector holds the string denoting the selector field in the database. FieldSelector = "selector" // FieldAttributes holds the string denoting the attributes field in the database. FieldAttributes = "attributes" // FieldOrder holds the string denoting the order field in the database. FieldOrder = "order" // FieldSchemaDefaultValue holds the string denoting the schema_default_value field in the database. FieldSchemaDefaultValue = "schema_default_value" // EdgeResourceDefinition holds the string denoting the resource_definition edge name in mutations. EdgeResourceDefinition = "resource_definition" // EdgeTemplate holds the string denoting the template edge name in mutations. EdgeTemplate = "template" // EdgeResources holds the string denoting the resources edge name in mutations. EdgeResources = "resources" // Table holds the table name of the resourcedefinitionmatchingrule in the database. Table = "resource_definition_matching_rules" // ResourceDefinitionTable is the table that holds the resource_definition relation/edge. ResourceDefinitionTable = "resource_definition_matching_rules" // ResourceDefinitionInverseTable is the table name for the ResourceDefinition entity. // It exists in this package in order to avoid circular dependency with the "resourcedefinition" package. ResourceDefinitionInverseTable = "resource_definitions" // ResourceDefinitionColumn is the table column denoting the resource_definition relation/edge. ResourceDefinitionColumn = "resource_definition_id" // TemplateTable is the table that holds the template relation/edge. TemplateTable = "resource_definition_matching_rules" // TemplateInverseTable is the table name for the TemplateVersion entity. // It exists in this package in order to avoid circular dependency with the "templateversion" package. TemplateInverseTable = "template_versions" // TemplateColumn is the table column denoting the template relation/edge. TemplateColumn = "template_id" // ResourcesTable is the table that holds the resources relation/edge. ResourcesTable = "resources" // ResourcesInverseTable is the table name for the Resource entity. // It exists in this package in order to avoid circular dependency with the "resource" package. ResourcesInverseTable = "resources" // ResourcesColumn is the table column denoting the resources relation/edge. ResourcesColumn = "resource_definition_matching_rule_id" )
Variables ¶
var ( Hooks [1]ent.Hook // DefaultCreateTime holds the default value on creation for the "create_time" field. DefaultCreateTime func() time.Time // ResourceDefinitionIDValidator is a validator for the "resource_definition_id" field. It is called by the builders before save. ResourceDefinitionIDValidator func(string) error // TemplateIDValidator is a validator for the "template_id" field. It is called by the builders before save. TemplateIDValidator func(string) error // NameValidator is a validator for the "name" field. It is called by the builders before save. NameValidator func(string) error )
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/seal-io/walrus/pkg/dao/model/runtime"
var Columns = []string{ FieldID, FieldCreateTime, FieldResourceDefinitionID, FieldTemplateID, FieldName, FieldSelector, FieldAttributes, FieldOrder, FieldSchemaDefaultValue, }
Columns holds all SQL columns for resourcedefinitionmatchingrule fields.
Functions ¶
func And ¶
func And(predicates ...predicate.ResourceDefinitionMatchingRule) predicate.ResourceDefinitionMatchingRule
And groups predicates with the AND operator between them.
func Attributes ¶
func Attributes(v property.Values) predicate.ResourceDefinitionMatchingRule
Attributes applies equality check predicate on the "attributes" field. It's identical to AttributesEQ.
func AttributesEQ ¶
func AttributesEQ(v property.Values) predicate.ResourceDefinitionMatchingRule
AttributesEQ applies the EQ predicate on the "attributes" field.
func AttributesGT ¶
func AttributesGT(v property.Values) predicate.ResourceDefinitionMatchingRule
AttributesGT applies the GT predicate on the "attributes" field.
func AttributesGTE ¶
func AttributesGTE(v property.Values) predicate.ResourceDefinitionMatchingRule
AttributesGTE applies the GTE predicate on the "attributes" field.
func AttributesIn ¶
func AttributesIn(vs ...property.Values) predicate.ResourceDefinitionMatchingRule
AttributesIn applies the In predicate on the "attributes" field.
func AttributesIsNil ¶
func AttributesIsNil() predicate.ResourceDefinitionMatchingRule
AttributesIsNil applies the IsNil predicate on the "attributes" field.
func AttributesLT ¶
func AttributesLT(v property.Values) predicate.ResourceDefinitionMatchingRule
AttributesLT applies the LT predicate on the "attributes" field.
func AttributesLTE ¶
func AttributesLTE(v property.Values) predicate.ResourceDefinitionMatchingRule
AttributesLTE applies the LTE predicate on the "attributes" field.
func AttributesNEQ ¶
func AttributesNEQ(v property.Values) predicate.ResourceDefinitionMatchingRule
AttributesNEQ applies the NEQ predicate on the "attributes" field.
func AttributesNotIn ¶
func AttributesNotIn(vs ...property.Values) predicate.ResourceDefinitionMatchingRule
AttributesNotIn applies the NotIn predicate on the "attributes" field.
func AttributesNotNil ¶
func AttributesNotNil() predicate.ResourceDefinitionMatchingRule
AttributesNotNil applies the NotNil predicate on the "attributes" field.
func CreateTime ¶
func CreateTime(v time.Time) predicate.ResourceDefinitionMatchingRule
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
func CreateTimeEQ(v time.Time) predicate.ResourceDefinitionMatchingRule
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
func CreateTimeGT(v time.Time) predicate.ResourceDefinitionMatchingRule
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
func CreateTimeGTE(v time.Time) predicate.ResourceDefinitionMatchingRule
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
func CreateTimeIn(vs ...time.Time) predicate.ResourceDefinitionMatchingRule
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
func CreateTimeLT(v time.Time) predicate.ResourceDefinitionMatchingRule
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
func CreateTimeLTE(v time.Time) predicate.ResourceDefinitionMatchingRule
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
func CreateTimeNEQ(v time.Time) predicate.ResourceDefinitionMatchingRule
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
func CreateTimeNotIn(vs ...time.Time) predicate.ResourceDefinitionMatchingRule
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func HasResourceDefinition ¶
func HasResourceDefinition() predicate.ResourceDefinitionMatchingRule
HasResourceDefinition applies the HasEdge predicate on the "resource_definition" edge.
func HasResourceDefinitionWith ¶
func HasResourceDefinitionWith(preds ...predicate.ResourceDefinition) predicate.ResourceDefinitionMatchingRule
HasResourceDefinitionWith applies the HasEdge predicate on the "resource_definition" edge with a given conditions (other predicates).
func HasResources ¶ added in v0.5.0
func HasResources() predicate.ResourceDefinitionMatchingRule
HasResources applies the HasEdge predicate on the "resources" edge.
func HasResourcesWith ¶ added in v0.5.0
func HasResourcesWith(preds ...predicate.Resource) predicate.ResourceDefinitionMatchingRule
HasResourcesWith applies the HasEdge predicate on the "resources" edge with a given conditions (other predicates).
func HasTemplate ¶
func HasTemplate() predicate.ResourceDefinitionMatchingRule
HasTemplate applies the HasEdge predicate on the "template" edge.
func HasTemplateWith ¶
func HasTemplateWith(preds ...predicate.TemplateVersion) predicate.ResourceDefinitionMatchingRule
HasTemplateWith applies the HasEdge predicate on the "template" edge with a given conditions (other predicates).
func ID ¶
func ID(id object.ID) predicate.ResourceDefinitionMatchingRule
ID filters vertices based on their ID field.
func IDEQ ¶
func IDEQ(id object.ID) predicate.ResourceDefinitionMatchingRule
IDEQ applies the EQ predicate on the ID field.
func IDGT ¶
func IDGT(id object.ID) predicate.ResourceDefinitionMatchingRule
IDGT applies the GT predicate on the ID field.
func IDGTE ¶
func IDGTE(id object.ID) predicate.ResourceDefinitionMatchingRule
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...object.ID) predicate.ResourceDefinitionMatchingRule
IDIn applies the In predicate on the ID field.
func IDLT ¶
func IDLT(id object.ID) predicate.ResourceDefinitionMatchingRule
IDLT applies the LT predicate on the ID field.
func IDLTE ¶
func IDLTE(id object.ID) predicate.ResourceDefinitionMatchingRule
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id object.ID) predicate.ResourceDefinitionMatchingRule
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...object.ID) predicate.ResourceDefinitionMatchingRule
IDNotIn applies the NotIn predicate on the ID field.
func Name ¶
func Name(v string) predicate.ResourceDefinitionMatchingRule
Name applies equality check predicate on the "name" field. It's identical to NameEQ.
func NameContains ¶
func NameContains(v string) predicate.ResourceDefinitionMatchingRule
NameContains applies the Contains predicate on the "name" field.
func NameContainsFold ¶
func NameContainsFold(v string) predicate.ResourceDefinitionMatchingRule
NameContainsFold applies the ContainsFold predicate on the "name" field.
func NameEQ ¶
func NameEQ(v string) predicate.ResourceDefinitionMatchingRule
NameEQ applies the EQ predicate on the "name" field.
func NameEqualFold ¶
func NameEqualFold(v string) predicate.ResourceDefinitionMatchingRule
NameEqualFold applies the EqualFold predicate on the "name" field.
func NameGT ¶
func NameGT(v string) predicate.ResourceDefinitionMatchingRule
NameGT applies the GT predicate on the "name" field.
func NameGTE ¶
func NameGTE(v string) predicate.ResourceDefinitionMatchingRule
NameGTE applies the GTE predicate on the "name" field.
func NameHasPrefix ¶
func NameHasPrefix(v string) predicate.ResourceDefinitionMatchingRule
NameHasPrefix applies the HasPrefix predicate on the "name" field.
func NameHasSuffix ¶
func NameHasSuffix(v string) predicate.ResourceDefinitionMatchingRule
NameHasSuffix applies the HasSuffix predicate on the "name" field.
func NameIn ¶
func NameIn(vs ...string) predicate.ResourceDefinitionMatchingRule
NameIn applies the In predicate on the "name" field.
func NameLT ¶
func NameLT(v string) predicate.ResourceDefinitionMatchingRule
NameLT applies the LT predicate on the "name" field.
func NameLTE ¶
func NameLTE(v string) predicate.ResourceDefinitionMatchingRule
NameLTE applies the LTE predicate on the "name" field.
func NameNEQ ¶
func NameNEQ(v string) predicate.ResourceDefinitionMatchingRule
NameNEQ applies the NEQ predicate on the "name" field.
func NameNotIn ¶
func NameNotIn(vs ...string) predicate.ResourceDefinitionMatchingRule
NameNotIn applies the NotIn predicate on the "name" field.
func Or ¶
func Or(predicates ...predicate.ResourceDefinitionMatchingRule) predicate.ResourceDefinitionMatchingRule
Or groups predicates with the OR operator between them.
func Order ¶
func Order(v int) predicate.ResourceDefinitionMatchingRule
Order applies equality check predicate on the "order" field. It's identical to OrderEQ.
func OrderEQ ¶
func OrderEQ(v int) predicate.ResourceDefinitionMatchingRule
OrderEQ applies the EQ predicate on the "order" field.
func OrderGT ¶
func OrderGT(v int) predicate.ResourceDefinitionMatchingRule
OrderGT applies the GT predicate on the "order" field.
func OrderGTE ¶
func OrderGTE(v int) predicate.ResourceDefinitionMatchingRule
OrderGTE applies the GTE predicate on the "order" field.
func OrderIn ¶
func OrderIn(vs ...int) predicate.ResourceDefinitionMatchingRule
OrderIn applies the In predicate on the "order" field.
func OrderLT ¶
func OrderLT(v int) predicate.ResourceDefinitionMatchingRule
OrderLT applies the LT predicate on the "order" field.
func OrderLTE ¶
func OrderLTE(v int) predicate.ResourceDefinitionMatchingRule
OrderLTE applies the LTE predicate on the "order" field.
func OrderNEQ ¶
func OrderNEQ(v int) predicate.ResourceDefinitionMatchingRule
OrderNEQ applies the NEQ predicate on the "order" field.
func OrderNotIn ¶
func OrderNotIn(vs ...int) predicate.ResourceDefinitionMatchingRule
OrderNotIn applies the NotIn predicate on the "order" field.
func ResourceDefinitionID ¶
func ResourceDefinitionID(v object.ID) predicate.ResourceDefinitionMatchingRule
ResourceDefinitionID applies equality check predicate on the "resource_definition_id" field. It's identical to ResourceDefinitionIDEQ.
func ResourceDefinitionIDContains ¶
func ResourceDefinitionIDContains(v object.ID) predicate.ResourceDefinitionMatchingRule
ResourceDefinitionIDContains applies the Contains predicate on the "resource_definition_id" field.
func ResourceDefinitionIDContainsFold ¶
func ResourceDefinitionIDContainsFold(v object.ID) predicate.ResourceDefinitionMatchingRule
ResourceDefinitionIDContainsFold applies the ContainsFold predicate on the "resource_definition_id" field.
func ResourceDefinitionIDEQ ¶
func ResourceDefinitionIDEQ(v object.ID) predicate.ResourceDefinitionMatchingRule
ResourceDefinitionIDEQ applies the EQ predicate on the "resource_definition_id" field.
func ResourceDefinitionIDEqualFold ¶
func ResourceDefinitionIDEqualFold(v object.ID) predicate.ResourceDefinitionMatchingRule
ResourceDefinitionIDEqualFold applies the EqualFold predicate on the "resource_definition_id" field.
func ResourceDefinitionIDGT ¶
func ResourceDefinitionIDGT(v object.ID) predicate.ResourceDefinitionMatchingRule
ResourceDefinitionIDGT applies the GT predicate on the "resource_definition_id" field.
func ResourceDefinitionIDGTE ¶
func ResourceDefinitionIDGTE(v object.ID) predicate.ResourceDefinitionMatchingRule
ResourceDefinitionIDGTE applies the GTE predicate on the "resource_definition_id" field.
func ResourceDefinitionIDHasPrefix ¶
func ResourceDefinitionIDHasPrefix(v object.ID) predicate.ResourceDefinitionMatchingRule
ResourceDefinitionIDHasPrefix applies the HasPrefix predicate on the "resource_definition_id" field.
func ResourceDefinitionIDHasSuffix ¶
func ResourceDefinitionIDHasSuffix(v object.ID) predicate.ResourceDefinitionMatchingRule
ResourceDefinitionIDHasSuffix applies the HasSuffix predicate on the "resource_definition_id" field.
func ResourceDefinitionIDIn ¶
func ResourceDefinitionIDIn(vs ...object.ID) predicate.ResourceDefinitionMatchingRule
ResourceDefinitionIDIn applies the In predicate on the "resource_definition_id" field.
func ResourceDefinitionIDLT ¶
func ResourceDefinitionIDLT(v object.ID) predicate.ResourceDefinitionMatchingRule
ResourceDefinitionIDLT applies the LT predicate on the "resource_definition_id" field.
func ResourceDefinitionIDLTE ¶
func ResourceDefinitionIDLTE(v object.ID) predicate.ResourceDefinitionMatchingRule
ResourceDefinitionIDLTE applies the LTE predicate on the "resource_definition_id" field.
func ResourceDefinitionIDNEQ ¶
func ResourceDefinitionIDNEQ(v object.ID) predicate.ResourceDefinitionMatchingRule
ResourceDefinitionIDNEQ applies the NEQ predicate on the "resource_definition_id" field.
func ResourceDefinitionIDNotIn ¶
func ResourceDefinitionIDNotIn(vs ...object.ID) predicate.ResourceDefinitionMatchingRule
ResourceDefinitionIDNotIn applies the NotIn predicate on the "resource_definition_id" field.
func SchemaDefaultValue ¶ added in v0.5.0
func SchemaDefaultValue(v []byte) predicate.ResourceDefinitionMatchingRule
SchemaDefaultValue applies equality check predicate on the "schema_default_value" field. It's identical to SchemaDefaultValueEQ.
func SchemaDefaultValueEQ ¶ added in v0.5.0
func SchemaDefaultValueEQ(v []byte) predicate.ResourceDefinitionMatchingRule
SchemaDefaultValueEQ applies the EQ predicate on the "schema_default_value" field.
func SchemaDefaultValueGT ¶ added in v0.5.0
func SchemaDefaultValueGT(v []byte) predicate.ResourceDefinitionMatchingRule
SchemaDefaultValueGT applies the GT predicate on the "schema_default_value" field.
func SchemaDefaultValueGTE ¶ added in v0.5.0
func SchemaDefaultValueGTE(v []byte) predicate.ResourceDefinitionMatchingRule
SchemaDefaultValueGTE applies the GTE predicate on the "schema_default_value" field.
func SchemaDefaultValueIn ¶ added in v0.5.0
func SchemaDefaultValueIn(vs ...[]byte) predicate.ResourceDefinitionMatchingRule
SchemaDefaultValueIn applies the In predicate on the "schema_default_value" field.
func SchemaDefaultValueIsNil ¶ added in v0.5.0
func SchemaDefaultValueIsNil() predicate.ResourceDefinitionMatchingRule
SchemaDefaultValueIsNil applies the IsNil predicate on the "schema_default_value" field.
func SchemaDefaultValueLT ¶ added in v0.5.0
func SchemaDefaultValueLT(v []byte) predicate.ResourceDefinitionMatchingRule
SchemaDefaultValueLT applies the LT predicate on the "schema_default_value" field.
func SchemaDefaultValueLTE ¶ added in v0.5.0
func SchemaDefaultValueLTE(v []byte) predicate.ResourceDefinitionMatchingRule
SchemaDefaultValueLTE applies the LTE predicate on the "schema_default_value" field.
func SchemaDefaultValueNEQ ¶ added in v0.5.0
func SchemaDefaultValueNEQ(v []byte) predicate.ResourceDefinitionMatchingRule
SchemaDefaultValueNEQ applies the NEQ predicate on the "schema_default_value" field.
func SchemaDefaultValueNotIn ¶ added in v0.5.0
func SchemaDefaultValueNotIn(vs ...[]byte) predicate.ResourceDefinitionMatchingRule
SchemaDefaultValueNotIn applies the NotIn predicate on the "schema_default_value" field.
func SchemaDefaultValueNotNil ¶ added in v0.5.0
func SchemaDefaultValueNotNil() predicate.ResourceDefinitionMatchingRule
SchemaDefaultValueNotNil applies the NotNil predicate on the "schema_default_value" field.
func TemplateID ¶
func TemplateID(v object.ID) predicate.ResourceDefinitionMatchingRule
TemplateID applies equality check predicate on the "template_id" field. It's identical to TemplateIDEQ.
func TemplateIDContains ¶
func TemplateIDContains(v object.ID) predicate.ResourceDefinitionMatchingRule
TemplateIDContains applies the Contains predicate on the "template_id" field.
func TemplateIDContainsFold ¶
func TemplateIDContainsFold(v object.ID) predicate.ResourceDefinitionMatchingRule
TemplateIDContainsFold applies the ContainsFold predicate on the "template_id" field.
func TemplateIDEQ ¶
func TemplateIDEQ(v object.ID) predicate.ResourceDefinitionMatchingRule
TemplateIDEQ applies the EQ predicate on the "template_id" field.
func TemplateIDEqualFold ¶
func TemplateIDEqualFold(v object.ID) predicate.ResourceDefinitionMatchingRule
TemplateIDEqualFold applies the EqualFold predicate on the "template_id" field.
func TemplateIDGT ¶
func TemplateIDGT(v object.ID) predicate.ResourceDefinitionMatchingRule
TemplateIDGT applies the GT predicate on the "template_id" field.
func TemplateIDGTE ¶
func TemplateIDGTE(v object.ID) predicate.ResourceDefinitionMatchingRule
TemplateIDGTE applies the GTE predicate on the "template_id" field.
func TemplateIDHasPrefix ¶
func TemplateIDHasPrefix(v object.ID) predicate.ResourceDefinitionMatchingRule
TemplateIDHasPrefix applies the HasPrefix predicate on the "template_id" field.
func TemplateIDHasSuffix ¶
func TemplateIDHasSuffix(v object.ID) predicate.ResourceDefinitionMatchingRule
TemplateIDHasSuffix applies the HasSuffix predicate on the "template_id" field.
func TemplateIDIn ¶
func TemplateIDIn(vs ...object.ID) predicate.ResourceDefinitionMatchingRule
TemplateIDIn applies the In predicate on the "template_id" field.
func TemplateIDLT ¶
func TemplateIDLT(v object.ID) predicate.ResourceDefinitionMatchingRule
TemplateIDLT applies the LT predicate on the "template_id" field.
func TemplateIDLTE ¶
func TemplateIDLTE(v object.ID) predicate.ResourceDefinitionMatchingRule
TemplateIDLTE applies the LTE predicate on the "template_id" field.
func TemplateIDNEQ ¶
func TemplateIDNEQ(v object.ID) predicate.ResourceDefinitionMatchingRule
TemplateIDNEQ applies the NEQ predicate on the "template_id" field.
func TemplateIDNotIn ¶
func TemplateIDNotIn(vs ...object.ID) predicate.ResourceDefinitionMatchingRule
TemplateIDNotIn applies the NotIn predicate on the "template_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
func WithoutFields ¶
WithoutFields returns the fields ignored the given list.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the ResourceDefinitionMatchingRule queries.
func ByAttributes ¶
func ByAttributes(opts ...sql.OrderTermOption) OrderOption
ByAttributes orders the results by the attributes field.
func ByCreateTime ¶
func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
ByCreateTime orders the results by the create_time field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByName ¶
func ByName(opts ...sql.OrderTermOption) OrderOption
ByName orders the results by the name field.
func ByOrder ¶
func ByOrder(opts ...sql.OrderTermOption) OrderOption
ByOrder orders the results by the order field.
func ByResourceDefinitionField ¶
func ByResourceDefinitionField(field string, opts ...sql.OrderTermOption) OrderOption
ByResourceDefinitionField orders the results by resource_definition field.
func ByResourceDefinitionID ¶
func ByResourceDefinitionID(opts ...sql.OrderTermOption) OrderOption
ByResourceDefinitionID orders the results by the resource_definition_id field.
func ByResources ¶ added in v0.5.0
func ByResources(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByResources orders the results by resources terms.
func ByResourcesCount ¶ added in v0.5.0
func ByResourcesCount(opts ...sql.OrderTermOption) OrderOption
ByResourcesCount orders the results by resources count.
func ByTemplateField ¶
func ByTemplateField(field string, opts ...sql.OrderTermOption) OrderOption
ByTemplateField orders the results by template field.
func ByTemplateID ¶
func ByTemplateID(opts ...sql.OrderTermOption) OrderOption
ByTemplateID orders the results by the template_id field.