resourcedefinitionmatchingrule

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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"

Columns holds all SQL columns for resourcedefinitionmatchingrule fields.

Functions

func And

And groups predicates with the AND operator between them.

func Attributes

Attributes applies equality check predicate on the "attributes" field. It's identical to AttributesEQ.

func AttributesEQ

AttributesEQ applies the EQ predicate on the "attributes" field.

func AttributesGT

AttributesGT applies the GT predicate on the "attributes" field.

func AttributesGTE

AttributesGTE applies the GTE predicate on the "attributes" field.

func AttributesIn

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

AttributesLT applies the LT predicate on the "attributes" field.

func AttributesLTE

AttributesLTE applies the LTE predicate on the "attributes" field.

func AttributesNEQ

AttributesNEQ applies the NEQ predicate on the "attributes" field.

func AttributesNotIn

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

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

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

HasResources applies the HasEdge predicate on the "resources" edge.

func HasResourcesWith added in v0.5.0

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

func HasTemplate

HasTemplate applies the HasEdge predicate on the "template" edge.

func HasTemplateWith

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

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

IDNotIn applies the NotIn predicate on the ID field.

func Name

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains

NameContains applies the Contains predicate on the "name" field.

func NameContainsFold

NameContainsFold applies the ContainsFold predicate on the "name" field.

func NameEQ

NameEQ applies the EQ predicate on the "name" field.

func NameEqualFold

NameEqualFold applies the EqualFold predicate on the "name" field.

func NameGT

NameGT applies the GT predicate on the "name" field.

func NameGTE

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn

NameIn applies the In predicate on the "name" field.

func NameLT

NameLT applies the LT predicate on the "name" field.

func NameLTE

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn

NameNotIn applies the NotIn predicate on the "name" field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func Order

Order applies equality check predicate on the "order" field. It's identical to OrderEQ.

func OrderEQ

OrderEQ applies the EQ predicate on the "order" field.

func OrderGT

OrderGT applies the GT predicate on the "order" field.

func OrderGTE

OrderGTE applies the GTE predicate on the "order" field.

func OrderIn

OrderIn applies the In predicate on the "order" field.

func OrderLT

OrderLT applies the LT predicate on the "order" field.

func OrderLTE

OrderLTE applies the LTE predicate on the "order" field.

func OrderNEQ

OrderNEQ applies the NEQ predicate on the "order" field.

func OrderNotIn

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

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

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

TemplateIDGT applies the GT predicate on the "template_id" field.

func TemplateIDGTE

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

TemplateIDIn applies the In predicate on the "template_id" field.

func TemplateIDLT

TemplateIDLT applies the LT predicate on the "template_id" field.

func TemplateIDLTE

TemplateIDLTE applies the LTE predicate on the "template_id" field.

func TemplateIDNEQ

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

func ValidColumn(column string) bool

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

func WithoutFields

func WithoutFields(ignores ...string) []string

WithoutFields returns the fields ignored the given list.

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

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